组件 类拟物卡片组件

类拟物卡片组件

响应式拟物风格卡片组件,支持暗模式,使用Tailwind CSS。包含占位图像和头像。

预览

HTML 代码

<div class="dark:bg-gray-900 dark:text-white bg-gray-200 text-gray-800 p-6 rounded-lg shadow-xl dark:shadow-2xl max-w-sm mx-auto my-8">
  <div class="relative">
    <img class="w-full h-48 object-cover rounded-md shadow-md transform transition duration-500 hover:scale-105" src="https://picsum.photos/400/300" alt="Placeholder image">
    <div class="absolute bottom-0 right-0 -mb-4 mr-4">
      <img class="w-10 h-10 rounded-full border-2 border-white shadow-lg" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar">
    </div>
  </div>
  <div class="mt-6">
    <h2 class="text-xl font-bold mb-2 dark:text-white text-gray-800">Skeuomorphic Card</h2>
    <p class="text-gray-700 dark:text-gray-300">
      This is a Skeuomorphism-inspired card with responsive effects and dark theme support utilizing Tailwind CSS.
    </p>
  </div>
  <div class="mt-4 flex justify-between items-center">
    <span class="text-sm text-gray-600 dark:text-gray-400">Posted on October 26, 2023</span>
    <button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-full shadow-md hover:shadow-lg transition duration-300 dark:bg-blue-700 dark:hover:bg-blue-600">
      Read More
    </button>
  </div>
</div>

相关组件

拟物风格卡片组件

以拟物化样式设计的简单 cards 组件,使用类似的配色方案进行阅读和内容消费。此组件是响应式的,并支持深色主题。

打开

黑暗模式卡片组件

一个为商业/企业网站设计的响应式卡片组件,具有深色模式用户界面和灰度配色方案,呈现适中复杂度和交互性。

打开

卡片组件

具有微交互和深色主题支持的响应式卡片组件。

打开