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 complex Image Lightbox Component designed in a Brutalist style, suitable for social media interfaces, featuring a grayscale color scheme and high contrast for dark mode support.
Memphis_Monochrome_Image_Lightbox
A simple, responsive image lightbox component with a Memphis Design influence, featuring a monochrome palette with a single bright accent color. Designed for job/career platforms.
Image Lightbox Component
A responsive image lightbox component designed with Glassmorphism style using Tailwind CSS. The component supports a dark theme with frosted glass-like translucent elements and blur effects.