组件 侧 栏 侧边栏组件

侧边栏组件

一个使用Tailwind CSS设计的响应式黑暗模式侧边栏组件,具有深色背景、悬停效果和用于图片和头像的占位符。

预览

HTML 代码

<div class="flex flex-col h-screen bg-gray-800 text-white p-4">
    <div class="flex items-center mb-6">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-2">
        <h1 class="text-xl font-semibold">User Name</h1>
    </div>
    <nav class="flex-1">
        <ul>
            <li class="mb-4">
                <a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 transition duration-300">
                    <img src="https://picsum.photos/50/50" alt="Home Icon" class="w-6 h-6 mr-2">Home
                </a>
            </li>
            <li class="mb-4">
                <a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 transition duration-300">
                    <img src="https://picsum.photos/50/50" alt="Profile Icon" class="w-6 h-6 mr-2">Profile
                </a>
            </li>
            <li class="mb-4">
                <a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 transition duration-300">
                    <img src="https://picsum.photos/50/50" alt="Settings Icon" class="w-6 h-6 mr-2">Settings
                </a>
            </li>
            <li class="mb-4">
                <a href="#" class="flex items-center p-2 rounded hover:bg-gray-700 transition duration-300">
                    <img src="https://picsum.photos/50/50" alt="Logout Icon" class="w-6 h-6 mr-2">Logout
                </a>
            </li>
        </ul>
    </nav>
    <footer>
        <p class="text-gray-400 text-sm">© 2023 Your Company</p>
    </footer>
</div>

相关组件

Healthcare Sidebar 组件

一个复杂、极简且响应迅速的侧边栏组件,适用于医疗保健应用程序,具有类似的配色方案和深色模式支持。包括导航、用户配置文件和快速链接。

打开

侧边栏组件

一个简单的响应式侧边栏组件,具有野兽派设计、单色配色方案和深色模式支持。

打开

Consulting_Sidebar_Dark_Candy_Complex

一个用于咨询/服务的复杂响应式侧边栏组件,具有深色模式 UI,带有糖果/甜美的色调。包括导航、用户配置文件和快速链接。

打开