Skip to content

Commit 91ee62c

Browse files
last changes before overhaul
1 parent 2928f64 commit 91ee62c

File tree

2 files changed

+51
-26
lines changed

2 files changed

+51
-26
lines changed

src/components/NavBar.module.css

+13-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
top: 0;
44
left: 0;
55
width: calc(100% - 16px); /* Account for window frame */
6-
background-color: rgba(44, 44, 44, 0.95);
7-
backdrop-filter: blur(5px);
8-
padding: 6px 12px 6px 12px;
6+
background-color: rgba(0, 0, 0, 0.4);
7+
backdrop-filter: blur(8px);
8+
-webkit-backdrop-filter: blur(8px);
9+
padding: 4px 12px;
910
display: flex;
1011
justify-content: space-between;
1112
align-items: center;
1213
z-index: 1000;
13-
height: 30px;
14+
height: 24px;
15+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
16+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1417
}
1518

1619
.navList {
@@ -49,7 +52,12 @@
4952
}
5053

5154
:global(.light) .nav {
52-
background-color: rgba(248, 248, 248, 0.8);
55+
background-color: rgba(255, 255, 255, 0.8);
56+
border-bottom-color: rgba(0, 0, 0, 0.1);
57+
}
58+
59+
:global(.dark) .nav {
60+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
5361
}
5462

5563
:global(.light) .navLink {

src/components/QuoteWidget.module.css

+38-21
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,42 @@
11
.widget {
22
position: fixed;
33
bottom: 20px;
4-
right: 20px;
5-
width: 300px;
6-
background-color: var(--modal-bg);
4+
left: 50%;
5+
transform: translateX(-50%);
6+
width: 400px;
7+
background-color: rgba(0, 0, 0, 0.4);
8+
backdrop-filter: blur(8px);
9+
-webkit-backdrop-filter: blur(8px);
710
border-radius: 8px;
8-
padding: 8px 12px 12px;
9-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
11+
padding: 4px 16px 8px;
12+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
13+
border: 1px solid rgba(255, 255, 255, 0.1);
1014
z-index: 100;
1115
transition: all 0.3s ease;
1216
}
1317

18+
:global(.light) .widget {
19+
background-color: rgba(255, 255, 255, 0.8);
20+
border-color: rgba(0, 0, 0, 0.1);
21+
}
22+
1423
.header {
1524
display: flex;
1625
justify-content: flex-end;
1726
align-items: center;
18-
margin-bottom: 4px;
27+
margin-bottom: 2px;
1928
}
2029

2130
.quoteContainer {
2231
display: flex;
2332
align-items: center;
24-
gap: 8px;
33+
gap: 12px;
2534
}
2635

2736
.quoteContent {
2837
flex: 1;
2938
min-width: 0;
30-
padding: 0 4px;
39+
padding: 0 8px;
3140
}
3241

3342
.navButton {
@@ -79,49 +88,57 @@
7988
.quote {
8089
margin: 0;
8190
padding: 0;
82-
font-size: 0.9rem;
83-
line-height: 1.5;
91+
font-size: 0.8rem;
92+
line-height: 1.3;
8493
color: var(--text-color);
8594
font-style: italic;
8695
}
8796

8897
.author {
89-
margin-top: 8px;
98+
margin-top: 4px;
9099
text-align: right;
91-
font-size: 0.85rem;
100+
font-size: 0.7rem;
92101
color: var(--text-color);
93102
opacity: 0.8;
94103
}
95104

96105
.minimizedWidget {
97106
position: fixed;
98-
bottom: 20px;
99-
right: 20px;
107+
bottom: 10px;
108+
left: 50%;
109+
transform: translateX(-50%);
100110
width: 40px;
101111
height: 40px;
102112
border-radius: 20px;
103-
background-color: var(--modal-bg);
104-
border: none;
113+
background-color: rgba(0, 0, 0, 0.4);
114+
backdrop-filter: blur(8px);
115+
-webkit-backdrop-filter: blur(8px);
116+
border: 1px solid rgba(255, 255, 255, 0.1);
105117
cursor: pointer;
106118
display: flex;
107119
align-items: center;
108120
justify-content: center;
109121
color: var(--text-color);
110-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
122+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
111123
transition: all 0.2s;
112124
z-index: 100;
113125
}
114126

127+
:global(.light) .minimizedWidget {
128+
background-color: rgba(255, 255, 255, 0.8);
129+
border-color: rgba(0, 0, 0, 0.1);
130+
}
131+
115132
.minimizedWidget:hover {
116-
transform: scale(1.05);
117-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
133+
transform: translateX(-50%) scale(1.05);
134+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
118135
}
119136

120137
:global(.dark) .widget,
121138
:global(.dark) .minimizedWidget {
122-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
139+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
123140
}
124141

125142
:global(.dark) .minimizedWidget:hover {
126-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
143+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
127144
}

0 commit comments

Comments
 (0)