组件 提示框 拟物化工具提示组件

拟物化工具提示组件

一个复杂的工具提示组件,采用拟物化样式和大地色调设计,适用于支持深色模式的电子商务应用程序。

预览

HTML 代码

<div class="relative group">
    <img src="https://picsum.photos/200/200?random=1" alt="Product Image" class="w-40 h-40 rounded-lg shadow-lg">
    <div class="absolute z-10 hidden group-hover:flex flex-col items-center p-4 bg-gray-800 bg-opacity-80 border border-gray-700 rounded-lg shadow-lg transition-all duration-300 ease-in-out dark:bg-gray-900 dark:border-gray-600">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-2 border-white mb-2">
        <h3 class="text-lg text-earthgreen-200">Product Name</h3>
        <p class="text-sm text-earthbrown-200">Brief description of the product goes here. It mimics wood and soil textures for an earthy feel.</p>
        <div class="flex space-x-2 mt-2">
            <span class="px-3 py-1 text-xs text-white bg-earthbrown-300 rounded-full">Add to Cart</span>
            <span class="px-3 py-1 text-xs text-white bg-earthbrown-600 rounded-full">View More</span>
        </div>
    </div>
</div>

相关组件

复古工具提示组件

一个复古/古董主题的工具提示组件,具有响应效果和暗模式支持。

打开

玻璃质感单色简易工具提示

一个简单、响应迅速、兼容深色模式的工具提示组件,具有 Glassmorphism 风格、单色配色方案,适用于博客和内容网站。

打开

微交互工具提示组件

一个简单而引人入胜的提示工具组件,具有微交互动画、响应式设计和暗黑主题支持,采用Tailwind CSS构建。无需JavaScript。

打开