153 lines
4.0 KiB
Plaintext
153 lines
4.0 KiB
Plaintext
---
|
|
import "../style/global.css";
|
|
import "../style/formular.css";
|
|
import "../../svelte-dialogs.config"
|
|
import AusweisHeaderPartner from "#components/design/header/AusweisHeaderPartner.astro";
|
|
import Footer from "#components/design/footer/Footer.astro";
|
|
import { NotificationWrapper } from "@ibcornelsen/ui";
|
|
|
|
export interface Props {
|
|
title: string;
|
|
tab: number;
|
|
}
|
|
|
|
const { title, tab } = Astro.props;
|
|
|
|
---
|
|
<script>
|
|
|
|
window.addEventListener("scroll", () => {
|
|
const skala = document.getElementById("skala");
|
|
|
|
if (!skala) return;
|
|
|
|
// Wenn skala "no-scroll" hat, alles zurücksetzen
|
|
if (skala.classList.contains("no-scroll")) {
|
|
skala.classList.remove(
|
|
"2xl:fixed",
|
|
"2xl:py-4",
|
|
"2xl:top-0",
|
|
"2xl:z-20"
|
|
);
|
|
skala.classList.add("w-full");
|
|
skala.style.borderBottom = "none";
|
|
skala.style.width = ""; // zurücksetzen
|
|
|
|
document.getElementById("formInput-1")?.classList.remove("2xl:mt-[370px]");
|
|
return;
|
|
}
|
|
|
|
let scroll = window.scrollY;
|
|
if (scroll >= 400) {
|
|
// Breite einmal auslesen und festsetzen
|
|
const skalaWidth = skala.offsetWidth + "px";
|
|
skala.style.width = skalaWidth;
|
|
|
|
skala.classList.add(
|
|
"2xl:fixed",
|
|
"2xl:py-4",
|
|
"2xl:top-0",
|
|
"2xl:z-20"
|
|
);
|
|
skala.classList.remove("w-full");
|
|
skala.style.borderBottom = "3px solid #e6e6e6";
|
|
|
|
document.getElementById("formInput-1")?.classList.add("2xl:mt-[370px]");
|
|
} else {
|
|
skala.classList.remove(
|
|
"2xl:fixed",
|
|
"2xl:py-4",
|
|
"2xl:top-0",
|
|
"2xl:z-20"
|
|
);
|
|
skala.classList.add("w-full");
|
|
skala.style.borderBottom = "none";
|
|
skala.style.width = ""; // zurücksetzen
|
|
|
|
document.getElementById("formInput-1")?.classList.remove("2xl:mt-[370px]");
|
|
}
|
|
});
|
|
|
|
window.addEventListener("resize", () => {
|
|
const skala = document.getElementById("skala");
|
|
if (!skala) return;
|
|
|
|
// Nur aktualisieren, wenn gerade "fixed" ist
|
|
if (skala.classList.contains("2xl:fixed")) {
|
|
// Temporär zurücksetzen, um echte Breite zu bekommen
|
|
skala.style.width = "";
|
|
const skalaWidth = skala.offsetWidth + "px";
|
|
skala.style.width = skalaWidth;
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<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>
|
|
|
|
<AusweisHeaderPartner {tab}/>
|
|
|
|
<main class="w-full p-0 grid grid-cols-1 rounded-none">
|
|
|
|
<!--<SidebarLeft />-->
|
|
|
|
<article class="p-0 lg:px-20 lg:py-12">
|
|
<slot />
|
|
<div style="height: 450px;"></div>
|
|
</article>
|
|
|
|
</main>
|
|
|
|
<Footer />
|
|
<NotificationWrapper client:load />
|
|
|
|
</body>
|
|
</html>
|
|
|
|
<style is:global lang="postcss">
|
|
|
|
</style>
|