Files
Coop-NL/src/app/layout.tsx
T
2026-10-22 09:08:02 +02:00

40 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
// Web projekt Adobe Fonts (Aptly pre cenovky) – dá sa zmeniť premennou NEXT_PUBLIC_ADOBE_FONTS_URL.
// V projekte na fonts.adobe.com musia byť povolené domény (localhost aj newsletter-coop.vercel.app).
const ADOBE_FONTS_URL = process.env.NEXT_PUBLIC_ADOBE_FONTS_URL || 'https://use.typekit.net/loe7muj.css';
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<html
lang="en"
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
>
<head>
{/* Písmo e-mailu (Poppins) – náhľad v editore aj na stránke s pripomienkami */}
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap" />
{/* Adobe Fonts (napr. Aptly pre cenovky a štítky) – odkaz na web projekt z fonts.adobe.com */}
<link rel="stylesheet" href={ADOBE_FONTS_URL} />
</head>
<body className="min-h-full flex flex-col">{children}</body>
</html>
);
}