Sonner-Toaster global eingebunden. Erfolgs-Toast auf allen sechs Schnellerfassungs-Formularen (Durchsicht, Varroa, Behandlung, Fuetterung, Aufgabe, Ernte) - ohne Toast blieb nach dem Speichern und Wegnavigieren keine sichtbare Bestaetigung, dass die Eingabe gespeichert wurde. Wichtig fuer klares Feedback bei zeitkritischer Erfassung am Bienenstand.
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import type { Metadata } from "next";
|
||
import { Space_Grotesk, Inter, IBM_Plex_Mono } from "next/font/google";
|
||
import "./globals.css";
|
||
import { Providers } from "./providers";
|
||
import { Toaster } from "@/components/ui/sonner";
|
||
|
||
const spaceGrotesk = Space_Grotesk({
|
||
variable: "--font-heading",
|
||
subsets: ["latin"],
|
||
weight: ["500", "600", "700"],
|
||
});
|
||
|
||
const inter = Inter({
|
||
variable: "--font-body",
|
||
subsets: ["latin"],
|
||
});
|
||
|
||
const plexMono = IBM_Plex_Mono({
|
||
variable: "--font-data",
|
||
subsets: ["latin"],
|
||
weight: ["400", "500"],
|
||
});
|
||
|
||
export const metadata: Metadata = {
|
||
title: "ApiCore – Imkereiverwaltung",
|
||
description: "Digitale Imkereiverwaltung für Wabenhain",
|
||
};
|
||
|
||
export default function RootLayout({ children }: LayoutProps<"/">) {
|
||
return (
|
||
<html
|
||
lang="de"
|
||
className={`${spaceGrotesk.variable} ${inter.variable} ${plexMono.variable} h-full antialiased`}
|
||
>
|
||
<body className="min-h-full flex flex-col">
|
||
<Providers>{children}</Providers>
|
||
<Toaster position="top-right" richColors />
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|