Skip to content

Commit a016076

Browse files
authored
feat: implement sticky header with glassmorphism (#3)
1 parent bae13ad commit a016076

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

frontend/src/index.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,26 @@ body {
2020
max-width: 1400px;
2121
margin: 0 auto;
2222
padding: 2rem;
23+
padding-top: 6rem;
24+
/* Add space for fixed header */
2325
}
2426

2527
.site-header {
2628
display: flex;
2729
justify-content: space-between;
2830
align-items: center;
2931
margin-bottom: 2rem;
30-
padding-bottom: 1rem;
32+
padding: 1rem 2rem;
3133
border-bottom: 1px solid #333;
34+
position: fixed;
35+
top: 0;
36+
left: 0;
37+
right: 0;
38+
background-color: rgba(10, 10, 10, 0.85);
39+
/* Semi-transparent background */
40+
backdrop-filter: blur(10px);
41+
/* Glassmorphism blur */
42+
z-index: 1000;
3243
}
3344

3445
.cart-icon {

0 commit comments

Comments
 (0)