Image Lightbox Component
A simple responsive image lightbox component designed for e-commerce websites, featuring a dark mode style and analogous color scheme.
HTML Code
<div class="fixed inset-0 flex items-center justify-center bg-gray-900 dark:bg-gray-800 z-50">
<div class="relative w-full max-w-2xl">
<button class="absolute top-0 right-0 p-2 text-white hover:bg-gray-700 dark:hover:bg-gray-600 rounded-full focus:outline-none" aria-label="Close">
×
</button>
<img src="https://picsum.photos/800/600" alt="Product Image" class="w-full h-auto rounded-lg shadow-lg">
<div class="flex justify-between mt-4">
<button class="flex items-center justify-center w-10 h-10 bg-gray-700 dark:bg-gray-600 rounded-full text-white hover:bg-gray-600 dark:hover:bg-gray-500">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-full h-full rounded-full">
</button>
<button class="flex items-center justify-center w-10 h-10 bg-gray-700 dark:bg-gray-600 rounded-full text-white hover:bg-gray-600 dark:hover:bg-gray-500">
<img src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Avatar" class="w-full h-full rounded-full">
</button>
</div>
</div>
</div>
Related Components
Image Lightbox Component
A responsive image lightbox component with a retro/vintage design and earth tone color scheme, suitable for dashboards.
Image Lightbox Component
Image Lightbox Component with Retro/Vintage design, Analogous color scheme, Simple complexity, for Business/Corporate purpose. Responsive with dark theme support. HTML only with Tailwind CSS.
Image Lightbox Component
A responsive Image Lightbox component designed in Material Design style, featuring a triadic color scheme and support for dark mode. It's suitable for portfolio showcasing work or products.