コンポーネント 画像ライトボックス イメージライトボックスコンポーネント

イメージライトボックスコンポーネント

ダッシュボード用に設計されたレスポンシブ画像ライトボックスコンポーネントで、3Dスタイルと単色の配色が特徴です。これには、ホバー効果と、ダークモードをサポートするためのTailwind CSSを使用したモーダル機能が含まれています。

プレビュー

HTMLコード

<div class="bg-gray-800 dark:bg-gray-900 p-6 rounded-lg shadow-lg relative">
    <h2 class="text-white text-2xl font-semibold text-center mb-4">Image Lightbox</h2>
    <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
        <div class="group relative rounded-lg overflow-hidden">
            <img src="https://picsum.photos/id/1018/400/300" alt="Sample Image" class="w-full h-auto rounded-lg group-hover:scale-105 transition-transform duration-300 ease-in-out" />
            <div class="absolute inset-0 bg-black bg-opacity-30 flex justify-center items-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out">
                <button class="text-white bg-blue-500 hover:bg-blue-600 font-semibold py-2 px-4 rounded">View</button>
            </div>
        </div>
        <div class="group relative rounded-lg overflow-hidden">
            <img src="https://picsum.photos/id/1025/400/300" alt="Sample Image" class="w-full h-auto rounded-lg group-hover:scale-105 transition-transform duration-300 ease-in-out" />
            <div class="absolute inset-0 bg-black bg-opacity-30 flex justify-center items-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out">
                <button class="text-white bg-blue-500 hover:bg-blue-600 font-semibold py-2 px-4 rounded">View</button>
            </div>
        </div>
        <div class="group relative rounded-lg overflow-hidden">
            <img src="https://picsum.photos/id/1032/400/300" alt="Sample Image" class="w-full h-auto rounded-lg group-hover:scale-105 transition-transform duration-300 ease-in-out" />
            <div class="absolute inset-0 bg-black bg-opacity-30 flex justify-center items-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out">
                <button class="text-white bg-blue-500 hover:bg-blue-600 font-semibold py-2 px-4 rounded">View</button>
            </div>
        </div>
    </div>
    <div class="mt-6">
        <h3 class="text-white text-xl font-semibold mb-2">User Avatars</h3>
        <div class="flex space-x-4">
            <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-2 border-gray-400" />
            <img src="https://randomuser.me/api/portraits/women/32.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-2 border-gray-400" />
            <img src="https://randomuser.me/api/portraits/men/50.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-2 border-gray-400" />
        </div>
    </div>
</div>

関連コンポーネント

イメージライトボックスコンポーネント

ダークモードをサポートするレスポンシブ画像ライトボックスコンポーネント。このコンポーネントには画像のギャラリーが表示され、画像をクリックすると、画像を参照するためのナビゲーション矢印を含む全画面モーダルが開きます。閉じるボタンが特徴で、インタラクティブな要素を強調表示するために鮮やかな色を使用しています。デザインはビジネス/企業のコンテキストに合わせて調整されており、プロフェッショナルでありながら魅力的なユーザーエクスペリエンスを保証します。

開ける

イメージライトボックスコンポーネント

レトロ/ビンテージデザインの画像ライトボックスコンポーネント、類似の配色、シンプルな複雑さ、ビジネス/企業向け。ダークテーマのサポートによるレスポンシブ。HTMLのみでTailwind CSSを使用。

開ける

イメージライトボックスコンポーネント

レスポンシブデザインとダッシュボードの目的でダークテーマをサポートするミニマリスト画像ライトボックスコンポーネント。画像には picsum.photos を使用します。

開ける