HTML 코드
<nav class="bg-gray-900 shadow-lg">
<div class="container mx-auto px-4">
<div class="flex items-center justify-between py-4">
<a href="#" class="text-white text-xl font-bold">Logo</a>
<div class="hidden md:flex md:items-center md:space-x-4">
<a href="#" class="text-gray-300 hover:text-white transition duration-300">Home</a>
<div class="relative group">
<button class="text-gray-300 hover:text-white transition duration-300">Products</button>
<div class="absolute z-10 hidden group-hover:block bg-gray-800 shadow-lg mt-2 rounded-md">
<a href="#" class="block px-4 py-2 text-gray-300 hover:text-white">Product 1</a>
<a href="#" class="block px-4 py-2 text-gray-300 hover:text-white">Product 2</a>
<a href="#" class="block px-4 py-2 text-gray-300 hover:text-white">Product 3</a>
</div>
</div>
<a href="#" class="text-gray-300 hover:text-white transition duration-300">About</a>
<a href="#" class="text-gray-300 hover:text-white transition duration-300">Contact</a>
</div>
<div class="md:hidden">
<button class="text-gray-300 hover:text-white focus:outline-none">
<svg class="h-6 w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-4 6h4"></path>
</svg>
</button>
</div>
</div>
</div>
</nav>
관련 구성 요소
메가 메뉴 컴포넌트
미니멀리스트/플랫 디자인, 생생한 색 구성표, 복잡한 복잡성 수준이 있는 메가 메뉴 구성 요소, 대시보드 목적, Tailwind CSS 사용. 어두운 테마를 지원하는 반응형 디자인. JavaScript 코드는 없으며 Tailwind 클래스가있는 HTML 만 있습니다. 다크 모드는 스타일링을 위해 Tailwind의 dark: 접두사를 사용합니다. 이미지는 아바타에 picsum.photos 및 randomuser.me 를 사용합니다.
메가 메뉴 컴포넌트
Glassmorphism 스타일로 디자인된 반응형 메가 메뉴 컴포넌트로, 블러 효과가 있는 젖빛 유리와 같은 반투명 요소를 특징으로 하며 Tailwind CSS를 사용하여 어두운 테마를 지원합니다.