组件 社交分享按钮 Social Share Buttons 组件

Social Share Buttons 组件

一个响应式社交分享按钮组件,采用玻璃形态风格设计,具有用于电子商务网站的单色配色方案。它具有磨砂玻璃般的半透明元素,包括多个用于在社交媒体上分享的交互式按钮,并具有使用 Tailwind CSS 的暗模式支持。

预览

HTML 代码

<div class="flex justify-center items-center p-6 bg-white dark:bg-gray-800 bg-opacity-40 backdrop-filter backdrop-blur-lg rounded-lg shadow-lg space-x-4">
    <div class="flex flex-col items-center">
        <img src="https://picsum.photos/200/200" alt="Product Image" class="w-24 h-24 rounded-lg mb-2">
        <h2 class="text-lg text-gray-800 dark:text-gray-200">Share this product</h2>
    </div>
    <div class="flex space-x-4">
        <a href="#" class="flex items-center justify-center w-12 h-12 rounded-full bg-blue-500 text-white hover:bg-blue-700 transition-all duration-300 shadow-lg dark:bg-blue-600 dark:hover:bg-blue-800">
            <img src="https://img.icons8.com/ios-filled/50/ffffff/facebook-new.png" alt="Facebook" class="w-6 h-6">
        </a>
        <a href="#" class="flex items-center justify-center w-12 h-12 rounded-full bg-blue-400 text-white hover:bg-blue-600 transition-all duration-300 shadow-lg dark:bg-blue-500 dark:hover:bg-blue-700">
            <img src="https://img.icons8.com/ios-filled/50/ffffff/twitter.png" alt="Twitter" class="w-6 h-6">
        </a>
        <a href="#" class="flex items-center justify-center w-12 h-12 rounded-full bg-pink-500 text-white hover:bg-pink-700 transition-all duration-300 shadow-lg dark:bg-pink-600 dark:hover:bg-pink-800">
            <img src="https://img.icons8.com/ios-filled/50/ffffff/instagram-new.png" alt="Instagram" class="w-6 h-6">
        </a>
        <a href="#" class="flex items-center justify-center w-12 h-12 rounded-full bg-red-500 text-white hover:bg-red-700 transition-all duration-300 shadow-lg dark:bg-red-600 dark:hover:bg-red-800">
            <img src="https://img.icons8.com/ios-filled/50/ffffff/pinterest.png" alt="Pinterest" class="w-6 h-6">
        </a>
    </div>
</div>

相关组件

社交分享按钮组件 51

一个响应式社交分享按钮组件,采用拟物化设计原则,按钮模仿现实世界对象,并支持深色主题。该组件使用 Tailwind CSS 样式,并包含来自 picsum.photos 的占位符图像和来自 randomuser.me 的头像。

打开

社交分享按钮组件

一个响应式的社交分享按钮组件,采用拟物风格的灰阶设计,适用于博客内容消费。包括黑暗模式支持。

打开

社交分享按钮

社交分享按钮组件,具有 Glassmorphism 设计、响应式效果和深色主题支持。不使用 JavaScript。

打开