started sidebar implementation
This commit is contained in:
45
src/components/Sidebar.css
Normal file
45
src/components/Sidebar.css
Normal file
@ -0,0 +1,45 @@
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100vh;
|
||||
width: 250px;
|
||||
background-color: #fff;
|
||||
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
|
||||
border-right: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
padding: 1.5rem;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
background-color: #f9fafb;
|
||||
}
|
||||
|
||||
.sidebar-title {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
.sidebar-link {
|
||||
display: block;
|
||||
padding: 0.75rem 1.5rem;
|
||||
color: #374151;
|
||||
text-decoration: none;
|
||||
transition: background-color 0.2s ease;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
|
||||
.sidebar-link:hover {
|
||||
background-color: #f3f4f6;
|
||||
border-left-color: #3b82f6;
|
||||
}
|
||||
|
||||
.sidebar-link:active {
|
||||
background-color: #e5e7eb;
|
||||
}
|
||||
Reference in New Issue
Block a user