163 lines
4.4 KiB
Plaintext
163 lines
4.4 KiB
Plaintext
---
|
|
import "../style/global.css";
|
|
import "../style/formular.css";
|
|
import "../../svelte-dialogs.config"
|
|
import Header from "#components/design/header/AusweisHeader_immowelt.astro";
|
|
import Footer from "#components/design/footer/Footer.astro";
|
|
import SidebarLeft from "#components/design/sidebars/SidebarLeft.astro";
|
|
import { NotificationWrapper } from "@ibcornelsen/ui";
|
|
|
|
export interface Props {
|
|
title: string;
|
|
tabHover1: string;
|
|
tabHover2: string;
|
|
tabHover3: string;
|
|
tabHover4: string;
|
|
tabHover5: string;
|
|
tabHover6: string;
|
|
}
|
|
|
|
const { title } = Astro.props;
|
|
const { tabHover1 } = Astro.props;
|
|
const { tabHover2 } = Astro.props;
|
|
const { tabHover3 } = Astro.props;
|
|
const { tabHover4 } = Astro.props;
|
|
const { tabHover5 } = Astro.props;
|
|
const { tabHover6 } = 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>
|
|
|
|
<Header {tabHover1} {tabHover2} {tabHover3} {tabHover4} {tabHover5} {tabHover6}/>
|
|
|
|
<main class="w-full p-0 grid grid-cols-1 rounded-none">
|
|
|
|
<!--<SidebarLeft />-->
|
|
|
|
<article class="p-0 lg:p-20">
|
|
<slot />
|
|
</article>
|
|
|
|
</main>
|
|
|
|
<Footer />
|
|
<NotificationWrapper client:load />
|
|
|
|
</body>
|
|
</html>
|
|
|
|
<style is:global lang="postcss">
|
|
|
|
</style>
|