aboutsummaryrefslogtreecommitdiff
path: root/views/header.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-26 14:04:11 +0200
committerSyndamia <kamen@syndamia.com>2025-01-26 14:04:11 +0200
commitbfa238c056f31f36c00faad1c5995cbb8af3bd26 (patch)
treee35d6b33fff3e79ae905d7dad699134553a1292d /views/header.php
parentc36f74386bcbb19c13915fe3796cb757aa7d1845 (diff)
downloadnowayforward_human-bfa238c056f31f36c00faad1c5995cbb8af3bd26.tar
nowayforward_human-bfa238c056f31f36c00faad1c5995cbb8af3bd26.tar.gz
nowayforward_human-bfa238c056f31f36c00faad1c5995cbb8af3bd26.zip
feat!: Rework all views to be used with the router
Diffstat (limited to 'views/header.php')
-rw-r--r--views/header.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/views/header.php b/views/header.php
deleted file mode 100644
index 3835dfb..0000000
--- a/views/header.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="robots" content="index, follow">
- <meta name="theme-color" content="#2b2b2e">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" href="/styles.css">
- <title><?= htmlspecialchars($title ?? "No Way Forward Human");?></title>
-</head>
-<body>
- <script type="text/javascript" src="/authenticate.js"></script>
- <header>
- <nav>
- <div class="fadeout-left"></div>
- <a href="/home/index.php">Home</a>
- <a href="/sample_archive/index.php">Sample Archive</a>
- <div class="flex-expand"></div>
- <a id="login" href="/login/index.php">Login</a>
- <a id="register" href="/register/index.php">Register</a>
- <a id="profile" href="/profile/index.php" hidden>Profile</a>
- <div class="fadeout-right"></div>
- </nav>
- <script type="text/javascript">
- function updateNavbar(response) {
- document.getElementById('login').hidden = true;
- document.getElementById('register').hidden = true;
-
- const profile = document.getElementById('profile');
- profile.hidden = false;
- profile.href += '?user=' + response;
- }
- authenticated(updateNavbar);
- </script>
- </header>
- <article>