HTMLコード
<nav class="bg-white dark:bg-gray-900 shadow-md">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="text-2xl font-bold text-gray-800 dark:text-white">ShopSwift</div>
<div class="hidden md:flex space-x-6">
<a href="#" class="text-gray-600 dark:text-gray-300 hover:text-orange-500 dark:hover:text-orange-400 transition duration-300">Home</a>
<div class="relative group">
<button class="text-gray-600 dark:text-gray-300 hover:text-orange-500 dark:hover:text-orange-400 transition duration-300">Categories</button>
<div class="absolute left-0 mt-3 w-56 bg-white dark:bg-gray-800 shadow-lg rounded-md opacity-0 group-hover:opacity-100 group-hover:scale-100 transition-all duration-300 origin-top transform scale-95">
<div class="p-4">
<a href="#" class="block px-4 py-2 text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md">Electronics</a>
<a href="#" class="block px-4 py-2 text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md">Apparel</a>
<a href="#" class="block px-4 py-2 text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md">Home Goods</a>
<a href="#" class="block px-4 py-2 text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md">Books</a>
</div>
</div>
</div>
<a href="#" class="text-gray-600 dark:text-gray-300 hover:text-orange-500 dark:hover:text-orange-400 transition duration-300">Deals</a>
<a href="#" class="text-gray-600 dark:text-gray-300 hover:text-orange-500 dark:hover:text-orange-400 transition duration-300">Contact</a>
</div>
<div class="md:hidden">
<button class="text-gray-600 dark:text-gray-300 hover:text-orange-500 dark:hover:text-orange-400 focus:outline-none">
<svg class="w-6 h-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 12h16M4 18h16"></path></svg>
</button>
</div>
</div>
</nav>
関連コンポーネント
メガメニューコンポーネント
ミニマリスト/フラットデザイン、鮮やかな配色、複雑な複雑さのレベルを備えたメガメニューコンポーネント、ダッシュボードの目的、Tailwind CSSを使用。ダークテーマをサポートするレスポンシブデザイン。JavaScript コードは不要で、Tailwind クラスを含む HTML のみ。ダークモードでは、スタイリングにTailwindのdark:プレフィックスを使用します。画像は picsum.photos を使用し、アバターには randomuser.me を使用します。
メガメニューコンポーネント
ダークモードUI、類似の配色、およびダッシュボード用の複雑な複雑さを備えたメガメニューコンポーネント、Tailwind CSSを使用。レスポンシブであり、Tailwind dark:プレフィックスを使用してダークテーマをサポートする必要があります。JavaScript コードは不要で、HTML と Tailwind クラスのみ。画像はpicsum.photosから、アバターは randomuser.me から引用しています。
Neumorphic_Mega_Menu_Weather_Climate
天気と気候のデータに対応するレスポンシブな Neumorphic スタイルのメガ メニュー コンポーネントで、パステル カラー スキームとダーク モードのサポートが特徴です。