Renders a thin fixed banner only when NEXT_PUBLIC_ENV_LABEL is set; production leaves it unset so nothing shows. Used to mark the staging instance. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
39 lines
811 B
TypeScript
39 lines
811 B
TypeScript
import type { Metadata } from "next";
|
|
import { Inter, JetBrains_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
import { EnvBanner } from "@/components/env-banner";
|
|
|
|
const inter = Inter({
|
|
subsets: ["latin"],
|
|
variable: "--font-sans",
|
|
display: "swap",
|
|
});
|
|
|
|
const jetbrainsMono = JetBrains_Mono({
|
|
subsets: ["latin"],
|
|
variable: "--font-mono",
|
|
display: "swap",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: "PPMS",
|
|
template: "%s | PPMS",
|
|
},
|
|
description: "PPMS — Pelagia Payment Management System",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en" className={`${inter.variable} ${jetbrainsMono.variable}`}>
|
|
<body>
|
|
<EnvBanner />
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|