This commit is contained in:
Robert Jagtiani
2025-04-03 21:09:22 +02:00
parent 6fb22d2ee0
commit a194e8a17e
26 changed files with 1282 additions and 46 deletions

View File

@@ -14,8 +14,7 @@ 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 urlPath = url1.pathname;
const isVA = urlPath.includes("verbrauchsausweis-wohngebaeude");
const isVAG = urlPath.includes("verbrauchsausweis-gewerbe");
const isBA = urlPath.includes("bedarfsausweis-wohngebaeude");
@@ -24,6 +23,9 @@ const isGGW = urlPath.includes("geg-nachweis-wohnen-anfragen");
const isGGG = urlPath.includes("geg-nachweis-gewerbe-anfragen");
const isWEA = urlPath.includes("welcher-ausweis");
const isWelt = urlPath.includes("immowelt");
const isNET = urlPath.includes("immonet");
---
<header id="header" class="w-full bg-white h-[81px] sm:pl-8">
@@ -33,7 +35,7 @@ const isWEA = urlPath.includes("welcher-ausweis");
<div class="w-[150px] h-[80px]">
<div class="w-full h-full grid grid-col-1 justify-items-center items-center">
<img class="w-[109px]" src={`/images/partner/${partner}/${partner}.svg`} alt={partner} />
<img class={isNET ? "w-[149px]" : isWelt ? "w-[109px]" : "w-[109px]"} src={`/images/partner/${partner}/${partner}.svg`} alt={partner} />
</div>
</div>