Move navbar styles to globals.css, fix active underline logic

This commit is contained in:
2026-06-27 16:54:58 -05:00
parent 3bf7642343
commit 93e9e15451
4 changed files with 147 additions and 83 deletions
+112
View File
@@ -0,0 +1,112 @@
* {
box-sizing: border-box;
}
:root {
--gold: #E8A849;
--cream: #f5f0e8;
--navy: #001321;
--ink: #1a1a1a;
--warm: #a6683c;
--bg: #FAF7F0;
--surface: #e8eff3;
}
html,
body {
margin: 0;
padding: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--ink);
}
a {
color: inherit;
}
.navbar {
position: sticky;
top: 0;
display: flex;
gap: 1.5rem;
align-items: center;
padding: 0.6rem 1.5rem;
background: var(--navy);
color: var(--cream);
box-shadow: 0 2px 8px rgba(0, 19, 33, 0.35);
z-index: 50;
}
.navbar-brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
}
.navbar-logo {
height: 36px;
width: auto;
max-width: 160px;
object-fit: contain;
}
.navbar-title {
font-weight: 700;
color: var(--gold);
font-size: 20px;
font-style: italic;
}
.navbar-links {
display: flex;
gap: 1.5rem;
list-style: none;
margin: 0;
padding: 0;
}
.navbar-link {
display: inline-block;
color: rgba(245, 240, 232, 0.85);
text-decoration: none;
font-size: 14px;
padding: 6px 0;
border-bottom: 1.5px solid transparent;
transition: color 0.15s ease, border-color 0.15s ease;
}
.navbar-link:hover {
color: var(--cream);
}
.navbar-link.active {
color: var(--gold);
border-bottom-color: var(--gold);
}
.navbar-actions {
margin-left: auto;
}
.navbar-btn-ghost {
background: transparent;
border: 1px solid var(--gold);
color: var(--gold);
padding: 0.4rem 0.9rem;
border-radius: 999px;
cursor: pointer;
font-size: 13px;
font-weight: 600;
}
.navbar-btn-primary {
color: var(--navy);
text-decoration: none;
background: var(--gold);
padding: 0.45rem 0.9rem;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
}
+2 -1
View File
@@ -1,4 +1,5 @@
import Navbar from '@/components/Navbar';
import './globals.css';
export const metadata = {
title: 'La Huasca',
@@ -12,7 +13,7 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body style={{ margin: 0, fontFamily: 'system-ui, sans-serif', background: '#FAF7F0', color: '#1a1a1a' }}>
<body>
<Navbar />
{children}
</body>