Add site header to login/register pages, link confirmation message to sign-in

login.php and register.php were standalone pages with no way back to the
rest of the site — reusing the same sticky pub-nav header already used on
index.php and profile.php (brand link + Sign In/Get Started), restructured
each page's centered login-box inside a .login-page wrapper so the nav can
sit above it instead of getting pulled into the centering flexbox.

Also: the "check your email to confirm" message after registering had no
way forward once you'd actually confirmed — added a "sign in here" link.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 10:35:27 -07:00
parent c7f1bdd630
commit 524860df1f
2 changed files with 25 additions and 2 deletions
+13 -1
View File
@@ -131,12 +131,22 @@ if (!$success) {
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="<?= BASE_URL ?>/favicon.svg">
<title>Register — <?= htmlspecialchars(get_setting('site_name', APP_NAME)) ?></title>
<link rel="stylesheet" href="<?= BASE_URL ?>/assets/css/public.css">
<link rel="stylesheet" href="<?= BASE_URL ?>/assets/css/setup.css">
<?php if (recaptcha_enabled()): ?>
<script src="https://www.google.com/recaptcha/api.js?render=<?= urlencode(get_setting('recaptcha_site_key')) ?>"></script>
<?php endif; ?>
</head>
<body class="login-page">
<body>
<nav class="pub-nav">
<a href="<?= BASE_URL ?>/" class="pub-nav-brand">&#x271D; <span><?= htmlspecialchars(get_setting('site_name', APP_NAME)) ?></span></a>
<div class="pub-nav-links">
<a href="<?= BASE_URL ?>/login">Sign In</a>
</div>
</nav>
<div class="login-page">
<div class="login-box" style="max-width:460px">
<h1>&#x271D; <?= htmlspecialchars(get_setting('site_name', APP_NAME)) ?></h1>
<h2>Create Account</h2>
@@ -149,6 +159,7 @@ if (!$success) {
<?php else: ?>
<div class="alert alert-success">
Account created! Please check your email to confirm your address before logging in.
Once confirmed, <a href="<?= BASE_URL ?>/login">sign in here</a>.
</div>
<?php endif; ?>
<?php else: ?>
@@ -211,6 +222,7 @@ if (!$success) {
<?php endif; ?>
</div>
</div>
<?php if (recaptcha_enabled()): ?>
<script>