From 29626757fc9e1deb7e41e989b3b8160975883636 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Tue, 20 Feb 2024 12:35:59 -0500 Subject: [PATCH] update: Main navigation - dynamic build - distinguish current --- site-root/public/css/main.css | 64 +++++++++++++++++++---------------- site-root/public/foot.php | 21 ++++++++++-- 2 files changed, 52 insertions(+), 33 deletions(-) diff --git a/site-root/public/css/main.css b/site-root/public/css/main.css index 6db635b..dfe6886 100644 --- a/site-root/public/css/main.css +++ b/site-root/public/css/main.css @@ -86,6 +86,40 @@ nav a:hover { text-decoration-thickness: 0rem; } +nav { + text-align: center; +} + +nav > ul { + margin: 0 auto; + padding: 0; + display: flex; + /* grid-template-columns: min-content; */ + /* display: inline; */ + list-style: none; +} + +nav a { + display: inline-block; + padding: 1rem; +} + +nav a.current { + text-decoration: none; +} + +/* nav > ul > li { + float: left; +} */ + +nav > ul > li:after { + content: '|'; +} + +nav > ul > li:last-of-type:after { + content: ''; +} + article[is="home"] > section a { display: block; padding: 1rem 0.2rem; @@ -148,34 +182,4 @@ footer > p { article[is="book-details"] { grid-template-columns: auto auto; } - - nav { - text-align: center; - } - - nav > ul { - margin: 0 auto; - padding: 0; - display: flex; - /* grid-template-columns: min-content; */ - /* display: inline; */ - list-style: none; - } - - nav a { - display: inline-block; - padding: 1rem; - } - - /* nav > ul > li { - float: left; - } */ - - nav > ul > li:after { - content: '|'; - } - - nav > ul > li:last-of-type:after { - content: ''; - } } diff --git a/site-root/public/foot.php b/site-root/public/foot.php index 729ce54..7bafa69 100644 --- a/site-root/public/foot.php +++ b/site-root/public/foot.php @@ -1,8 +1,23 @@ + 'Home', + '/time/' => 'Time', + '/booking/' => 'Book now' +]; + +?>