Skip to content

Commit 24daefc

Browse files
committed
feat: Convert navigation bar to dark theme with steady appearance
Navigation Bar Dark Theme: - Change background from light (rgba(255,255,255,0.85)) to dark (rgba(15,20,25,0.95)) - Update scrolled state to darker background (rgba(15,20,25,0.98)) - Change border-bottom to use primary color with transparency (rgba(102,126,234,0.2)) - Increase box-shadow darkness for better contrast - Update hover text color to use --primary-light for better visibility Steady Navigation Elements: - Remove scale transform from nav-brand hover - Remove translateY transform from nav-link hover - Remove translateY transform from cta-button hover - All navigation elements now remain steady on hover Result: Dark, professional navigation bar matching the website theme with no animation movement
1 parent d149eed commit 24daefc

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

css/style.css

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,19 @@ ul {
244244
top: 0;
245245
left: 0;
246246
right: 0;
247-
background: rgba(255, 255, 255, 0.85);
247+
background: rgba(15, 20, 25, 0.95);
248248
backdrop-filter: blur(20px);
249249
-webkit-backdrop-filter: blur(20px);
250-
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
251-
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
250+
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
251+
border-bottom: 1px solid rgba(102, 126, 234, 0.2);
252252
z-index: 1000;
253253
transition: all var(--transition-normal);
254254
}
255255

256256
.navbar.scrolled {
257-
background: rgba(255, 255, 255, 0.95);
258-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
257+
background: rgba(15, 20, 25, 0.98);
258+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
259+
border-bottom: 1px solid rgba(102, 126, 234, 0.3);
259260
}
260261

261262
.navbar .container {
@@ -277,7 +278,7 @@ ul {
277278
}
278279

279280
.nav-brand a:hover {
280-
transform: scale(1.05);
281+
/* Removed transform for steady appearance */
281282
}
282283

283284
.nav-menu {
@@ -295,8 +296,8 @@ ul {
295296
}
296297

297298
.nav-link:hover {
298-
color: var(--primary-color);
299-
transform: translateY(-2px);
299+
color: var(--primary-light);
300+
/* Removed transform for steady appearance */
300301
}
301302

302303
.nav-link::after {
@@ -324,7 +325,7 @@ ul {
324325

325326
.nav-link.cta-button:hover {
326327
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
327-
transform: translateY(-2px);
328+
/* Removed transform for steady appearance */
328329
}
329330

330331
.nav-link.cta-button::after {

0 commit comments

Comments
 (0)