diff --git a/public/images/immowelt/immonet.svg b/public/images/immowelt/immonet.svg new file mode 100644 index 00000000..a182803b --- /dev/null +++ b/public/images/immowelt/immonet.svg @@ -0,0 +1 @@ +Immonet Startseite \ No newline at end of file diff --git a/public/images/partner/immonet/immonet.svg b/public/images/partner/immonet/immonet.svg new file mode 100644 index 00000000..a182803b --- /dev/null +++ b/public/images/partner/immonet/immonet.svg @@ -0,0 +1 @@ +Immonet Startseite \ No newline at end of file diff --git a/public/images/partner/immowelt/gewerbegebaeude_immowelt.svg b/public/images/partner/immowelt/gewerbegebaeude_immowelt.svg new file mode 100644 index 00000000..6ac92ac8 --- /dev/null +++ b/public/images/partner/immowelt/gewerbegebaeude_immowelt.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/partner/immowelt/hero-energieausweis.jpg b/public/images/partner/immowelt/hero-energieausweis.jpg new file mode 100644 index 00000000..b2aea339 Binary files /dev/null and b/public/images/partner/immowelt/hero-energieausweis.jpg differ diff --git a/public/images/partner/immowelt/immowelt.svg b/public/images/partner/immowelt/immowelt.svg new file mode 100644 index 00000000..939a8bda --- /dev/null +++ b/public/images/partner/immowelt/immowelt.svg @@ -0,0 +1 @@ +immowelt Startseite \ No newline at end of file diff --git a/public/images/partner/immowelt/wohngebaeude_immowelt.svg b/public/images/partner/immowelt/wohngebaeude_immowelt.svg new file mode 100644 index 00000000..8fb28cde --- /dev/null +++ b/public/images/partner/immowelt/wohngebaeude_immowelt.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/design/header/AusweisHeader_immowelt.astro b/src/components/design/header/AusweisHeader_immowelt.astro deleted file mode 100644 index 16c2a630..00000000 --- a/src/components/design/header/AusweisHeader_immowelt.astro +++ /dev/null @@ -1,77 +0,0 @@ ---- -import HeaderLogin from "#components/design/header/HeaderLogin.svelte"; -const { tabHover1 } = Astro.props; -const { tabHover2 } = Astro.props; -const { tabHover3 } = Astro.props; -const { tabHover4 } = Astro.props; -const { tabHover5 } = Astro.props; -const { tabHover6 } = Astro.props; -const { tabHover7 } = Astro.props; ---- - - - -
-
- - \ No newline at end of file diff --git a/src/components/design/header/AusweisHeader_partner.astro b/src/components/design/header/AusweisHeader_partner.astro new file mode 100644 index 00000000..21a1389b --- /dev/null +++ b/src/components/design/header/AusweisHeader_partner.astro @@ -0,0 +1,110 @@ +--- +import HeaderLogin from "#components/design/header/HeaderLogin.svelte"; +const { tabHover1 } = Astro.props; +const { tabHover2 } = Astro.props; +const { tabHover3 } = Astro.props; +const { tabHover4 } = Astro.props; +const { tabHover5 } = Astro.props; +const { tabHover6 } = Astro.props; +const { tabHover7 } = Astro.props; + + +const { params, url } = Astro; +const partner = params.partner; + +const url1 = new URL(Astro.request.url); + +// Beispiel: prüfen, ob "immowelt" im Pfad vorkommt +const urlPath = url1.pathname; // z. B. "/immowelt/angebot-anfragen/..." +const isVA = urlPath.includes("verbrauchsausweis-wohngebaeude"); +const isVAG = urlPath.includes("verbrauchsausweis-gewerbe"); +const isBA = urlPath.includes("bedarfsausweis-wohngebaeude"); +const isBAG = urlPath.includes("bedarfsausweis-gewerbe-anfragen"); +const isGGW = urlPath.includes("geg-nachweis-wohnen-anfragen"); +const isGGG = urlPath.includes("geg-nachweis-gewerbe-anfragen"); +const isWEA = urlPath.includes("welcher-ausweis"); + +--- + + + +
+ + + {isVA ?
Hier komfortabel und einfach online den Verbrauchsausweis Wohngebäude bestellen
: ""} + {isVAG ?
Hier komfortabel und einfach online den Verbrauchsausweis Gewerbe bestellen
: ""} + {isBA ?
Hier komfortabel und einfach online den Bedarfsausweis Wohngebäude bestellen
: ""} + {isBAG ?
Hier komfortabel und einfach online den Bedarfsausweis Gewerbe bestellen
: ""} + {isGGW ?
Hier komfortabel und einfach online den GEG Nachweis Wohngebäude bestellen
: ""} + {isGGG ?
Hier komfortabel und einfach online den GEG Nachweis Gewerbe bestellen
: ""} + {isWEA ?
Hier komfortabel und einfach online den richtigen Ausweis finden
: ""} + + +
+ + \ No newline at end of file diff --git a/src/layouts/AusweisLayoutDaten_immowelt.astro b/src/layouts/AusweisLayoutDaten_partner.astro similarity index 96% rename from src/layouts/AusweisLayoutDaten_immowelt.astro rename to src/layouts/AusweisLayoutDaten_partner.astro index fa0b31d8..95c3b941 100644 --- a/src/layouts/AusweisLayoutDaten_immowelt.astro +++ b/src/layouts/AusweisLayoutDaten_partner.astro @@ -2,7 +2,7 @@ import "../style/global.css"; import "../style/formular.css"; import "../../svelte-dialogs.config" -import Header from "#components/design/header/AusweisHeader_immowelt.astro"; +import Header from "#components/design/header/AusweisHeader_partner.astro"; import Footer from "#components/design/footer/Footer.astro"; import SidebarLeft from "#components/design/sidebars/SidebarLeft.astro"; import { NotificationWrapper } from "@ibcornelsen/ui"; @@ -15,8 +15,11 @@ export interface Props { tabHover4: string; tabHover5: string; tabHover6: string; + tabHover7: string; + } + const { title } = Astro.props; const { tabHover1 } = Astro.props; const { tabHover2 } = Astro.props; @@ -24,6 +27,8 @@ const { tabHover3 } = Astro.props; const { tabHover4 } = Astro.props; const { tabHover5 } = Astro.props; const { tabHover6 } = Astro.props; +const { tabHover7 } = Astro.props; + ---