互动组件 25

一个具有材料设计风格的交互组件,具备网格布局、响应设计和深色主题支持。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 max-w-sm mx-auto">
  <div class="flex items-center space-x-4">
    <img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar">
    <div>
      <h2 class="text-xl font-bold text-gray-800 dark:text-white">John Doe</h2>
      <p class="text-gray-600 dark:text-gray-400">Software Engineer</p>
    </div>
  </div>

  <div class="mt-4">
    <img class="w-full rounded-lg" src="https://picsum.photos/400/200?random=1" alt="Random Image">
  </div>

  <div class="mt-4">
    <h3 class="text-lg font-semibold text-gray-800 dark:text-white">About Me</h3>
    <p class="text-gray-600 dark:text-gray-400">I'm a passionate software engineer with experience in building web applications. I love coding and exploring new technologies.</p>
  </div>

  <div class="mt-4 flex justify-between">
    <a href="#" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 dark:bg-blue-700 dark:hover:bg-blue-600">Connect</a>
    <a href="#" class="px-4 py-2 border border-gray-300 text-gray-600 rounded-lg hover:border-gray-400 dark:border-gray-700 dark:text-gray-400">Message</a>
  </div>
</div>

相关组件

交互组件

一个互动组件,采用玻璃质感设计,柔和的色彩方案和简单的布局,适用于博客内容。它是响应式的,并包括深色模式支持。

打开

粗野主义作品集互动

一个互动组件,采用野兽派设计,鲜艳的颜色,复杂的布局,适用于作品集,支持深色主题的响应式设计。

打开

互动组件

具有极简/扁平设计的互动组件,采用大地色调的色彩方案,复杂程度适合仪表板目的,使用Tailwind CSS实现。响应式设计,支持深色主题。使用picsum.photos提供图片,随机用户.me提供头像。

打开