From 6eeb984a2cee866592cee9a55a0fe8864cb07464 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Jan 2025 22:55:10 +0200 Subject: feat: Separate topbar files --- views/archive/topbar.css | 44 ++++++++++++++++++++++++++++++++++++++++++++ views/archive/topbar.php | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 views/archive/topbar.css create mode 100644 views/archive/topbar.php (limited to 'views') diff --git a/views/archive/topbar.css b/views/archive/topbar.css new file mode 100644 index 0000000..21b72d8 --- /dev/null +++ b/views/archive/topbar.css @@ -0,0 +1,44 @@ +.navbar { + display: flex; + justify-content: space-between; + align-items: center; + background-color: #343a40; + color: #ffffff; + padding: 10px; + border-bottom: 1px solid #ccc; + width: 100%; + position: fixed; + top: 0; + left: 0; + z-index: 1000; +} + +.navbar-info { + display: flex; + justify-content: center; + flex-grow: 1; +} + +.navbar-info span { + margin-right: 15px; +} + +.navbar-links { + display: flex; + gap: 20px; +} + +.navbar a { + text-decoration: none; + color: #007bff; +} + +.navbar a:hover { + text-decoration: underline; + color: #66b3ff; +} + +/* Add some margin to the body to prevent content from being hidden behind the navbar */ +body { + margin-top: 60px; +} diff --git a/views/archive/topbar.php b/views/archive/topbar.php new file mode 100644 index 0000000..f521fcb --- /dev/null +++ b/views/archive/topbar.php @@ -0,0 +1,34 @@ + + + +RequesterUID); + + $previousPageId = Database\Webpage::getPreviousPageId($currentPage->URL, $currentPage->Date); + $nextPageId = Database\Webpage::getNextPageId($currentPage->URL, $currentPage->Date); +?> + + -- cgit v1.2.3