Inhaltsverzeichnis Komponente 34
Eine reaktionsschnelle Inhaltsverzeichnis-Komponente, die mit Material Design gestaltet ist, Unterstützung für dunkle Designs bietet und Tailwind CSS verwendet.
HTML-Code
<div class="bg-white dark:bg-gray-800 shadow-md rounded-lg p-6 max-w-md mx-auto">
<h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200 mb-4">Table of Contents</h2>
<ul class="space-y-2">
<li>
<a href="#section1" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition duration-150 ease-in-out">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
Section 1
</a>
</li>
<li>
<a href="#section2" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition duration-150 ease-in-out">
<img src="https://randomuser.me/api/portraits/women/1.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
Section 2
</a>
</li>
<li>
<a href="#section3" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition duration-150 ease-in-out">
<img src="https://randomuser.me/api/portraits/men/2.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
Section 3
</a>
</li>
<li>
<a href="#section4" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition duration-150 ease-in-out">
<img src="https://randomuser.me/api/portraits/women/2.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
Section 4
</a>
</li>
<li>
<a href="#section5" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition duration-150 ease-in-out">
<img src="https://randomuser.me/api/portraits/men/3.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
Section 5
</a>
</li>
</ul>
</div>
Verwandte Komponenten
Komponente "Inhaltsverzeichnis"
Eine responsive Inhaltsverzeichniskomponente mit einem skeuomorphen Design, einem triadischen Farbschema und Unterstützung für dunkle Themen, die für Social-Media-Schnittstellen geeignet ist. Kein JavaScript, nur HTML und Tailwind CSS.
Bauhaus_Retro_Photography_TOC
Eine komplexe, reaktionsschnelle Inhaltsverzeichniskomponente für Fotografie-Websites, inspiriert von Bauhaus-Designprinzipien und einer Retro-/Vintage-Farbpalette. Mit geometrischen Formen, gedämpften Farben und vollständiger Unterstützung des Dunkelmodus, ideal für Fotogalerien und Portfolios.
Komponente "3D-Inhaltsverzeichnis"
Eine reaktionsschnelle Inhaltsverzeichnis-Komponente, die für den E-Commerce entwickelt wurde, mit 3D-Designelementen und einem komplementären Farbschema. Es enthält interaktive Elemente und unterstützt den Dunkelmodus.