イメージライトボックスコンポーネント
eコマースWebサイト向けに設計されたシンプルなレスポンシブ画像ライトボックスコンポーネントで、ダークモードスタイルと類似の配色が特徴です。
HTMLコード
<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>
関連コンポーネント
イメージライトボックスコンポーネント
ダッシュボード用に設計されたレスポンシブ画像ライトボックスコンポーネントで、3Dスタイルと単色の配色が特徴です。これには、ホバー効果と、ダークモードをサポートするためのTailwind CSSを使用したモーダル機能が含まれています。
イメージライトボックスコンポーネント
現実世界の対応物を模倣するように設計されたスキューモーフィック イメージ ライトボックス コンポーネントで、レスポンシブ エフェクトと Tailwind CSS を使用したダーク テーマのサポートが特徴です。