コンポーネント コンテンツリンクにスキップする コンテンツリンクコンポーネントにスキップする

コンテンツリンクコンポーネントにスキップする

メインコンテンツにスキップするためのリンクを提供するWebコンポーネントで、パステルカラーの配色のマテリアルデザインでスタイル設定されており、eコマースWebサイトに適しています。ダークテーマをサポートするレスポンシブデザインが特徴です。

プレビュー

HTMLコード

<nav class="bg-pastel-200 dark:bg-gray-800 shadow-lg p-4 rounded-lg">
    <div class="flex justify-between items-center">
        <a href="#main-content" class="text-pastel-800 dark:text-white font-medium text-lg hover:text-pastel-600 dark:hover:text-gray-300 transition duration-300 ease-in-out">
            Skip to Content
        </a>
    </div>
</nav>

<main id="main-content" class="max-w-7xl mx-auto p-6 bg-white dark:bg-gray-900 rounded-lg shadow-md mt-4">
    <h1 class="text-2xl font-bold text-gray-800 dark:text-white">Welcome to Our E-commerce Store</h1>
    <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mt-4">
        <div class="bg-pastel-300 dark:bg-gray-700 p-4 rounded-lg shadow-md transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/200/300?random=1" alt="Product 1" class="w-full h-48 object-cover rounded-lg">
            <h2 class="mt-2 text-xl text-gray-800 dark:text-white">Product 1</h2>
            <p class="text-gray-600 dark:text-gray-300">Description of the product goes here.</p>
            <button class="mt-2 w-full bg-pastel-500 dark:bg-gray-600 text-gray-800 dark:text-white font-semibold py-2 rounded-lg hover:bg-pastel-600 dark:hover:bg-gray-500 transition duration-300 ease-in-out">Add to Cart</button>
        </div>
        <div class="bg-pastel-300 dark:bg-gray-700 p-4 rounded-lg shadow-md transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/200/300?random=2" alt="Product 2" class="w-full h-48 object-cover rounded-lg">
            <h2 class="mt-2 text-xl text-gray-800 dark:text-white">Product 2</h2>
            <p class="text-gray-600 dark:text-gray-300">Description of the product goes here.</p>
            <button class="mt-2 w-full bg-pastel-500 dark:bg-gray-600 text-gray-800 dark:text-white font-semibold py-2 rounded-lg hover:bg-pastel-600 dark:hover:bg-gray-500 transition duration-300 ease-in-out">Add to Cart</button>
        </div>
        <div class="bg-pastel-300 dark:bg-gray-700 p-4 rounded-lg shadow-md transition-transform transform hover:scale-105">
            <img src="https://picsum.photos/200/300?random=3" alt="Product 3" class="w-full h-48 object-cover rounded-lg">
            <h2 class="mt-2 text-xl text-gray-800 dark:text-white">Product 3</h2>
            <p class="text-gray-600 dark:text-gray-300">Description of the product goes here.</p>
            <button class="mt-2 w-full bg-pastel-500 dark:bg-gray-600 text-gray-800 dark:text-white font-semibold py-2 rounded-lg hover:bg-pastel-600 dark:hover:bg-gray-500 transition duration-300 ease-in-out">Add to Cart</button>
        </div>
    </div>
</main>

関連コンポーネント

コンテンツリンクにスキップ - レトロな単色

レトロ/ビンテージデザイン、単色の配色、シンプルな複雑さのコンテンツリンクコンポーネントにスキップします。

開ける

コンテンツリンクコンポーネントにスキップする

物理ボタンに似たスキューモーフィック要素で設計された Skip to Content Link コンポーネント。このコンポーネントには、パステル調の配色、ホバー効果を含む適度な複雑さ、ダーク テーマのサポートがあります。

開ける

コンテンツリンクコンポーネントにスキップする

視覚的に魅力的な 3D スタイルの [コンテンツにスキップ] リンクは、ユーザーがソーシャル メディア インターフェイスのナビゲーション メニューをバイパスするのに役立ちます。このコンポーネントは、補色 (青とオレンジ) を使用し、影と変換によって 3D 効果を実現します。レスポンシブデザインとダークテーマのサポートを備えています。リンクは、フォーカスされているときやアクティブになっているときはビューポートの左上に固定されているように見えるため、キーボード操作に簡単にアクセスでき、使用していないときは目立たないようになっています。

開ける