Developer

This commit is contained in:
2026-08-02 00:06:11 +02:00
parent d20a2095c7
commit d8aba6925f
12 changed files with 374 additions and 32 deletions

View File

@@ -90,6 +90,7 @@ export default function RootLayout({
return (
<html
lang="de"
data-preloader="active"
className={`${inter.variable} ${cormorant.variable} h-full antialiased`}
>
<body className="flex min-h-full flex-col">
@@ -100,15 +101,6 @@ export default function RootLayout({
crossOrigin="anonymous"
strategy="beforeInteractive"
/>
<Script id="preloader-session" strategy="beforeInteractive">
{`try {
const hasSeenPreloader = sessionStorage.getItem("entscheidomat:preloader-seen") === "1";
const isMobile = window.matchMedia("(max-width: 767px)").matches;
document.documentElement.dataset.preloader = hasSeenPreloader || isMobile ? "cached" : "active";
} catch {
document.documentElement.dataset.preloader = window.matchMedia("(max-width: 767px)").matches ? "cached" : "active";
}`}
</Script>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{