ابزار تماس سریع سایت

افزودن دکمه تماس تلفنی به سایت

شماره تماس، جایگاه چسبان، نمایش موبایل یا دسکتاپ و ظاهر دکمه را تنظیم کن و کد آماده HTML و CSS را برای سایتت بردار.

tel:لینک تماس مستقیمstickyجایگاه چسبانcopyخروجی آماده
نمایش در دستگاه
جایگاه چسبان

پیش نمایش زنده

tel:09001804488

نمای دسکتاپ
تماس تلفنی09001804488
تماس تلفنی09001804488

کد خروجی

HTML
<a class="ir-phone-call-button" href="tel:" aria-label="تماس تلفنی">
  <span class="ir-phone-call-button__icon" aria-hidden="true">
    <svg viewBox="0 0 24 24" width="19" height="19" fill="none" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.31-.31.76-.42 1.17-.28 1.29.43 2.68.66 4.11.66.65 0 1.18.53 1.18 1.18v3.49c0 .65-.53 1.18-1.18 1.18C10.3 21.91 2.09 13.7 2.09 3.31c0-.65.53-1.18 1.18-1.18h3.5c.65 0 1.18.53 1.18 1.18 0 1.43.22 2.82.66 4.11.13.41.03.86-.29 1.17l-2.2 2.2Z" fill="currentColor"/>
    </svg>
  </span>
  <span class="ir-phone-call-button__label">تماس تلفنی</span>
</a>

<style>
.ir-phone-call-button {
  position: fixed;
  z-index: 9999;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 40px);
  min-height: 54px;
  border-radius: 999px;
  padding: 10px 16px 10px 18px;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(135deg, #047857 0%, #10B981 100%);
  color: #FFFFFF;
  box-shadow: 0 18px 42px rgba(16,185,129,0.30);
  direction: rtl;
  font-family: inherit;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ir-phone-call-button:hover {
  box-shadow: 0 24px 58px rgba(16,185,129,0.42);
  filter: saturate(1.08);
  transform: translateY(-50%) translateY(-2px);
}

.ir-phone-call-button:focus-visible {
  outline: 3px solid #10B981;
  outline-offset: 4px;
}

.ir-phone-call-button__icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.ir-phone-call-button__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.ir-phone-call-button__number {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  unicode-bidi: plaintext;
  font-size: 12px;
  font-weight: 800;
  opacity: .88;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ir-phone-call-button {
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 767px) {
  .ir-phone-call-button {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: initial;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
  }

  .ir-phone-call-button:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}
</style>