fix: redesign desktop header with clean concise nav links, integrated emergency bar, and zero text wrapping

This commit is contained in:
2026-09-02 13:52:34 -07:00
parent 16c17d6ace
commit 32ac98d8a7
3 changed files with 165 additions and 77 deletions
+135 -53
View File
@@ -124,76 +124,170 @@ button, input, select, textarea {
left: 0; left: 0;
width: 100%; width: 100%;
z-index: 1000; z-index: 1000;
background: rgba(6, 13, 31, 0.88); background: rgba(6, 13, 31, 0.95);
backdrop-filter: blur(14px); backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
transition: var(--transition); transition: var(--transition);
} }
/* Emergency Announcement Bar */
.emergency-bar {
background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #991b1b 100%);
color: var(--white);
padding: 6px 16px;
font-size: 0.79rem;
font-weight: 600;
text-align: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.emergency-container {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
flex-wrap: wrap;
line-height: 1.35;
}
.emergency-link {
color: #fef08a;
text-decoration: underline;
font-weight: 700;
margin-left: 6px;
transition: var(--transition);
}
.emergency-link:hover {
color: #ffffff;
}
.emergency-bar span.pulse-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #fff;
margin-right: 4px;
animation: pulseDot 1.4s infinite;
vertical-align: middle;
}
@keyframes pulseDot {
0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 7px rgba(255,255,255,0); }
100% { transform: scale(0.9); opacity: 0.8; }
}
/* Main Navigation Container */
.nav-container { .nav-container {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
height: 80px; height: 72px;
max-width: 1400px;
margin: 0 auto;
padding: 0 24px;
gap: 20px;
} }
/* Brand Logo */
.brand { .brand {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 14px; gap: 12px;
flex-shrink: 0;
text-decoration: none;
} }
.brand-icon { .brand-icon {
width: 44px; width: 42px;
height: 44px; height: 42px;
background: var(--grad-gold); background: var(--grad-gold);
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: var(--primary-950); color: var(--primary-950);
font-size: 22px; font-size: 20px;
font-weight: 900; font-weight: 900;
box-shadow: var(--shadow-gold); box-shadow: var(--shadow-gold);
flex-shrink: 0;
} }
.brand-text h1 { .brand-text {
display: flex;
flex-direction: column;
justify-content: center;
}
.brand-name {
font-family: var(--font-heading); font-family: var(--font-heading);
font-size: 1.15rem; font-size: 1.12rem;
font-weight: 700; font-weight: 700;
color: var(--white); color: var(--white);
line-height: 1.2; line-height: 1.15;
white-space: nowrap;
} }
.brand-text span { .brand-sub {
font-size: 0.75rem; font-size: 0.72rem;
color: var(--gold-300); color: var(--gold-300);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.06em; letter-spacing: 0.06em;
display: block; white-space: nowrap;
margin-top: 2px;
} }
/* Nav Links */
.nav-links { .nav-links {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 26px; justify-content: center;
gap: 20px;
margin: 0;
padding: 0;
} }
.nav-links a { .nav-links a {
font-size: 0.92rem; font-size: 0.88rem;
font-weight: 500; font-weight: 600;
color: var(--slate-200); color: var(--slate-200);
white-space: nowrap;
position: relative;
padding: 6px 2px;
transition: color 0.2s ease;
} }
.nav-links a:hover { .nav-links a:hover {
color: var(--gold-400); color: #ffffff;
} }
.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: var(--gold-400);
transition: all 0.2s ease;
transform: translateX(-50%);
border-radius: 2px;
}
.nav-links a:hover::after {
width: 100%;
}
/* Nav Actions */
.nav-actions { .nav-actions {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 16px; gap: 12px;
flex-shrink: 0;
} }
/* Bilingual Language Switcher */ /* Bilingual Language Switcher */
@@ -204,12 +298,13 @@ button, input, select, textarea {
border-radius: var(--radius-full); border-radius: var(--radius-full);
padding: 3px; padding: 3px;
gap: 2px; gap: 2px;
flex-shrink: 0;
} }
.lang-btn { .lang-btn {
padding: 6px 13px; padding: 5px 11px;
border-radius: var(--radius-full); border-radius: var(--radius-full);
font-size: 0.78rem; font-size: 0.76rem;
font-weight: 700; font-weight: 700;
color: var(--slate-200); color: var(--slate-200);
background: transparent; background: transparent;
@@ -217,7 +312,8 @@ button, input, select, textarea {
transition: var(--transition); transition: var(--transition);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 5px; gap: 4px;
white-space: nowrap;
} }
.lang-btn.active { .lang-btn.active {
@@ -226,6 +322,14 @@ button, input, select, textarea {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
} }
.nav-cta-btn {
padding: 9px 18px;
font-size: 0.86rem;
font-weight: 700;
white-space: nowrap;
flex-shrink: 0;
}
/* Buttons */ /* Buttons */
.btn { .btn {
display: inline-flex; display: inline-flex;
@@ -289,33 +393,6 @@ button, input, select, textarea {
cursor: pointer; cursor: pointer;
} }
/* Emergency Alert Bar */
.emergency-bar {
background: linear-gradient(90deg, #b70914 0%, #e63946 50%, #b70914 100%);
color: var(--white);
padding: 10px 0;
font-size: 0.88rem;
font-weight: 600;
text-align: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.emergency-bar span.pulse-dot {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
background-color: #fff;
margin-right: 8px;
animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 8px rgba(255,255,255,0); }
100% { transform: scale(0.9); opacity: 0.8; }
}
/* Hero Section */ /* Hero Section */
.hero { .hero {
position: relative; position: relative;
@@ -327,10 +404,11 @@ button, input, select, textarea {
background-position: center; background-position: center;
background-attachment: fixed; background-attachment: fixed;
color: var(--white); color: var(--white);
padding-top: 140px; padding-top: 155px;
padding-bottom: 80px; padding-bottom: 80px;
} }
.hero-content { .hero-content {
max-width: 820px; max-width: 820px;
} }
@@ -1274,13 +1352,13 @@ button, input, select, textarea {
} }
} }
@media (max-width: 768px) { @media (max-width: 1024px) {
.nav-links { .nav-links {
position: fixed; position: fixed;
top: 80px; top: 108px;
left: -100%; left: -100%;
width: 100%; width: 100%;
height: calc(100vh - 80px); height: calc(100vh - 108px);
background: var(--primary-950); background: var(--primary-950);
flex-direction: column; flex-direction: column;
padding: 36px 24px; padding: 36px 24px;
@@ -1300,6 +1378,10 @@ button, input, select, textarea {
.nav-actions .btn-relief { .nav-actions .btn-relief {
display: none; display: none;
} }
}
@media (max-width: 768px) {
.section { .section {
padding: 64px 0; padding: 64px 0;
+14 -14
View File
@@ -16,37 +16,36 @@
</head> </head>
<body> <body>
<!-- Emergency Announcement Bar --> <!-- Header / Navigation -->
<header class="site-header">
<!-- Emergency Announcement Top Bar -->
<div class="emergency-bar"> <div class="emergency-bar">
<div class="container"> <div class="container emergency-container">
<span class="pulse-dot"></span> <span class="pulse-dot"></span>
<strong data-i18n="hero.eyebrow">URGENT RELIEF & REBUILDING INITIATIVE • CARACAS, VENEZUELA</strong>: <strong data-i18n="hero.eyebrow">URGENT RELIEF & REBUILDING INITIATIVE • CARACAS, VENEZUELA</strong>:
<span data-i18n="relief.urgent_alert">Priority Need: Repairing structural wall fissures in the sanctuary and restoring seminary classrooms.</span> <span data-i18n="relief.urgent_alert">Priority Need: Repairing structural wall fissures in the sanctuary and restoring seminary classrooms.</span>
<a href="#rebuilding-fund" style="text-decoration: underline; margin-left: 8px; color: #fff; font-weight: 700;" data-i18n="nav.relief_cta">Earthquake Relief Fund →</a> <a href="#rebuilding-fund" class="emergency-link" data-i18n="nav.relief_cta">Earthquake Relief Fund →</a>
</div> </div>
</div> </div>
<!-- Header / Navigation --> <!-- Main Navigation Bar -->
<header class="site-header">
<div class="container nav-container"> <div class="container nav-container">
<a href="#" class="brand"> <a href="#" class="brand">
<div class="brand-icon"></div> <div class="brand-icon"></div>
<div class="brand-text"> <div class="brand-text">
<h1 data-i18n="nav.brand_title">Iglesia Bíblica Bautista</h1> <span class="brand-name" data-i18n="nav.brand_title">Iglesia Bíblica Bautista</span>
<span data-i18n="nav.brand_subtitle">Vista Alegre • Caracas, Venezuela</span> <span class="brand-sub" data-i18n="nav.brand_subtitle">Vista Alegre • Caracas, Venezuela</span>
</div> </div>
</a> </a>
<!-- Navigation Links --> <!-- Navigation Links (Concise, single-line, clean) -->
<nav id="nav-links" class="nav-links"> <nav id="nav-links" class="nav-links">
<a href="#crisis-problem" data-i18n="sb7.problem_badge">The Need</a> <a href="#crisis-problem" data-i18n="nav.need">The Need</a>
<a href="#about-pastor" data-i18n="nav.about">Pastor Víctor</a> <a href="#about-pastor" data-i18n="nav.about">Pastor Víctor</a>
<a href="#how-to-help" data-i18n="sb7.plan_title">The 3-Step Plan</a> <a href="#how-to-help" data-i18n="nav.plan">The Plan</a>
<a href="#rebuilding-fund" data-i18n="nav.relief">Rebuilding Fund</a> <a href="#rebuilding-fund" data-i18n="nav.rebuilding">Rebuilding Fund</a>
<a href="#seminary" data-i18n="nav.seminary">Seminary</a> <a href="#seminary" data-i18n="nav.seminary">Seminary</a>
<a href="#ministries" data-i18n="nav.ministries">Ministries</a>
<a href="#location" data-i18n="nav.location">Location</a> <a href="#location" data-i18n="nav.location">Location</a>
<a href="#giving" data-i18n="nav.give">Partner</a>
<a href="#contact" data-i18n="nav.contact">Contact</a> <a href="#contact" data-i18n="nav.contact">Contact</a>
</nav> </nav>
@@ -60,12 +59,13 @@
<span>🇻🇪</span> ES <span>🇻🇪</span> ES
</button> </button>
</div> </div>
<a href="#rebuilding-fund" class="btn btn-relief open-donate-modal" data-i18n="nav.relief_cta">Earthquake Relief</a> <a href="#rebuilding-fund" class="btn btn-relief nav-cta-btn open-donate-modal" data-i18n="nav.relief_cta">Earthquake Relief</a>
<button id="mobile-toggle" class="mobile-toggle" aria-label="Open Navigation Menu"></button> <button id="mobile-toggle" class="mobile-toggle" aria-label="Open Navigation Menu"></button>
</div> </div>
</div> </div>
</header> </header>
<!-- SB7 Element 1: Hero Section (The Character & Their Noble Desire) --> <!-- SB7 Element 1: Hero Section (The Character & Their Noble Desire) -->
<section class="hero"> <section class="hero">
<div class="container"> <div class="container">
+11 -5
View File
@@ -4,14 +4,17 @@ const translations = {
// Header & Nav // Header & Nav
"nav.brand_title": "Iglesia Bíblica Bautista", "nav.brand_title": "Iglesia Bíblica Bautista",
"nav.brand_subtitle": "Vista Alegre • Caracas, Venezuela", "nav.brand_subtitle": "Vista Alegre • Caracas, Venezuela",
"nav.about": "About Pastor Víctor", "nav.need": "The Need",
"nav.about": "Pastor Víctor",
"nav.plan": "The Plan",
"nav.rebuilding": "Rebuilding Fund",
"nav.relief": "Rebuilding Fund", "nav.relief": "Rebuilding Fund",
"nav.seminary": "Seminary", "nav.seminary": "Seminary",
"nav.ministries": "Ministries & Media", "nav.ministries": "Ministries",
"nav.location": "Location", "nav.location": "Location",
"nav.give": "Support Mission", "nav.give": "Partner",
"nav.contact": "Contact", "nav.contact": "Contact",
"nav.relief_cta": "Earthquake Relief Fund", "nav.relief_cta": "Earthquake Relief",
// Hero Section // Hero Section
"hero.eyebrow": "URGENT RELIEF & REBUILDING INITIATIVE • CARACAS, VENEZUELA", "hero.eyebrow": "URGENT RELIEF & REBUILDING INITIATIVE • CARACAS, VENEZUELA",
@@ -217,10 +220,13 @@ const translations = {
// Header & Nav // Header & Nav
"nav.brand_title": "Iglesia Bíblica Bautista", "nav.brand_title": "Iglesia Bíblica Bautista",
"nav.brand_subtitle": "Vista Alegre • Caracas, Venezuela", "nav.brand_subtitle": "Vista Alegre • Caracas, Venezuela",
"nav.need": "La Necesidad",
"nav.about": "Pastor Víctor", "nav.about": "Pastor Víctor",
"nav.plan": "El Plan",
"nav.rebuilding": "Reconstrucción",
"nav.relief": "Fondo de Reconstrucción", "nav.relief": "Fondo de Reconstrucción",
"nav.seminary": "Seminario", "nav.seminary": "Seminario",
"nav.ministries": "Ministerios y Medios", "nav.ministries": "Ministerios",
"nav.location": "Ubicación", "nav.location": "Ubicación",
"nav.give": "Ofrendar", "nav.give": "Ofrendar",
"nav.contact": "Contacto", "nav.contact": "Contacto",