HTML 代码
<div class="container mx-auto px-4 py-8">
<h2 class="text-3xl font-bold text-center text-gray-800 dark:text-white mb-8">Company History</h2>
<div class="relative">
<!-- Vertical line -->
<div class="border-r-4 border-blue-500 absolute h-full top-0" style="left: 1.5rem"></div>
<!-- Timeline items -->
<div class="mb-8 flex justify-between items-center w-full right-auto left-0">
<div class="order-1 w-5/12"></div>
<div class="z-10 flex items-center order-1 bg-blue-800 shadow-xl w-8 h-8 rounded-full">
<h1 class="mx-auto font-semibold text-lg text-white">1</h1>
</div>
<div class="order-1 bg-gray-200 dark:bg-gray-700 rounded-lg shadow-xl w-5/12 px-6 py-4">
<h3 class="mb-3 font-bold text-gray-800 dark:text-white text-xl">Founded</h3>
<p class="text-sm leading-snug tracking-wide text-gray-900 dark:text-gray-300 text-opacity-100">Our journey began with a vision to innovate.</p>
</div>
</div>
<div class="mb-8 flex justify-between items-center w-full right-auto left-0 flex-row-reverse">
<div class="order-1 w-5/12"></div>
<div class="z-10 flex items-center order-1 bg-blue-800 shadow-xl w-8 h-8 rounded-full">
<h1 class="mx-auto font-semibold text-lg text-white">2</h1>
</div>
<div class="order-1 bg-gray-200 dark:bg-gray-700 rounded-lg shadow-xl w-5/12 px-6 py-4">
<h3 class="mb-3 font-bold text-gray-800 dark:text-white text-xl">First Product Launch</h3>
<p class="text-sm leading-snug tracking-wide text-gray-900 dark:text-gray-300 text-opacity-100">Introducing our breakthrough product to the market.</p>
</div>
</div>
<div class="mb-8 flex justify-between items-center w-full right-auto left-0">
<div class="order-1 w-5/12"></div>
<div class="z-10 flex items-center order-1 bg-blue-800 shadow-xl w-8 h-8 rounded-full">
<h1 class="mx-auto font-semibold text-lg text-white">3</h1>
</div>
<div class="order-1 bg-gray-200 dark:bg-gray-700 rounded-lg shadow-xl w-5/12 px-6 py-4">
<h3 class="mb-3 font-bold text-gray-800 dark:text-white text-xl">Expanding Horizons</h3>
<p class="text-sm leading-snug tracking-wide text-gray-900 dark:text-gray-300 text-opacity-100">Opening new offices and reaching global customers.</p>
</div>
</div>
<div class="mb-8 flex justify-between items-center w-full right-auto left-0 flex-row-reverse">
<div class="order-1 w-5/12"></div>
<div class="z-10 flex items-center order-1 bg-blue-800 shadow-xl w-8 h-8 rounded-full">
<h1 class="mx-auto font-semibold text-lg text-white">4</h1>
</div>
<div class="order-1 bg-gray-200 dark:bg-gray-700 rounded-lg shadow-xl w-5/12 px-6 py-4">
<h3 class="mb-3 font-bold text-gray-800 dark:text-white text-xl">Future Ready</h3>
<p class="text-sm leading-snug tracking-wide text-gray-900 dark:text-gray-300 text-opacity-100">Innovating for a better future.</p>
</div>
</div>
</div>
</div>
相关组件
灰度社交媒体时间线
使用 Tailwind CSS 构建的响应式、暗模式就绪社交媒体时间线组件。它具有严格的灰度配色方案,以及带有用户头像、帖子内容(文本和图像)、参与度统计数据和作按钮的复杂明信片。专为社交网络界面而设计,每个帖子上都有多个互动元素。该设计支持深色背景以减少眼睛疲劳。不使用 JavaScript。
Cyberpunk_Timeline_Dating_Social_Component
一个响应式时间线组件,具有赛博朋克美学,适用于约会和社交平台。具有深色背景、温暖的霓虹灯装饰和适用于台式机、平板电脑和移动设备的自适应布局,并完全支持深色模式。