이미지 라이트박스 구성 요소
브루탈리즘 스타일로 디자인된 복잡한 이미지 라이트박스 컴포넌트로, 소셜 미디어 인터페이스에 적합하며, 그레이스케일 색 구성표와 다크 모드 지원을 위한 고대비가 특징입니다.
HTML 코드
<div class="relative z-10">
<!-- Thumbnail Trigger -->
<div class="mb-4">
<img src="https://picsum.photos/200/300" alt="Thumbnail" class="cursor-pointer h-auto w-full border border-gray-700 hover:border-gray-500 dark:border-gray-300 dark:hover:border-gray-100">
</div>
<!-- Modal for Lightbox -->
<div class="fixed inset-0 bg-gray-900 bg-opacity-75 dark:bg-opacity-95 flex items-center justify-center hidden group-hover:block">
<div class="bg-gray-800 w-full max-w-3xl p-6 rounded-lg shadow-lg border border-gray-700">
<!-- Image Display -->
<img src="https://picsum.photos/800/600" alt="Large Image" class="w-full h-auto mb-4 rounded-lg border border-gray-600 dark:border-gray-400">
<!-- Close Button -->
<button class="absolute top-4 right-4 text-white hover:text-gray-400">
×
</button>
<div class="flex justify-end mt-4">
<a href="#" class="text-gray-300 hover:text-gray-100 transition-colors duration-200">Next</a>
<a href="#" class="ml-4 text-gray-300 hover:text-gray-100 transition-colors duration-200">Previous</a>
</div>
</div>
</div>
</div>
<style>
/* Brutalist Styles */
img {
user-select: none;
}
button {
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
}
button:hover {
color: #ddd;
}
.hidden {
display: none;
}
</style>
관련 구성 요소
이미지 라이트박스 구성 요소
미니멀리스트 이미지 라이트박스 컴포넌트는 반응형 디자인과 대시보드 목적을 위한 어두운 테마를 지원합니다. 이미지에 picsum.photos를 사용합니다.
이미지 라이트박스 구성 요소
Tailwind CSS를 사용하는 레트로/빈티지 테마의 반응형 이미지 라이트박스 구성요소로, 다크 모드를 지원하고 플레이스홀더 이미지를 제공합니다.