Files
cfcb1b16-047c-46f7-acd2-1ff…/src/app/layout.tsx
2026-03-11 13:35:12 +00:00

81 lines
2.2 KiB
TypeScript

import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Mulish } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
const halant = Halant({
variable: "--font-halant",
subsets: ["latin"],
weight: ["300", "400", "500", "600", "700"],
});
const inter = Inter({
variable: "--font-inter",
subsets: ["latin"],
});
const mulish = Mulish({
variable: "--font-mulish",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Kanton Schwyz - Official Government Portal",
description: "Modern portal for Canton Schwyz government services, jobs, permits, and citizen information. Easy access to taxes, ePolizei, legal documents, and current announcements.",
keywords: "Canton Schwyz, government services, permits, jobs, taxes, Switzerland",
metadataBase: new URL("https://www.sz.ch"),
alternates: {
canonical: "https://www.sz.ch",
},
openGraph: {
title: "Kanton Schwyz",
description: "Your official gateway to Canton Schwyz government services and information",
url: "https://www.sz.ch",
siteName: "Kanton Schwyz",
type: "website",
images: [
{
url: "https://www.sz.ch/og-image.jpg",
alt: "Kanton Schwyz official portal",
},
],
},
twitter: {
card: "summary_large_image",
title: "Kanton Schwyz",
description: "Official government services portal",
images: ["https://www.sz.ch/twitter-image.jpg"],
},
robots: {
index: true,
follow: true,
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} ${mulish.variable} antialiased`}
>
<Tag />
{children}
<script
dangerouslySetInnerHTML={{
__html: `${getVisualEditScript()}`
}}
/>
</body>
</ServiceWrapper>
</html>
);
}