组件 Follow 按钮 Follow Button 组件

Follow Button 组件

专为房地产平台设计的响应式“关注”按钮组件,具有企业蓝色配色方案、深色模式支持和微妙的交互式悬停效果。

预览

HTML 代码

<div class="flex items-center justify-center p-4 bg-gray-100 dark:bg-gray-900 min-h-screen">
  <button class="relative flex items-center justify-center px-6 py-2 overflow-hidden font-semibold text-white transition-all duration-300 ease-in-out bg-blue-600 rounded-lg group shadow-lg dark:bg-blue-700 dark:shadow-blue-900/50 hover:shadow-xl hover:scale-105 active:scale-95 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-offset-gray-900">
    <span class="relative z-10 text-base group-hover:text-white transition-colors duration-200">
      Follow
    </span>
    <svg class="absolute w-0 h-0 transition-all duration-300 ease-in-out transform -translate-x-full opacity-0 group-hover:opacity-100 group-hover:w-6 group-hover:h-6 group-hover:translate-x-0 group-hover:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"></path>
    </svg>
    <span class="absolute top-0 left-0 w-full h-full bg-gradient-to-r from-blue-700 to-blue-500 rounded-lg opacity-0 transition-opacity duration-300 ease-in-out group-hover:opacity-100"></span>
  </button>
</div>

相关组件

Follow Button 组件

一个复杂的、受纸张/印刷启发的跟随按钮组件,适用于游戏网站,采用黑白单色设计,具有明亮的强调色,针对响应速度和深色模式进行了优化。

打开

Glassmorphism_Music_Follow_Button_Component

专为音乐和音频平台设计的复杂单色玻璃形态跟随按钮组件,具有磨砂玻璃状半透明元素,具有模糊效果,完全响应并支持暗模式。

打开

Follow Button 组件

一个复杂的响应式“跟随”按钮组件,具有渐变和柔和的颜色过渡,专为房地产平台设计。包括深色模式支持并使用语义 HTML。

打开