组件 图像灯箱 图像灯箱组件

图像灯箱组件

一个响应式图像灯箱组件,采用粗犷主义风格和大地色调。它支持黑暗模式以用于仪表板可视化。

预览

HTML 代码

<div class="relative"> 
    <!-- Lightbox trigger --> 
    <div class="group cursor-pointer"> 
        <img src="https://picsum.photos/300/200" alt="Thumbnail" class="w-full h-auto rounded-lg border-2 border-gray-700 dark:border-gray-300 transition-all duration-300 ease-in-out hover:scale-105"> 
    </div> 
    
    <!-- Lightbox overlay --> 
    <div class="hidden group-hover:block fixed inset-0 bg-gray-900 bg-opacity-75 flex items-center justify-center transition-opacity duration-300"> 
        <div class="relative p-4"> 
            <img src="https://picsum.photos/800/600" alt="Lightbox Image" class="max-w-full max-h-[90vh] rounded-lg border-4 border-yellow-500 dark:border-cyan-400 shadow-2xl"> 
            <button class="absolute top-2 right-2 bg-red-500 text-white p-2 rounded-full hover:bg-red-700 transition-colors duration-300">Close</button> 
        </div> 
    </div> 
</div> 

<!-- Avatar Section --> 
<div class="mt-4 flex items-center space-x-3"> 
    <img src="https://randomuser.me/api/portraits/men/10.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-2 border-gray-700 dark:border-gray-300"> 
    <div class="text-lg text-gray-800 dark:text-gray-200"> 
        <h3 class="font-bold">User Name</h3> 
        <p class="text-sm text-gray-600 dark:text-gray-400">User Role</p> 
    </div> 
</div>

相关组件

图像灯箱组件

一个响应式图像灯箱组件,专为电子商务设计,具有极简的扁平化设计风格,使用 Tailwind CSS 支持浅色和深色主题。

打开

图片灯箱组件

一个为仪表板设计的响应式图像灯箱组件,具有3D风格和单色配色方案。它包括悬停效果和使用Tailwind CSS实现暗模式支持的模态功能。

打开

Image Lightbox 组件

支持深色模式的响应式图像灯箱组件。此组件会显示一个图像库,单击图像会打开一个全屏模式,其中包含导航箭头以浏览图像。它具有关闭按钮,并使用鲜艳的色彩来突出交互式元素。该设计专为商业/企业环境量身定制,确保专业而引人入胜的用户体验。

打开