简单内容展示

一个简单的内容显示组件,具有响应式设计和深色主题支持,使用 Tailwind CSS。

预览

HTML 代码

<div class="container mx-auto p-4 max-w-sm">
  <div class="bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden">
    <img class="w-full h-48 object-cover" src="https://picsum.photos/seed/123/400/300" alt="Placeholder image">
    <div class="p-4">
      <h2 class="text-xl font-semibold text-gray-800 dark:text-white mb-2">Article Title</h2>
      <p class="text-gray-600 dark:text-gray-300 text-sm leading-relaxed">This is a brief description of the article content. It provides a sneak peek into what the user can expect to read.</p>
      <div class="flex items-center mt-4">
        <img class="w-8 h-8 rounded-full mr-2" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Author avatar">
        <span class="text-gray-700 dark:text-gray-400 text-sm">John Doe</span>
      </div>
    </div>
  </div>
</div>

相关组件

Playful_Farming_Content_Card

一款简单、有趣且对比度高的内容显示卡,适用于农业和养殖网站,具有圆润元素和深色模式支持。

打开

复古社交媒体明信片

具有 80 年代/90 年代复古美学的响应式社交媒体明信片组件,使用带有紫红色口音的类似配色方案(天空、蓝绿色、紫色)。具有深色模式支持和交互式悬停效果。内容包括用户头像、用户名、时间戳、文本帖子、图像和作按钮(点赞、评论、分享)。使用 Tailwind CSS 构建。

打开

内容显示组件

一个内容展示组件,采用玻璃形态设计,具有响应式布局和暗主题支持。

打开