Komponenten Zum Inhaltslink springen Zur Inhaltslink-Komponente springen

Zur Inhaltslink-Komponente springen

Eine Webkomponente, die unter Verwendung von Tailwind CSS einen 3D-formatierten Link "Zum Inhalt springen" mit responsiven Effekten und Unterstützung für dunkle Themen bereitstellt.

Vorschau

HTML-Code

<div class="relative group">
    <a href="#main-content" class="inline-block px-4 py-2 text-white bg-blue-500 rounded-full shadow-lg transform transition-transform duration-300 ease-in-out hover:scale-105 hover:shadow-2xl dark:bg-blue-700 dark:shadow-lg dark:hover:scale-110">
        Skip to Content
    </a>
    <div class="absolute left-0 translate-y-full opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out">
        <div class="bg-gray-800 dark:bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg">
            Skip past navigation and other elements to main content.
        </div>
    </div>
</div>

<div id="main-content" class="mt-10 bg-gray-100 dark:bg-gray-800 p-6 rounded-lg shadow-md">
    <h1 class="text-2xl font-bold text-gray-900 dark:text-white">Main Content Area</h1>
    <p class="mt-4 text-gray-700 dark:text-gray-300">This is where the main content goes. You can add your text and images here.</p>
    <img src="https://picsum.photos/600/400" alt="Random placeholder" class="mt-4 rounded-lg shadow-md">
    <p class="mt-4 text-gray-700 dark:text-gray-300">You can use this space to illustrate the content being referred to by the 'Skip to Content' link.</p>
</div>

Verwandte Komponenten

Zur Inhaltslink-Komponente springen

Glassmorphism Skip to Content Link mit Milchglaseffekt, Unschärfe, Reaktionsfähigkeit und Unterstützung für den Dunkelmodus mit Tailwind CSS ohne JavaScript.

Offen

Zum Inhaltslink springen

Eine Komponente vom Typ "Zum Inhaltslink springen", die nach den Prinzipien des Materialdesigns, einem monochromatischen Farbschema und der Unterstützung des Dunkelmodus gestaltet ist. Es eignet sich für E-Commerce-Websites und wird mit Tailwind CSS ohne JavaScript erstellt.

Offen

Zum Inhaltslink springen

Skip to Content Link Component orientiert sich an den Prinzipien des Material Designs und bietet responsives Design, Unterstützung für den Dunkelmodus und ein einfaches monochromatisches Farbschema für Social-Media-Anwendungen.

Offen