143 lines
4.0 KiB
Plaintext
143 lines
4.0 KiB
Plaintext
---
|
|
// import "svelte-ripple-action/ripple.css";
|
|
import "../style/global.css";
|
|
import "../../svelte-dialogs.config.js";
|
|
import DashboardSidebar from "../components/Dashboard/DashboardSidebar.svelte";
|
|
import { Benutzer } from "#lib/server/prisma";
|
|
|
|
export interface Props {
|
|
title: string;
|
|
user: Benutzer;
|
|
besteller: Benutzer | null;
|
|
}
|
|
|
|
const { title, user, besteller } = Astro.props;
|
|
|
|
if (!user) {
|
|
Astro.redirect("/auth/login", 302);
|
|
}
|
|
|
|
const schema = JSON.stringify({
|
|
"@context": "http://schema.org",
|
|
"@type": "Corporation",
|
|
name: "IB Cornelsen",
|
|
alternateName: "online-energieausweis.org",
|
|
url: "https://online-energieausweis.org",
|
|
logo: "https://online-energieausweis.org/ib-cornelsen.png",
|
|
address: {
|
|
"@type": "PostalAddress",
|
|
streetAddress: "Katendeich 5A",
|
|
addressLocality: "Hamburg",
|
|
postalCode: "21035",
|
|
addressCountry: "Deutschland",
|
|
email: "info@online-energieausweis.org",
|
|
},
|
|
contactPoint: {
|
|
"@type": "ContactPoint",
|
|
telephone: "+49-040-209339850",
|
|
faxNumber: "+49-040-209339859",
|
|
contactType: "customer service",
|
|
areaServed: "DE",
|
|
availableLanguage: "German",
|
|
},
|
|
});
|
|
|
|
let lightTheme = Astro.cookies.get("theme")?.value === "light";
|
|
---
|
|
|
|
<script >
|
|
// import { H } from "highlight.run";
|
|
|
|
// const user = JSON.parse(document.body.dataset.user);
|
|
|
|
// if (import.meta.env.PROD) {
|
|
// H.init("1jdkoe52", {
|
|
// serviceName: "online-energieausweis",
|
|
// backendUrl:
|
|
// "https://highlight-backend.online-energieausweis.org/public",
|
|
// tracingOrigins: true,
|
|
// networkRecording: {
|
|
// enabled: true,
|
|
// recordHeadersAndBody: true,
|
|
// }
|
|
// });
|
|
|
|
// if (user) {
|
|
// H.identify(user.email, {
|
|
// id: user.id
|
|
// })
|
|
// }
|
|
// }
|
|
</script>
|
|
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<script type="application/ld+json" set:html={schema} />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.jpg" />
|
|
|
|
<meta
|
|
name="description"
|
|
content="✅ Jetzt Ihren Energieausweis online erstellen. Erhalten Sie Ihren online Energieausweis rechtssicher und nach aktueller GEG (vormals EnEV) vom Diplom Ingenieur geprüft."
|
|
/>
|
|
<link rel="canonical" href="https://online-energieausweis.org/" />
|
|
|
|
<meta property="og:locale" content="de_DE" />
|
|
<meta property="og:type" content="website" />
|
|
<meta
|
|
property="og:title"
|
|
content="Energieausweis online erstellen - Online Energieausweis"
|
|
/>
|
|
<meta
|
|
property="og:description"
|
|
content="✅ Jetzt Ihren Energieausweis online erstellen. Erhalten Sie Ihren online Energieausweis rechtssicher und nach aktueller GEG (vormals EnEV) vom Diplom Ingenieur geprüft."
|
|
/>
|
|
<meta property="og:url" content="https://online-energieausweis.org/" />
|
|
<meta
|
|
property="og:site_name"
|
|
content="Energieausweis online erstellen"
|
|
/>
|
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta
|
|
name="twitter:description"
|
|
content="✅ Jetzt Ihren Energieausweis online erstellen. Erhalten Sie Ihren online Energieausweis rechtssicher und nach aktueller GEG (vormals EnEV) vom Diplom Ingenieur geprüft."
|
|
/>
|
|
<meta
|
|
name="twitter:title"
|
|
content="Energieausweis online erstellen - Online Energieausweis"
|
|
/>
|
|
<meta
|
|
name="twitter:image"
|
|
content="https://online-energieausweis.org/images/energieausweis-online-erstellen.jpg"
|
|
/>
|
|
<title>
|
|
{title || "Energieausweis online erstellen - Online Energieausweis"}
|
|
</title>
|
|
</head>
|
|
|
|
<body data-user={JSON.stringify({ id: user.id, email: user.email })}>
|
|
<main
|
|
class="p-0 grid max-w-[1920px]
|
|
xs:grid-cols-[minmax(1fr,1fr)] xs:gap-1 xs:p-0
|
|
sm:grid-cols-[minmax(1fr,1fr)] sm:gap-1 sm:p-0
|
|
md:grid-cols-[minmax(1fr,1fr)] md:gap-2 md:p-0
|
|
lg:grid-cols-[minmax(150px,250px)1fr] lg:gap-3 lg:p-4
|
|
xl:grid-cols-[minmax(150px,350px)1fr] xl:gap-4 xl:p-6
|
|
2xl:grid-cols-[minmax(150px,300px)1fr] 2xl:gap-5 2xl:p-6"
|
|
>
|
|
<DashboardSidebar
|
|
lightTheme={lightTheme}
|
|
benutzer={user}
|
|
besteller={besteller}
|
|
client:load
|
|
/>
|
|
|
|
<article class="box px-6 py-5 h-full">
|
|
<slot />
|
|
</article>
|
|
</main>
|
|
</body>
|
|
</html>
|