A footer on every page

The root layout draws one footer for every page (the app pages, the
chart page and admin had none): the free content pages, Kapcsolat (the
feedback page when logged in, /kapcsolat otherwise), ÁSZF, Adatvédelem,
and Belépés when logged out. The pages drop their own; the home page
keeps its payment partners above it. The recommendation box sits right
before it on every page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-24 07:21:19 +00:00
co-authored by Claude Opus 5.5
parent 2eaae68271
commit 3a38518d07
14 changed files with 35 additions and 61 deletions
+2
View File
@@ -5,6 +5,7 @@ import { Suspense } from "react";
import { NightSky } from "@/components/NightSky";
import { NpsBanner } from "@/components/NpsBanner";
import { PaymentReturn } from "@/components/PaymentReturn";
import { SiteFooter } from "@/components/PublicFooter";
import { SiteHeader } from "@/components/SiteHeader";
import { ValidationMessages } from "@/components/ValidationMessages";
import { getMe } from "@/lib/server";
@@ -39,6 +40,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
{children}
{/* At the very bottom, apart from the page content: up top it drew the eye away. */}
{me?.nps_due && <NpsBanner />}
<SiteFooter loggedIn={me !== null} />
{me && (
<Suspense fallback={null}>
<PaymentReturn />