组件 用户提及 User Mentions 组件

User Mentions 组件

响应式 User Mentions 组件,采用 Retro/Vintage 风格和类似的配色方案设计,支持深色模式。它具有适用于社交媒体界面的用户头像、名称和消息文本。

预览

HTML 代码

<div class="p-4 bg-gradient-to-r from-yellow-400 to-pink-500 dark:from-yellow-600 dark:to-pink-700 rounded-lg shadow-lg max-w-md mx-auto">
    <h2 class="text-xl font-bold text-white mb-4">User Mentions</h2>
    <div class="flex items-center space-x-3 bg-white dark:bg-gray-800 p-3 rounded-md">
        <img src="https://randomuser.me/api/portraits/men/10.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
        <div class="flex flex-col">
            <span class="text-black dark:text-white font-semibold">John Doe</span>
            <p class="text-gray-700 dark:text-gray-400">Mentioned you in a post</p>
        </div>
    </div>
    <div class="flex items-center space-x-3 bg-white dark:bg-gray-800 p-3 rounded-md mt-3">
        <img src="https://randomuser.me/api/portraits/women/15.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
        <div class="flex flex-col">
            <span class="text-black dark:text-white font-semibold">Jane Smith</span>
            <p class="text-gray-700 dark:text-gray-400">Commented on your photo</p>
        </div>
    </div>
    <div class="flex items-center space-x-3 bg-white dark:bg-gray-800 p-3 rounded-md mt-3">
        <img src="https://randomuser.me/api/portraits/men/20.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
        <div class="flex flex-col">
            <span class="text-black dark:text-white font-semibold">Michael Brown</span>
            <p class="text-gray-700 dark:text-gray-400">Started following you</p>
        </div>
    </div>
</div>

相关组件

用户提及组件

一个复杂的用户提及组件,设计用于仪表板,支持暗模式和三元色彩方案。

打开

User Mentions 组件

一个简单而极简的用户提到了组件,它支持深色模式。可点击的用户头像和名称显示在 Flexbox 布局中。该组件响应迅速,可适应不同的屏幕大小。

打开

用户提及组件

一个拟物化的用户提及组件,旨在模仿现实世界的元素,具有响应效果和暗主题支持,使用Tailwind CSS。

打开