Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/SiteLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import type { ReactNode } from "react";
import { Navbar } from "./Navbar";
import { Footer } from "./Footer";

export function SiteLayout({ children }: { children: ReactNode }) {
export function SiteLayout({ children, showChrome = true }: { children: ReactNode; showChrome?: boolean }) {
return (
<div className="relative flex min-h-screen flex-col">
<Navbar />
{showChrome && <Navbar />}
<main className="flex-1">{children}</main>
<Footer />
{showChrome && <Footer />}
</div>
);
}
10 changes: 5 additions & 5 deletions src/routes/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,17 @@ function AuthPage() {
const isLocked = !!lockedUntil && remainingSeconds > 0;

return (
<SiteLayout>
<SiteLayout showChrome={false}>
<section data-page="admin-login" className="relative mx-auto flex min-h-[80vh] max-w-md items-center px-4">
<div className="glass-strong gradient-border w-full rounded-3xl p-8">
<div className="mb-6 flex flex-col items-center text-center">
<div className="grid h-12 w-12 place-items-center rounded-2xl bg-gradient-to-br from-violet to-electric glow-violet">
<div className="flex h-14 w-14 items-center justify-center">
<img
src="/Firefly_RemoveBackground.png"
alt="CodeForge logo"
className="h-10 w-10 object-contain"
width={40}
height={40}
className="h-12 w-12 object-contain"
width={48}
height={48}
/>
</div>
<h1 className="mt-3 font-display text-2xl font-bold">Admin Login</h1>
Expand Down
10 changes: 5 additions & 5 deletions src/routes/forgot-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ function ForgotPasswordPage() {
};

return (
<SiteLayout>
<SiteLayout showChrome={false}>
<section className="relative mx-auto flex min-h-[80vh] max-w-md items-center px-4">
<div className="glass-strong gradient-border w-full rounded-3xl p-8">
<div className="mb-6 flex flex-col items-center text-center">
<div className="grid h-12 w-12 place-items-center rounded-2xl bg-gradient-to-br from-violet to-electric glow-violet">
<div className="flex h-14 w-14 items-center justify-center">
<img
src="/Firefly_RemoveBackground.png"
alt="CodeForge logo"
className="h-10 w-10 object-contain"
width={40}
height={40}
className="h-12 w-12 object-contain"
width={48}
height={48}
/>
</div>
<h1 className="mt-3 font-display text-2xl font-bold">Forgot Password?</h1>
Expand Down
Loading