From c046bec7bb7963442e1248a9cfcd678c6d439590 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 15 Oct 2026 20:58:18 -0500 Subject: navbar tuneup after adding underline effect --- css/hamburger.css | 2 +- css/style.css | 14 ++++++++------ index.html | 32 +++++++++++++++++++------------- 3 files changed, 28 insertions(+), 20 deletions(-) diff --git a/css/hamburger.css b/css/hamburger.css index 4a4d4c9..4f8e5fb 100644 --- a/css/hamburger.css +++ b/css/hamburger.css @@ -10,7 +10,7 @@ #hamburger span { width: 25px; height: 3px; - background-color: var(--white); + background-color: var(--gold); margin: 3px 0; transition: 0.3s; position: relative; diff --git a/css/style.css b/css/style.css index 1722498..b71338c 100644 --- a/css/style.css +++ b/css/style.css @@ -35,13 +35,13 @@ header { .banner { display: flex; justify-content: space-between; - width: 90%; + width: 100%; align-items: center; height: 4.5rem; margin: 0 auto; - padding: 1rem 0; + padding: 1rem 2rem; background-color: inherit; } @@ -68,11 +68,12 @@ nav { } .navLink { + width: max-content; position: relative; color: var(--white); background-color: inherit; text-transform: uppercase; - letter-spacing: 2px; + letter-spacing: 1px; text-decoration: none; font-weight: bold; @@ -87,7 +88,7 @@ nav { content: ""; position: absolute; left: 0; - bottom: -0.45rem; + bottom: -0.25rem; width: 100%; height: 1px; background: var(--gold); @@ -238,7 +239,7 @@ footer { flex-direction: row; gap: 2rem; - font-size: .7rem; + font-size: .8rem; list-style: none; } @@ -270,13 +271,14 @@ footer { /* background-color: red; */ display: flex; flex-direction: column; + align-items: center; position: fixed; gap: 2rem; padding: 4.8rem 0 4rem 0; transition: top 0.5s ease; - top: -23rem; + top: -16.5rem; left: 0; width: 100%; diff --git a/index.html b/index.html index c52088e..9e204dc 100644 --- a/index.html +++ b/index.html @@ -44,9 +44,6 @@ padding-bottom: 2rem; } - .jumpLink h2 { transition: ease 0.2s; } - .jumpLink h2:hover { color: var(--gold); } - h2 { color: white; } @@ -94,14 +91,21 @@ } #categoryLinks { - display: flex; - + display: grid; + grid-template-columns: 1fr 1fr; + justify-content: space-evenly; + align-items: center; + gap: 2rem; } #categoryLinks a { - + text-decoration: none; + border-radius: 1rem; border: 1px solid var(--gold); - + transition: ease 0.2s; } + #categoryLinks a:hover { color: var(--gold); } + + /** BOOK NOW big button */ #book-button { @@ -153,9 +157,11 @@ } #intro { - width: 100%; - padding-bottom: 1.5rem; } + + #categoryLinks { + grid-template-columns: 1fr; + } #book-button { font-size: 1.75rem; @@ -210,10 +216,10 @@ Your Vehicle -- cgit v1.3.1-4-g156e