diff --git a/.prettierignore b/.prettierignore index c3ff3d0..7790193 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,6 +5,7 @@ out .next pnpm-lock.yaml public/assets +apps/site/public/sw.js # drizzle-kit generated migration metadata — regenerated, never hand-edited packages/database/drizzle 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..04a9914 100644 --- a/apps/site/app/layout.tsx +++ b/apps/site/app/layout.tsx @@ -1,10 +1,9 @@ -import PwaRegistration from './PwaRegistration'; +import PwaRegistration from "./PwaRegistration"; import type { Metadata, Viewport } from "next"; 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"; @@ -45,7 +44,7 @@ const shareVideo = `${ORIGIN}/media/trailer/${trailer.file}`; export const revalidate = 3600; export const metadata: Metadata = { - manifest: '/manifest.webmanifest', + manifest: "/manifest.webmanifest", metadataBase: new URL(ORIGIN), title: { default: "NIGHTCELL 7: FALSE DAWN", @@ -133,42 +132,34 @@ export default function RootLayout({ children }: { children: React.ReactNode })+ 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. */} -