<div class="wrapper">
<div class="glass-sidebar">
<div class="logo">
<div class="logo-icon"></div>
Dash<span style="color:#60a5fa">App</span>
</div>
<nav class="nav-menu">
<a href="#" class="nav-item active">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="7"></rect>
<rect x="14" y="3" width="7" height="7"></rect>
<rect x="14" y="14" width="7" height="7"></rect>
<rect x="3" y="14" width="7" height="7"></rect>
</svg>
<span>Dashboard</span>
</a>
<a href="#" class="nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span>Messages</span>
<span class="badge">3</span>
</a>
<a href="#" class="nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
<span>Team</span>
</a>
<a href="#" class="nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
<span>Settings</span>
</a>
</nav>
<div class="user-profile">
<img src="https://placehold.co/40x40/3b82f6/ffffff?text=AD" alt="Profile">
<div class="user-info">
<span class="name">Alex Doe</span>
<span class="role">Admin</span>
</div>
</div>
</div>
</div>* { box-sizing: border-box; }
body {
font-family: system-ui, "Segoe UI", sans-serif;
margin: 0;
height: 100vh;
/* Complex mesh gradient background */
background:
radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%),
radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%),
radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
background-color: #111;
display: flex;
}
.wrapper {
padding: 20px;
height: 100%;
}
.glass-sidebar {
width: 260px;
height: 100%;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 24px;
display: flex;
flex-direction: column;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.logo {
display: flex;
align-items: center;
gap: 12px;
font-size: 1.4rem;
font-weight: 700;
color: #fff;
margin-bottom: 40px;
padding: 0 12px;
}
.logo-icon {
width: 24px;
height: 24px;
background: #60a5fa;
border-radius: 6px;
box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}
.nav-menu {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
.nav-item {
text-decoration: none;
color: #94a3b8;
padding: 12px 16px;
border-radius: 12px;
font-weight: 500;
display: flex;
align-items: center;
gap: 14px;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}
.nav-item svg {
width: 20px;
height: 20px;
}
.nav-item:hover {
background: rgba(255, 255, 255, 0.08);
color: #e2e8f0;
}
.nav-item.active {
background: rgba(59, 130, 246, 0.15);
color: #60a5fa;
border: 1px solid rgba(59, 130, 246, 0.2);
}
.badge {
margin-left: auto;
background: #ef4444;
color: white;
font-size: 0.75rem;
padding: 2px 6px;
border-radius: 10px;
font-weight: 600;
}
.user-profile {
margin-top: auto;
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: rgba(0, 0, 0, 0.2);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.user-profile img {
border-radius: 10px;
width: 40px;
height: 40px;
}
.user-info {
display: flex;
flex-direction: column;
}
.user-info .name {
color: #fff;
font-size: 0.9rem;
font-weight: 500;
}
.user-info .role {
color: #64748b;
font-size: 0.8rem;
}Nothing to show yetType HTML, CSS or JavaScript and your page appears here.
Click any element to find its code Esc
Check this code before you run it
It came from a shared link. It runs with fewer permissions, so it cannot open pop-ups, submit forms or start downloads.
0.00s / 0.00s
Nothing has animated yet. Hover, click or type in the preview and each CSS animation, transition or
element.animate() call shows up here as it plays.