Zeitleisten-Komponente
Eine reaktionsschnelle Timeline-Komponente mit Unterstützung für den Dunkelmodus und Mikrointeraktionen mit Tailwind CSS. Kein JavaScript erforderlich.
HTML-Code
<div class="container mx-auto px-4 py-8">
<div class="flex flex-col md:grid grid-cols-12 text-gray-50">
<div class="flex md:contents">
<div class="col-start-2 col-end-4 mr-10 md:mx-auto relative">
<div class="h-full w-6 flex items-center justify-center">
<div class="h-full w-1 bg-blue-800 pointer-events-none"></div>
</div>
<div class="w-6 h-6 absolute top-1/2 -mt-3 rounded-full bg-blue-500 shadow text-center">
<i class="fas fa-check-circle text-white"></i>
</div>
</div>
<div class="col-start-4 col-end-12 p-4 rounded-xl my-4 mr-auto shadow-md w-full">
<h3 class="font-semibold text-lg mb-1">Event Title 1</h3>
<p class="leading-tight text-justify">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et nunc id erat facilisis ultricies sed ac erat.
</p>
</div>
</div>
<div class="flex md:contents">
<div class="col-start-2 col-end-4 mr-10 md:mx-auto relative">
<div class="h-full w-6 flex items-center justify-center">
<div class="h-full w-1 bg-blue-800 pointer-events-none"></div>
</div>
<div class="w-6 h-6 absolute top-1/2 -mt-3 rounded-full bg-blue-500 shadow text-center">
<i class="fas fa-check-circle text-white"></i>
</div>
</div>
<div class="col-start-4 col-end-12 p-4 rounded-xl my-4 mr-auto shadow-md w-full">
<h3 class="font-semibold text-lg mb-1">Event Title 2</h3>
<p class="leading-tight text-justify">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et nunc id erat facilisis ultricies sed ac erat.
</p>
</div>
</div>
<div class="flex md:contents">
<div class="col-start-2 col-end-4 mr-10 md:mx-auto relative">
<div class="h-full w-6 flex items-center justify-center">
<div class="h-full w-1 bg-blue-800 pointer-events-none"></div>
</div>
<div class="w-6 h-6 absolute top-1/2 -mt-3 rounded-full bg-blue-500 shadow text-center">
<i class="fas fa-check-circle text-white"></i>
</div>
</div>
<div class="col-start-4 col-end-12 p-4 rounded-xl my-4 mr-auto shadow-md w-full">
<h3 class="font-semibold text-lg mb-1">Event Title 3</h3>
<p class="leading-tight text-justify">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et nunc id erat facilisis ultricies sed ac erat.
</p>
</div>
</div>
</div>
</div>
Verwandte Komponenten
Zeitleisten-Komponente
Eine minimalistische Flat-Design-Timeline-Komponente zur Präsentation von Arbeiten oder Produkten in einem Portfolio mit leuchtenden Farben und Unterstützung für dunkle Themen.
Skeuomorphe Zeitachsenkomponente
Eine Skeuomorphic Timeline Component mit responsiven Effekten und Unterstützung für dunkle Themen, die mit Tailwind CSS erstellt wurde. Kein JavaScript erforderlich, nur HTML und CSS.
Zeitleisten-Komponente
Eine reaktionsschnelle Zeitleistenkomponente für Dashboards mit Mikrointeraktionen und einem pastellfarbenen Farbschema mit Unterstützung für dunkle Themen. Es verwendet Tailwind CSS für das Styling und enthält Platzhalterbilder von picsum.photos und Avatare von randomuser.me.