121 lines
3.5 KiB
Plaintext
121 lines
3.5 KiB
Plaintext
---
|
|
// import "svelte-ripple-action/ripple.css";
|
|
import "../style/global.css";
|
|
import "../../svelte-dialogs.config";
|
|
import DashboardSidebar from "../components/Dashboard/DashboardSidebar.svelte";
|
|
import { validateAccessTokenServer } from "#server/lib/validateAccessToken";
|
|
import { BenutzerClient } from "#components/Ausweis/types";
|
|
|
|
const valid = validateAccessTokenServer(Astro)
|
|
|
|
if (!valid) {
|
|
Astro.redirect("/auth/login", 302)
|
|
}
|
|
|
|
export interface Props {
|
|
title: string;
|
|
user: BenutzerClient
|
|
}
|
|
|
|
const { title, user } = Astro.props;
|
|
|
|
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";
|
|
---
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<script type="application/ld+json" set:html={schema}></script>
|
|
<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>
|
|
|
|
<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} client:load>
|
|
</DashboardSidebar>
|
|
|
|
<article class="box rounded-tl-none
|
|
xl:px-10 py-8">
|
|
<slot />
|
|
</article>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
</html> |