From 2fd74637662974616c27f0c1411d610030d13287 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sat, 31 Oct 2026 09:01:44 +0000 Subject: [PATCH 1/5] fix: use universal footer --- apps/site/app/_components/pit-footer.tsx | 21 --------- apps/site/app/layout.tsx | 59 +++++++++--------------- 2 files changed, 23 insertions(+), 57 deletions(-) delete mode 100644 apps/site/app/_components/pit-footer.tsx diff --git a/apps/site/app/_components/pit-footer.tsx b/apps/site/app/_components/pit-footer.tsx deleted file mode 100644 index f28db42..0000000 --- a/apps/site/app/_components/pit-footer.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * The pit.world global footer (site name, search, ring, publish), fetched on - * the server and cached for an hour. Any failure renders nothing: the network - * footer must never break a page. - */ -const PIT_FOOTER_URL = "https://pit.world/snippets/footer.html?site=nightcell7.com"; - -export async function PitFooter() { - try { - const res = await fetch(PIT_FOOTER_URL, { - next: { revalidate: 3600 }, - signal: AbortSignal.timeout(3000), - }); - if (!res.ok) return null; - const html = await res.text(); - if (!html.includes("data-pit-footer")) return null; - return
; - } catch { - return null; - } -} diff --git a/apps/site/app/layout.tsx b/apps/site/app/layout.tsx index 176abe4..79d2f7b 100644 --- a/apps/site/app/layout.tsx +++ b/apps/site/app/layout.tsx @@ -4,7 +4,6 @@ import "./globals.css"; import Script from "next/script"; import { Footer } from "@profullstack/footer/react"; import { AdUnit } from "./_components/ad-unit"; -import { PitFooter } from "./_components/pit-footer"; import captures from "../public/media/yard/manifest.json"; import trailer from "../public/media/trailer/manifest.json"; @@ -133,42 +132,31 @@ export default function RootLayout({ children }: { children: React.ReactNode }) {children} -
- - {/* Required fiction disclaimer (PRD §32), with the photosensitivity notice. */} -

- NIGHTCELL 7 is a fictional work set in an invented near-future crisis. Its - organizations, facilities, operations, and characters are fictional. The game does not - depict or endorse any real government, military operation, political movement, or - current event. It contains flashing lights and can be played with flash reduction - enabled. -

-

- - NIGHTCELL 7 on built.indie - -

-
- {/* Copyright, the Profullstack webring and our Foundplay badge, from @profullstack/footer. */} + {/* Keep the game's fiction and photosensitivity notice outside the shared footer. */} +

+ NIGHTCELL 7 is a fictional work set in an invented near-future crisis. Its + organizations, facilities, operations, and characters are fictional. The game does not + depict or endorse any real government, military operation, political movement, or + current event. It contains flashing lights and can be played with flash reduction + enabled. +

+ {/* The shared template carries the site's links, badges, webring, and copyright. */}