From 416fae33a22d46904567aa01d5cdae40e90a38fe Mon Sep 17 00:00:00 2001 From: koko210Serve Date: Sun, 4 Oct 2026 15:49:09 +0300 Subject: [PATCH] Hide site navigation on client proofing pages --- app/layout.tsx | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index 03b1fdb..da7a754 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -136,6 +136,9 @@ export default async function RootLayout({ children }: { children: React.ReactNo } const isAdmin = isAdminPath(pathname); + const isProofPage = + pathname?.startsWith('/proof/') === true || + pathname?.startsWith('/c/') === true; const locale = resolveLocale(config.lang); const t = getDictionary(locale); @@ -187,34 +190,55 @@ export default async function RootLayout({ children }: { children: React.ReactNo {siteGated || isAdmin ? ( children + ) : isProofPage ? ( + <> +
+ {children} +
+ + + + + ) : ( <> {t.nav.skipToContent} +
+
{children}
+