组件 侧 栏 侧边栏组件

侧边栏组件

一个使用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>

相关组件

侧边栏组件

一个极简主义的侧边栏组件,具有响应式设计和深色主题支持,利用 Tailwind CSS.

打开

带深色模式的玻璃质感侧边栏

一个响应式侧边栏组件,采用玻璃形态设计和深色模式支持,使用 Tailwind CSS。它包括一个logo、站点名称、导航链接和用户个人资料部分。

打开

侧边栏组件

一个用于电子商务的响应式极简侧边栏组件,支持深色模式。它具有带有产品类别和购物车图标的简单布局。

打开