HTML 代码
<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg transition-transform transform hover:scale-105">
<div class="flex items-center mb-4">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-12 h-12 rounded-full border-2 border-gray-300 dark:border-gray-600 mr-3" />
<div class="flex flex-col">
<span class="text-gray-800 dark:text-gray-200 font-semibold">John Doe</span>
<span class="text-gray-500 dark:text-gray-400 text-sm">March 10, 2023</span>
</div>
</div>
<h2 class="text-gray-900 dark:text-gray-100 text-xl font-bold mb-2">Exploring the Depths of 3D Design</h2>
<p class="text-gray-700 dark:text-gray-300 mb-4">Incorporating three-dimensional elements into design can create an engaging experience for users, making the content more appealing and enjoyable to consume. In this post, we explore various techniques...</p>
<img src="https://picsum.photos/400/200?random=1" alt="3D Design Example" class="rounded-lg mb-4 shadow-md">
<button class="bg-gray-800 dark:bg-gray-300 text-white dark:text-gray-800 px-4 py-2 rounded-md transition duration-300 hover:bg-gray-700 dark:hover:bg-gray-400">Read More</button>
</div>
相关组件
复古社交媒体明信片
具有 80 年代/90 年代复古美学的响应式社交媒体明信片组件,使用带有紫红色口音的类似配色方案(天空、蓝绿色、紫色)。具有深色模式支持和交互式悬停效果。内容包括用户头像、用户名、时间戳、文本帖子、图像和作按钮(点赞、评论、分享)。使用 Tailwind CSS 构建。