fix : forget nav page
This commit is contained in:
+3
-1
@@ -1,6 +1,7 @@
|
|||||||
import { connection } from "next/server";
|
import { connection } from "next/server";
|
||||||
|
|
||||||
import { LiveRefresh } from "@/components/live-refresh";
|
import { LiveRefresh } from "@/components/live-refresh";
|
||||||
|
import { SiteFooter } from "@/components/public/site-footer";
|
||||||
import { StructuredDirectory } from "@/components/public/structured-directory";
|
import { StructuredDirectory } from "@/components/public/structured-directory";
|
||||||
import { SiteHeader } from "@/components/public/site-header";
|
import { SiteHeader } from "@/components/public/site-header";
|
||||||
import { getCachedPublicGuideCards } from "@/lib/cache/public";
|
import { getCachedPublicGuideCards } from "@/lib/cache/public";
|
||||||
@@ -9,7 +10,7 @@ export default async function HomePage() {
|
|||||||
await connection();
|
await connection();
|
||||||
const guides = await getCachedPublicGuideCards();
|
const guides = await getCachedPublicGuideCards();
|
||||||
return (
|
return (
|
||||||
<div className="min-h-svh bg-background">
|
<div className="flex min-h-svh flex-col bg-background">
|
||||||
<LiveRefresh endpoint="/api/events/directory" />
|
<LiveRefresh endpoint="/api/events/directory" />
|
||||||
<SiteHeader />
|
<SiteHeader />
|
||||||
<main className="mx-auto flex w-full max-w-7xl flex-col gap-8 px-4 py-10 sm:px-6 sm:py-14">
|
<main className="mx-auto flex w-full max-w-7xl flex-col gap-8 px-4 py-10 sm:px-6 sm:py-14">
|
||||||
@@ -23,6 +24,7 @@ export default async function HomePage() {
|
|||||||
</header>
|
</header>
|
||||||
<StructuredDirectory guides={guides} />
|
<StructuredDirectory guides={guides} />
|
||||||
</main>
|
</main>
|
||||||
|
<SiteFooter />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -8,6 +8,7 @@ import {
|
|||||||
AvatarFallback,
|
AvatarFallback,
|
||||||
AvatarImage,
|
AvatarImage,
|
||||||
} from "@/components/ui/avatar";
|
} from "@/components/ui/avatar";
|
||||||
|
import { SiteFooter } from "@/components/public/site-footer";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
@@ -64,7 +65,7 @@ function getInitials(username: string) {
|
|||||||
|
|
||||||
export default function ThanksPage() {
|
export default function ThanksPage() {
|
||||||
return (
|
return (
|
||||||
<div className="min-h-svh bg-background">
|
<div className="flex min-h-svh flex-col bg-background">
|
||||||
<header className="border-b">
|
<header className="border-b">
|
||||||
<div className="mx-auto flex min-h-16 w-full max-w-6xl items-center px-4 sm:px-6">
|
<div className="mx-auto flex min-h-16 w-full max-w-6xl items-center px-4 sm:px-6">
|
||||||
<Link
|
<Link
|
||||||
@@ -176,6 +177,7 @@ export default function ThanksPage() {
|
|||||||
<div>I am sigma number one</div>
|
<div>I am sigma number one</div>
|
||||||
)}
|
)}
|
||||||
</main>
|
</main>
|
||||||
|
<SiteFooter />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
} from "@/components/public/block-renderer";
|
} from "@/components/public/block-renderer";
|
||||||
import { SectionDrawer } from "@/components/public/section-drawer";
|
import { SectionDrawer } from "@/components/public/section-drawer";
|
||||||
import { ScrollableNav } from "@/components/public/scrollable-nav";
|
import { ScrollableNav } from "@/components/public/scrollable-nav";
|
||||||
|
import { SiteFooter } from "@/components/public/site-footer";
|
||||||
import { SiteHeader } from "@/components/public/site-header";
|
import { SiteHeader } from "@/components/public/site-header";
|
||||||
import { LiveRefresh } from "@/components/live-refresh";
|
import { LiveRefresh } from "@/components/live-refresh";
|
||||||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||||
@@ -21,7 +22,7 @@ export function GuideShell({ snapshot }: { snapshot: PageSnapshot }) {
|
|||||||
const sections = collectGuideSections(snapshot.blocks);
|
const sections = collectGuideSections(snapshot.blocks);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-svh bg-background">
|
<div className="flex min-h-svh flex-col bg-background">
|
||||||
{process.env.BUZZ_DEMO_MODE === "true" ? null : (
|
{process.env.BUZZ_DEMO_MODE === "true" ? null : (
|
||||||
<LiveRefresh endpoint={`/api/events/page/${snapshot.page.id}`} />
|
<LiveRefresh endpoint={`/api/events/page/${snapshot.page.id}`} />
|
||||||
)}
|
)}
|
||||||
@@ -109,6 +110,7 @@ export function GuideShell({ snapshot }: { snapshot: PageSnapshot }) {
|
|||||||
<PublicBlockRenderer snapshot={snapshot} />
|
<PublicBlockRenderer snapshot={snapshot} />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
<SiteFooter />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
export function SiteFooter() {
|
||||||
|
return (
|
||||||
|
<footer className="mt-auto border-t">
|
||||||
|
<div className="mx-auto flex min-h-16 w-full max-w-7xl items-center justify-center px-4 py-3 sm:px-6">
|
||||||
|
<Link
|
||||||
|
href="/thanks"
|
||||||
|
className="text-sm font-medium text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
||||||
|
>
|
||||||
|
Special Thanks
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@ import {
|
|||||||
CardTitle,
|
CardTitle,
|
||||||
} from "@/components/ui/card";
|
} from "@/components/ui/card";
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
|
import { SiteFooter } from "@/components/public/site-footer";
|
||||||
import { SiteHeader } from "@/components/public/site-header";
|
import { SiteHeader } from "@/components/public/site-header";
|
||||||
import { ScrollableNav } from "@/components/public/scrollable-nav";
|
import { ScrollableNav } from "@/components/public/scrollable-nav";
|
||||||
import { TeamSearch } from "@/components/public/team-search";
|
import { TeamSearch } from "@/components/public/team-search";
|
||||||
@@ -82,7 +83,7 @@ export function StructuredGuideShell({
|
|||||||
? (sections.find((item) => item.slug === section)?.title ?? section)
|
? (sections.find((item) => item.slug === section)?.title ?? section)
|
||||||
: "Overview";
|
: "Overview";
|
||||||
return (
|
return (
|
||||||
<div className="min-h-svh bg-background">
|
<div className="flex min-h-svh flex-col bg-background">
|
||||||
<LiveRefresh endpoint={`/api/events/page/${guide.id}`} />
|
<LiveRefresh endpoint={`/api/events/page/${guide.id}`} />
|
||||||
<SiteHeader editHref={`/admin/${guide.characterKey}`} />
|
<SiteHeader editHref={`/admin/${guide.characterKey}`} />
|
||||||
<div className="sticky top-0 z-10 bg-background/95 supports-backdrop-filter:backdrop-blur">
|
<div className="sticky top-0 z-10 bg-background/95 supports-backdrop-filter:backdrop-blur">
|
||||||
@@ -172,6 +173,7 @@ export function StructuredGuideShell({
|
|||||||
<GuideOverview guide={guide} sections={sections} />
|
<GuideOverview guide={guide} sections={sections} />
|
||||||
)}
|
)}
|
||||||
</main>
|
</main>
|
||||||
|
<SiteFooter />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user