User Mentions Component
A responsive user mentions component designed for dark mode with Tailwind CSS support.
HTML Code
<div class="bg-gray-900 text-white p-4 rounded-lg shadow-lg">
<h2 class="text-lg font-semibold mb-2">Mentions</h2>
<div class="flex items-center space-x-3 mb-4">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
<div class="flex-1">
<p class="font-medium">John Doe</p>
<p class="text-gray-400 text-sm">@johndoe</p>
</div>
</div>
<div class="flex items-center space-x-3 mb-4">
<img src="https://randomuser.me/api/portraits/women/2.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
<div class="flex-1">
<p class="font-medium">Jane Smith</p>
<p class="text-gray-400 text-sm">@janesmith</p>
</div>
</div>
<div class="flex items-center space-x-3 mb-4">
<img src="https://randomuser.me/api/portraits/men/3.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
<div class="flex-1">
<p class="font-medium">Mike Johnson</p>
<p class="text-gray-400 text-sm">@mikejohnson</p>
</div>
</div>
<a href="#" class="text-blue-400 hover:underline">View more mentions</a>
</div>
<style>
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
body {
background-color: #1a1a1a;
}
}
</style>
Related Components
User Mentions Component
A user mention component with 3D design, responsive effects, and dark theme support using Tailwind CSS.
User Mentions Component
A responsive User Mentions Component with dark theme support, designed for business websites. Features microinteractions using Tailwind CSS and an earth-tone color scheme.
User Mentions Component
A simple User Mentions Component designed in a Brutalist style with a grayscale color scheme, suitable for business and corporate websites. It includes user mentions with avatars and is responsive with dark theme support.