From 469928e791620177c72bbce3890c5eebf513bb7b Mon Sep 17 00:00:00 2001 From: overflowerror Date: Sun, 4 Aug 2024 00:03:52 +0200 Subject: [PATCH] feat: Add page indicator to navbar --- html/styles/main.css | 2 +- view/layout.php | 24 +++++++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/html/styles/main.css b/html/styles/main.css index 3923257..a904c17 100644 --- a/html/styles/main.css +++ b/html/styles/main.css @@ -64,7 +64,7 @@ nav a:visited { color: white; } -nav a:hover { +nav a:hover, nav .active a { box-shadow: inset 130px 0 0 0 white; color: black; } diff --git a/view/layout.php b/view/layout.php index 8155e51..24c8ae5 100644 --- a/view/layout.php +++ b/view/layout.php @@ -1,4 +1,18 @@ + + + <?= $title ?? ""; ?> @@ -10,13 +24,13 @@