mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-06 03:47:48 +01:00
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch, LOKI_* env keys, loki-* units. This repo referenced the old name in 15 files changed, 29 insertions(+), 29 deletions(-). Email addresses at the old sending domain stay until the new domain is verified in Resend. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
79 lines
2.6 KiB
TypeScript
79 lines
2.6 KiB
TypeScript
import { Header } from '@/components/Header';
|
|
import { Footer } from '@/components/Footer';
|
|
import { Providers } from '@/components/Providers';
|
|
import { site } from '@/lib/site';
|
|
import './globals.css';
|
|
import { Toaster } from 'sonner';
|
|
import { Inter, Fraunces } from 'next/font/google';
|
|
import Script from 'next/script';
|
|
|
|
// Brand typeface: a serif display (Fraunces) carries the editorial / "real
|
|
// counsel" identity for headings & wordmark; Inter handles UI/body copy.
|
|
// Bound to CSS vars consumed by the @theme block in globals.css (font-sans /
|
|
// font-serif). Named --font-inter/--font-fraunces so the @theme aliases
|
|
// --font-sans/--font-serif can reference them without a circular var().
|
|
const sans = Inter({
|
|
subsets: ['latin'],
|
|
variable: '--font-inter',
|
|
display: 'swap',
|
|
});
|
|
|
|
const serif = Fraunces({
|
|
subsets: ['latin'],
|
|
weight: ['400', '500', '600', '700'],
|
|
style: ['normal', 'italic'],
|
|
variable: '--font-fraunces',
|
|
display: 'swap',
|
|
});
|
|
|
|
export const metadata = {
|
|
// Load-bearing: Next resolves the generated og:image against metadataBase.
|
|
// Without it the tag is emitted as http://localhost:3000/opengraph-image —
|
|
// present, plausible, and unfetchable by every social scraper.
|
|
metadataBase: new URL(site.url),
|
|
title: `${site.name} — ${site.tagline}`,
|
|
description: site.description,
|
|
openGraph: {
|
|
title: `${site.name} — ${site.tagline}`,
|
|
description: site.description,
|
|
url: site.url,
|
|
siteName: site.name,
|
|
type: 'website',
|
|
},
|
|
};
|
|
|
|
// Public project token (same string as the site snippet). Next inlines
|
|
// process.env.* at `next build` — a runtime-only .env after deploy will not
|
|
// resurrect a Script branch that was tree-shaken when the var was empty.
|
|
// Fallback keeps the embed live even if CI/box env drifts; override via env.
|
|
const LOKI_FEEDBACK_TOKEN =
|
|
process.env.LOKI_FEEDBACK_TOKEN || 'fcw_73518de7a20c97c968d6c53bf964874d';
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" className={`${sans.variable} ${serif.variable}`}>
|
|
<body className="bg-paper font-sans text-ink">
|
|
<Providers>
|
|
<Header />
|
|
<main className="pt-16">{children}</main>
|
|
<Footer />
|
|
<Toaster
|
|
position="top-right"
|
|
richColors
|
|
closeButton
|
|
toastOptions={{
|
|
duration: 4000,
|
|
}}
|
|
/>
|
|
</Providers>
|
|
<Script
|
|
src="https://loki.orangecat.ch/widget.js"
|
|
strategy="afterInteractive"
|
|
data-fc-project={LOKI_FEEDBACK_TOKEN}
|
|
data-fc-bottom="88"
|
|
/>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|