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:
@@ -61,9 +61,19 @@ $reset_msg = isset($_GET['reset']) ? 'Password reset successfully. Pleas
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/svg+xml" href="<?= BASE_URL ?>/favicon.svg">
|
||||
<title>Login — <?= 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">
|
||||
</head>
|
||||
<body class="login-page">
|
||||
<body>
|
||||
|
||||
<nav class="pub-nav">
|
||||
<a href="<?= BASE_URL ?>/" class="pub-nav-brand">✝ <span><?= htmlspecialchars(get_setting('site_name', APP_NAME)) ?></span></a>
|
||||
<div class="pub-nav-links">
|
||||
<a href="<?= BASE_URL ?>/register" class="btn-nav">Get Started</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="login-page">
|
||||
<div class="login-box">
|
||||
<h1>✝ <?= htmlspecialchars(get_setting('site_name', APP_NAME)) ?></h1>
|
||||
<h2>Sign In</h2>
|
||||
@@ -100,5 +110,6 @@ $reset_msg = isset($_GET['reset']) ? 'Password reset successfully. Pleas
|
||||
<a href="<?= BASE_URL ?>/register" style="color:#1e3a5f">Create an account</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user