Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,11 @@ import { Geist, Geist_Mono } from "next/font/google";
import localFont from "next/font/local";
import type { ReactNode } from "react";
import type { Metadata } from "next";
import { PREFIXED_LOCALES, LOCALIZED_ROUTES, ALL_LOCALE_CODES } from "@/i18n/config";
import { PREFIXED_LOCALES, LOCALIZED_ROUTES } from "@/i18n/config";
import { DEFAULT_OG_IMAGE } from "@/lib/seo";
import V1Banner from "@/app/components/V1Banner";
import FrameBanner, { type FrameBannerCopy } from "@/app/components/FrameBanner";
import { getDictionary } from "@/i18n/dictionaries";
import { NEW_LOOK_ROUTES, DARK_SCENE_ROUTES } from "@/app/components/newLookRoutes";

// The Holon banner's copy in every locale (a few short strings each).
const FRAME_BANNER: FrameBannerCopy = Object.fromEntries(
ALL_LOCALE_CODES.map((l) => {
const p = getDictionary(l).holonPage;
return [l, { strong: p.bannerStrong, body: p.bannerBody, cta: p.bannerCta }];
}),
);

// Universal language persistence: a locale chosen anywhere is stored, and
// this guard redirects localizable pages to
// it before paint, so the language "sticks" across the whole site. Built from
Expand Down Expand Up @@ -277,7 +267,6 @@ export default function Layout({ children }: { children: ReactNode }) {
forcedTheme="dark"
enableSystem={false}
>
<FrameBanner copy={FRAME_BANNER} />
<V1Banner />
{children}
</ThemeProvider>
Expand Down
Loading