HTML 代码
<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md">
<h2 class="text-2xl font-bold mb-4 text-gray-800 dark:text-white">Infographics Title</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6">
<div class="flex flex-col items-center justify-center border p-4 rounded-lg transition ease-in-out duration-300 hover:shadow-lg">
<img src="https://picsum.photos/200" alt="Infographic Image" class="w-full h-32 object-cover rounded-md mb-2">
<h3 class="text-lg font-semibold text-gray-800 dark:text-white">Statistic 1</h3>
<p class="text-gray-600 dark:text-gray-400">Description for statistic 1</p>
</div>
<div class="flex flex-col items-center justify-center border p-4 rounded-lg transition ease-in-out duration-300 hover:shadow-lg">
<img src="https://picsum.photos/200" alt="Infographic Image" class="w-full h-32 object-cover rounded-md mb-2">
<h3 class="text-lg font-semibold text-gray-800 dark:text-white">Statistic 2</h3>
<p class="text-gray-600 dark:text-gray-400">Description for statistic 2</p>
</div>
<div class="flex flex-col items-center justify-center border p-4 rounded-lg transition ease-in-out duration-300 hover:shadow-lg">
<img src="https://picsum.photos/200" alt="Infographic Image" class="w-full h-32 object-cover rounded-md mb-2">
<h3 class="text-lg font-semibold text-gray-800 dark:text-white">Statistic 3</h3>
<p class="text-gray-600 dark:text-gray-400">Description for statistic 3</p>
</div>
</div>
<div class="mt-6 border-t pt-4">
<h3 class="text-lg font-semibold text-gray-800 dark:text-white">Additional Insights</h3>
<div class="flex items-center mt-2">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-2">
<p class="text-gray-600 dark:text-gray-400">This is an additional insight provided by User</p>
</div>
</div>
</div>
相关组件
复古图表组件
一个响应式信息图表组件,具有复古/复古设计、柔和的配色方案和深色模式支持。使用 Tailwind CSS 进行样式设置,并包含多个交互式元素,用于适合博客和内容使用的复杂界面。包括时间线、进度条、图表和号召性用语,均采用 80 年代/90 年代美学和柔和色彩的风格。将 picsum.photos 和 randomuser.me 中的随机图像用于头像。