组件 用户提及 User Mentions 组件

User Mentions 组件

一个简单的 User Mentions 组件,采用粗野主义风格设计,具有灰度配色方案,适用于商业和企业网站。它包括带有头像的用户提及,并且响应深色主题支持。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md">
  <h2 class="text-2xl font-bold text-black dark:text-white">User Mentions</h2>
  <ul class="mt-4 space-y-4">
    <li class="flex items-center space-x-4">
      <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User 1" class="w-10 h-10 rounded-full">
      <p class="text-gray-800 dark:text-gray-200">@john_doe</p>
    </li>
    <li class="flex items-center space-x-4">
      <img src="https://randomuser.me/api/portraits/women/1.jpg" alt="User 2" class="w-10 h-10 rounded-full">
      <p class="text-gray-800 dark:text-gray-200">@jane_smith</p>
    </li>
    <li class="flex items-center space-x-4">
      <img src="https://randomuser.me/api/portraits/men/2.jpg" alt="User 3" class="w-10 h-10 rounded-full">
      <p class="text-gray-800 dark:text-gray-200">@mark_twain</p>
    </li>
  </ul>
  <button class="mt-4 px-4 py-2 bg-gray-800 dark:bg-white text-white dark:text-gray-800 rounded-lg hover:bg-gray-700 dark:hover:bg-gray-300 focus:outline-none">See More Mentions</button>
</div>

相关组件

用户提及组件

用户提及组件,采用透明玻璃风格,具有响应式设计和暗黑模式支持。

打开

用户提及组件

一个响应式用户提及组件,支持黑暗主题,使用 Tailwind CSS。不需要 JavaScript,仅需 HTML 和 Tailwind 类。对于暗模式,请使用 Tailwind 的 dark: 前缀进行样式设置。图片来自 picsum.photos,头像来自 randomuser.me。

打开

用户提及组件

一个简单且极简的用户提及组件,用于博客和内容消费,具有响应式设计和黑暗主题支持.

打开