Template
chore: Vorlage an Projekt-Referenz und @ep/ui anbinden
- Plugin prodi über Marketplace ep-plugins einbinden; Hook schutz-main.sh entfernt - @ep/ui als Paket aus Gitea-Registry (.npmrc, Dockerfile mit GITEA_NPM_TOKEN) - Eigene Schriften, EpKopf/EpFuss und Styles durch @ep/ui ersetzt - CLAUDE.md verschlankt, Steckbrief unter docs/, n8n-Ordner angelegt - .gitattributes für LF-Zeilenenden Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
3fa0e2f046
commit
ba6b0b08fe
23 files changed
+312
-719
No files matched your search
@@ -1,22 +1,7 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import localFont from "next/font/local";
|
||||
import { EpFuss, EpKopf } from "@ep/ui";
|
||||
import "./globals.css";
|
||||
import { EpKopf } from "@/components/EpKopf";
|
||||
import { EpFuss } from "@/components/EpFuss";
|
||||
import { APP_BESCHREIBUNG, APP_TITEL } from "@/lib/app";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
// Hausschrift von ep-reisen.de (Lato, freie Lizenz OFL). Die Dateien liegen im Projekt,
|
||||
// damit der Build ohne Internet klappt. Lato hat keine Stärke 600, font-semibold erscheint fett.
|
||||
const lato = localFont({
|
||||
src: [
|
||||
{ path: "./fonts/lato-400.woff2", weight: "400", style: "normal" },
|
||||
{ path: "./fonts/lato-700.woff2", weight: "700", style: "normal" },
|
||||
{ path: "./fonts/lato-900.woff2", weight: "900", style: "normal" },
|
||||
],
|
||||
variable: "--font-lato",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: `${APP_TITEL} · E&P Reisen`,
|
||||
@@ -31,14 +16,15 @@ export const viewport: Viewport = {
|
||||
};
|
||||
|
||||
// E&P-Layout für jede Seite: Kopf mit Logo, Inhalt, Fuß. Seiten liefern nur ihren Inhalt, kein eigenes <main>.
|
||||
// Kopf, Fuß und die Hausschrift Lato kommen aus @ep/ui.
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="de" className={cn("font-sans", lato.variable)}>
|
||||
<html lang="de" className="font-sans">
|
||||
<body className="flex min-h-screen flex-col bg-ground text-ink">
|
||||
<a href="#inhalt" className="skip-link">
|
||||
Zum Inhalt springen
|
||||
</a>
|
||||
<EpKopf />
|
||||
<EpKopf titel={APP_TITEL} />
|
||||
<main id="inhalt" className="mx-auto w-full max-w-3xl flex-1 px-4 py-8 sm:px-6 sm:py-12">
|
||||
{children}
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user