پیش‌نمایش زنده
کد HTML
<button
  class="bg-[linear-gradient(#e9e9e9,#e9e9e9_50%,#fff)] group w-50 h-16 inline-flex transition-all duration-300 overflow-visible p-1 rounded-full group"
>
  <div
    class="w-half h-full bg-[linear-gradient(to_top,#ececec,#fff)] overflow-hidden shadow-[0_0_1px_rgba(0,0,0,0.07),0_0_1px_rgba(0,0,0,0.05),0_3px_3px_rgba(0,0,0,0.25),0_1px_3px_rgba(0,0,0,0.12)] p-1 rounded-full hover:shadow-none duration-300"
  >
    <div
      class="w-full h-full text-xl gap-x-0.5 gap-y-0.5 justify-center text-[#101010] bg-[linear-gradient(#f4f4f4,#fefefe)] group-hover:bg-[linear-gradient(#e2e2e2,#fefefe)] duration-200 items-center text-[18px] font-medium gap-4 inline-flex overflow-hidden px-4 py-2 rounded-full black group-hover:text-blue-600"
    >
      <svg
        xmlns:xlink="http://www.w3.org/1999/xlink"
        xmlns="http://www.w3.org/2000/svg"
        version="1.1"
        viewBox="0 0 64 64"
        height="32px"
        width="24px"
      >
        <g fill-rule="evenodd" fill="none" stroke-width="1" stroke="none">
          <g fill-rule="nonzero" transform="translate(3.000000, 2.000000)">
            <path
              fill="#4285F4"
              d="M57.8123233,30.1515267 C57.8123233,27.7263183 57.6155321,25.9565533 57.1896408,24.1212666 L29.4960833,24.1212666 L29.4960833,35.0674653 L45.7515771,35.0674653 C45.4239683,37.7877475 43.6542033,41.8844383 39.7213169,44.6372555 L39.6661883,45.0037254 L48.4223791,51.7870338 L49.0290201,51.8475849 C54.6004021,46.7020943 57.8123233,39.1313952 57.8123233,30.1515267"
            ></path>
            <path
              fill="#34A853"
              d="M29.4960833,58.9921667 C37.4599129,58.9921667 44.1456164,56.3701671 49.0290201,51.8475849 L39.7213169,44.6372555 C37.2305867,46.3742596 33.887622,47.5868638 29.4960833,47.5868638 C21.6960582,47.5868638 15.0758763,42.4415991 12.7159637,35.3297782 L12.3700541,35.3591501 L3.26524241,42.4054492 L3.14617358,42.736447 C7.9965904,52.3717589 17.959737,58.9921667 29.4960833,58.9921667"
            ></path>
            <path
              fill="#FBBC05"
              d="M12.7159637,35.3297782 C12.0932812,33.4944915 11.7329116,31.5279353 11.7329116,29.4960833 C11.7329116,27.4640054 12.0932812,25.4976752 12.6832029,23.6623884 L12.6667095,23.2715173 L3.44779955,16.1120237 L3.14617358,16.2554937 C1.14708246,20.2539019 0,24.7439491 0,29.4960833 C0,34.2482175 1.14708246,38.7380388 3.14617358,42.736447 L12.7159637,35.3297782"
            ></path>
            <path
              fill="#EB4335"
              d="M29.4960833,11.4050769 C35.0347044,11.4050769 38.7707997,13.7975244 40.9011602,15.7968415 L49.2255853,7.66898166 C44.1130815,2.91684746 37.4599129,0 29.4960833,0 C17.959737,0 7.9965904,6.62018183 3.14617358,16.2554937 L12.6832029,23.6623884 C15.0758763,16.5505675 21.6960582,11.4050769 29.4960833,11.4050769"
            ></path>
          </g>
        </g>
      </svg>
      <span class="ml-2">Sign In with Google</span>
    </div>
  </div>
</button>
کد CSS
.ml-2{margin-left:0.5rem}.inline-flex{display:inline-flex}.h-16{height:4rem}.h-full{height:100%}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.gap-x-0\.5{column-gap:0.125rem}.gap-y-0\.5{row-gap:0.125rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.rounded-full{border-radius:9999px}.bg-\[linear-gradient\(\#e9e9e9\2c \#e9e9e9_50\%\2c \#fff\)\]{background-image:linear-gradient(#e9e9e9,#e9e9e9 50%,#fff)}.bg-\[linear-gradient\(\#f4f4f4\2c \#fefefe\)\]{background-image:linear-gradient(#f4f4f4,#fefefe)}.bg-\[linear-gradient\(to_top\2c \#ececec\2c \#fff\)\]{background-image:linear-gradient(to top,#ececec,#fff)}.p-1{padding:0.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.text-\[18px\]{font-size:18px}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.text-\[\#101010\]{--tw-text-opacity:1;color:rgb(16 16 16 / var(--tw-text-opacity))}.shadow-\[0_0_1px_rgba\(0\2c 0\2c 0\2c 0\.07\)\2c 0_0_1px_rgba\(0\2c 0\2c 0\2c 0\.05\)\2c 0_3px_3px_rgba\(0\2c 0\2c 0\2c 0\.25\)\2c 0_1px_3px_rgba\(0\2c 0\2c 0\2c 0\.12\)\]{--tw-shadow:0 0 1px rgba(0,0,0,0.07),0 0 1px rgba(0,0,0,0.05),0 3px 3px rgba(0,0,0,0.25),0 1px 3px rgba(0,0,0,0.12);--tw-shadow-colored:0 0 1px var(--tw-shadow-color), 0 0 1px var(--tw-shadow-color), 0 3px 3px var(--tw-shadow-color), 0 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-200{transition-duration:200ms}.duration-300{transition-duration:300ms}.hover\:shadow-none:hover{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.group:hover .group-hover\:bg-\[linear-gradient\(\#e2e2e2\2c \#fefefe\)\]{background-image:linear-gradient(#e2e2e2,#fefefe)}.group:hover .group-hover\:text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235 / var(--tw-text-opacity))}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05