内容显示组件

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

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 p-4">
  <div class="bg-white dark:bg-gray-800 bg-opacity-30 backdrop-blur-md rounded-lg shadow-lg p-6 max-w-lg">
    <h2 class="text-2xl font-bold text-gray-800 dark:text-white">Featured Content</h2>
    <p class="text-gray-700 dark:text-gray-300 mt-2">This is a content display component that utilizes glassmorphism design principles. It features a blurred background and translucent elements for a modern look.</p>
    <div class="mt-4">
      <img src="https://picsum.photos/300/200" alt="Random Image" class="rounded-lg" />
    </div>
    <div class="mt-4 flex items-center">
      <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-10 h-10 rounded-full border-2 border-white dark:border-gray-800 mr-3" />
      <span class="text-gray-600 dark:text-gray-300">John Doe</span>
    </div>
  </div>
</div>

相关组件

Pastel3DBlogContentCard

用于博客或内容部分的响应式内容显示组件,使用 Tailwind CSS 设计。它具有简单的布局,具有 3D 风格的美感,使用阴影和悬停效果。配色方案是浅色模式的柔和粉彩,具有兼容的深色模式主题。该组件包括图像、标题、元数据(作者/日期)、摘录和“阅读更多”按钮。占位符图像使用 picsum.photos 和 randomuser.me。

打开

内容展示组件

一个展示作品或产品的3D设计作品集,采用灰度色彩方案和响应式设计,支持深色模式.

打开

内容展示组件

一个简单的复古风格响应式内容展示组件,适用于电子商务,使用单色方案并支持暗黑模式。

打开