组件 点赞/反应按钮 点赞/反应按钮组件

点赞/反应按钮组件

一个复杂的网络组件,具有玻璃形态设计,包括半透明元素和模糊效果。包含多个为商业网站设计的交互元素,支持黑暗模式。

预览

HTML 代码

<div class="flex flex-col items-center justify-center p-8 bg-gray-900 dark:bg-gray-800 rounded-lg shadow-lg backdrop-blur-md bg-opacity-30">
  <div class="flex items-center space-x-4 mb-6">
    <img src="https://picsum.photos/50/50" alt="User Avatar" class="w-12 h-12 rounded-full border border-white">
    <span class="text-white text-lg font-semibold">Your Name</span>
  </div>

  <span class="text-white text-sm mb-4">How do you feel about this?</span>

  <div class="flex space-x-4">
    <button class="p-4 rounded-lg bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 transition-all duration-300 text-white shadow-lg dark:bg-gradient-to-r dark:from-blue-700 dark:to-purple-800 dark:hover:from-blue-800 dark:hover:to-purple-900">
      Like
    </button>
    <button class="p-4 rounded-lg bg-gradient-to-r from-yellow-400 to-orange-500 hover:from-yellow-500 hover:to-orange-600 transition-all duration-300 text-white shadow-lg dark:bg-gradient-to-r dark:from-yellow-500 dark:to-orange-600 dark:hover:from-yellow-600 dark:hover:to-orange-700">
      Love
    </button>
    <button class="p-4 rounded-lg bg-gradient-to-r from-red-400 to-pink-500 hover:from-red-500 hover:to-pink-600 transition-all duration-300 text-white shadow-lg dark:bg-gradient-to-r dark:from-red-500 dark:to-pink-600 dark:hover:from-red-600 dark:hover:to-pink-700">
      Angry
    </button>
  </div>

  <div class="mt-6 flex items-center space-x-2">
    <span class="text-white">Total Reactions:</span>
    <span class="text-white font-bold">123</span>
  </div>
</div>

相关组件

点赞/反应按钮组件

一个网络组件,具有点赞和反应按钮,带有微交互,并支持使用Tailwind CSS的黑暗主题。

打开

点赞/反应按钮组件

一个复杂的 Like/Reaction Buttons 组件,具有微交互、相似的配色方案、响应式设计和深色主题支持,适用于仪表板。使用 Tailwind CSS 并包含多个具有引人入胜的动画的交互式元素。

打开

点赞/反应按钮

具有微交互的点赞/反应按钮组件,适用于社交媒体,采用补色方案,复杂性简单。

打开