HTML 代码
<div class="font-sans antialiased bg-gray-100 dark:bg-gray-900 text-gray-800 dark:text-gray-200 py-12 md:py-20">
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 class="text-center text-4xl sm:text-5xl font-extrabold text-blue-600 dark:text-orange-400 mb-12 sm:mb-16 tracking-tight animate-fade-in-down">
Our Journey
</h2>
<div class="relative before:absolute before:inset-0 before:ml-5 before:-translate-x-px md:before:mx-auto md:before:translate-x-0 before:h-full before:w-0.5 before:bg-gradient-to-b before:from-blue-500 before:via-orange-400 before:to-green-500 dark:before:from-orange-400 dark:before:via-blue-500 dark:before:to-green-400">
<!-- Timeline Item 1 -->
<div class="relative flex items-center justify-between md:justify-normal md:odd:flex-row-reverse group is-active mb-10 last:mb-0">
<!-- Icon -->
<div class="flex items-center justify-center w-10 h-10 rounded-full border border-white dark:border-gray-900 bg-blue-500 text-white dark:bg-orange-400 dark:text-gray-900 absolute left-0 md:left-1/2 -translate-x-1/2 shadow-xl group-hover:scale-110 transition-transform duration-300 ease-in-out z-10">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V7.414A2 2 0 0015.414 6L12 2.586A2 2 0 0010.586 2H6zm5 6a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V8z" clip-rule="evenodd"></path></svg>
</div>
<!-- Card -->
<div class="w-[calc(100%-4rem)] md:w-[calc(50%-2.5rem)] bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg transform group-hover:-translate-y-2 transition-transform duration-300 ease-in-out border border-gray-200 dark:border-gray-700 ml-auto md:ml-0 group-odd:mr-auto group-odd:ml-0 md:group-odd:mr-auto">
<div class="flex items-center mb-3">
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Author">
<div>
<p class="font-bold text-lg text-blue-700 dark:text-orange-300">2015: Foundation Inc.</p>
<p class="text-sm text-gray-500 dark:text-gray-400">A New Beginning</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-300">At our inception, we laid the groundwork for innovation, focusing on core values and a vision for the future. Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio, praesentium.</p>
</div>
</div>
<!-- Timeline Item 2 -->
<div class="relative flex items-center justify-between md:justify-normal md:odd:flex-row-reverse group is-active mb-10 last:mb-0">
<!-- Icon -->
<div class="flex items-center justify-center w-10 h-10 rounded-full border border-white dark:border-gray-900 bg-orange-400 text-gray-900 dark:bg-blue-500 dark:text-white absolute left-0 md:left-1/2 -translate-x-1/2 shadow-xl group-hover:scale-110 transition-transform duration-300 ease-in-out z-10">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l3 3a1 1 0 001.414-1.414L11 9.586V6z"></path></svg>
</div>
<!-- Card -->
<div class="w-[calc(100%-4rem)] md:w-[calc(50%-2.5rem)] bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg transform group-hover:-translate-y-2 transition-transform duration-300 ease-in-out border border-gray-200 dark:border-gray-700 ml-auto md:ml-0 group-odd:mr-auto group-odd:ml-0 md:group-odd:mr-auto">
<div class="flex items-center mb-3">
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Author">
<div>
<p class="font-bold text-lg text-orange-600 dark:text-blue-300">2018: Strategic Growth</p>
<p class="text-sm text-gray-500 dark:text-gray-400">Expanding Horizons</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-300">We successfully expanded our market reach and diversified our offerings, achieving significant milestones. Nostrum sint quasi debitis! Sunt, provident.</p>
</div>
</div>
<!-- Timeline Item 3 -->
<div class="relative flex items-center justify-between md:justify-normal md:odd:flex-row-reverse group is-active mb-10 last:mb-0">
<!-- Icon -->
<div class="flex items-center justify-center w-10 h-10 rounded-full border border-white dark:border-gray-900 bg-green-500 text-white dark:bg-green-400 dark:text-gray-900 absolute left-0 md:left-1/2 -translate-x-1/2 shadow-xl group-hover:scale-110 transition-transform duration-300 ease-in-out z-10">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</div>
<!-- Card -->
<div class="w-[calc(100%-4rem)] md:w-[calc(50%-2.5rem)] bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg transform group-hover:-translate-y-2 transition-transform duration-300 ease-in-out border border-gray-200 dark:border-gray-700 ml-auto md:ml-0 group-odd:mr-auto group-odd:ml-0 md:group-odd:mr-auto">
<div class="flex items-center mb-3">
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/78.jpg" alt="Author">
<div>
<p class="font-bold text-lg text-green-700 dark:text-green-300">2021: Innovation & Future</p>
<p class="text-sm text-gray-500 dark:text-gray-400">Pioneering New Frontiers</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-300">Driven by innovation, we are now setting new benchmarks and looking forward to an even brighter future. Consectetur, dolores suscipit! Ratione, reiciendis.</p>
</div>
</div>
<!-- Timeline Item 4 -->
<div class="relative flex items-center justify-between md:justify-normal md:odd:flex-row-reverse group is-active mb-10 last:mb-0">
<!-- Icon -->
<div class="flex items-center justify-center w-10 h-10 rounded-full border border-white dark:border-gray-900 bg-blue-500 text-white dark:bg-orange-400 dark:text-gray-900 absolute left-0 md:left-1/2 -translate-x-1/2 shadow-xl group-hover:scale-110 transition-transform duration-300 ease-in-out z-10">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.893 2.598a.5.5 0 00-.376 0L2.614 7.641a.5.5 0 000 .86l7.903 5.043a.5.5 0 00.376 0l7.903-5.043a.5.5 0 000-.86L10.893 2.598zM19 12.016a.5.5 0 00.38-.853L12.518 7a.5.5 0 00-.376 0L4.887 11.163a.5.5 0 000 .86L11.518 16a.5.5 0 00.376 0l7.903-5.043z"></path></svg>
</div>
<!-- Card -->
<div class="w-[calc(100%-4rem)] md:w-[calc(50%-2.5rem)] bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg transform group-hover:-translate-y-2 transition-transform duration-300 ease-in-out border border-gray-200 dark:border-gray-700 ml-auto md:ml-0 group-odd:mr-auto group-odd:ml-0 md:group-odd:mr-auto">
<div class="flex items-center mb-3">
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/women/90.jpg" alt="Author">
<div>
<p class="font-bold text-lg text-blue-700 dark:text-orange-300">2023: Global Impact</p>
<p class="text-sm text-gray-500 dark:text-gray-400">Leading the Way</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-300">Our commitment to excellence has led us to a global presence, influencing industries worldwide. Provident, ducimus! Voluptatibus, illum.</p>
</div>
</div>
</div>
</div>
</div>
相关组件
Timeline 组件
仪表板的响应式时间线组件,具有微交互和柔和的配色方案,支持深色主题。它使用 Tailwind CSS 进行样式设置,并包括来自 picsum.photos 的占位符图像和来自 randomuser.me 的头像。