组件 类拟物卡片组件

类拟物卡片组件

响应式拟物风格卡片组件,支持暗模式,使用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>

相关组件

拟物化卡片组件

受拟物化设计启发,以下卡片组件完全响应,支持暗主题。对于暗模式,仅需 CSS 支持,无需 JavaScript。

打开

社交媒体卡片组件

适用于社交媒体界面的简约而充满活力的卡片组件,显示带有图像、点赞、评论和共享选项的用户帖子。它是完全响应的,并支持深色模式。

打开

Forum_Community_Cards_Component

适用于论坛或社区平台的响应式交互式卡片组件,具有复古/复古配色方案和用于微交互的微妙悬停效果。包括深色模式支持和语义 HTML。

打开