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

点赞/反应按钮组件

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

预览

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>

相关组件

点赞/反应按钮组件

用 HTML 和 Tailwind CSS 编写的点赞/反应按钮组件,采用粗犷主义设计,地球色调配色方案和适度复杂性,适用于电子商务。包括响应式设计和暗模式支持。

打开

点赞/反应按钮组件

专为企业网站设计的复古/复古 Like/Reaction 按钮组件,具有大地色调和响应式设计,并支持深色模式。

打开

点赞/反应按钮

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

打开