Merge remote-tracking branch 'origin/main'

This commit is contained in:
Moritz Utcke
2025-04-07 18:38:21 -04:00
6 changed files with 85 additions and 9 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -25,11 +25,10 @@
{#if showPopup}
<div class="fixed w-full h-full inset-0 bg-black bg-opacity-50 flex justify-center items-center">
<div
class="w-3/4 bg-white p-4 rounded-lg shadow-lg relative"
class="m:w-full m:m-4 lg:w-3/4 bg-white p-4 rounded-lg shadow-lg relative overflow-y-auto max-h-[80vh]"
on:keydown|stopPropagation
on:keyup|stopPropagation
on:keypress|stopPropagation
>
on:keypress|stopPropagation>
<button class="absolute top-3 right-3 bg-secondary text-white rounded-full p-2 cursor-pointer" on:click={closePopup}>X</button>
<div class="top-6 left-8 text-3xl font-bold mb-2">Wichtige Info zur Neuentwicklung</div>
<div class="popup-body">

View File

@@ -0,0 +1,65 @@
<script lang="ts">
import Cookies from "js-cookie";
import moment from "moment";
let showPopup = Cookies.get("seen-bw-info-popup") !== "1";
function closePopup() {
showPopup = false;
Cookies.set("seen-bw-info-popup", "1", {
domain: `.${window.location.hostname}`,
path: "/",
expires: moment().add(3, "days").toDate()
})
}
$: {
if (showPopup) {
document.body.style.overflow = "hidden"
} else {
document.body.style.overflow = "auto"
}
}
</script>
{#if showPopup}
<div class="fixed w-full z-50 h-full inset-0 bg-black bg-opacity-50 flex justify-center items-center">
<div
class="w-3/4 bg-white p-4 rounded-lg shadow-lg relative"
on:keydown|stopPropagation
on:keyup|stopPropagation
on:keypress|stopPropagation
>
<button class="absolute top-3 right-3 bg-secondary text-white rounded-full p-2 cursor-pointer" on:click={closePopup}>X</button>
<div class="top-6 left-8 text-3xl font-bold mb-2">Bedarfsausweis Wohnen 145€ - nur für kurze Zeit</div>
<div class="popup-body">
<p>
Wir überarbeiten momentan die Berechnungsmethodik für den Bedarfsausweis. Bis die neue Berechnung implementiert ist,
bieten wir Ihnen den Bedarfsausweis für 145€ (Standardgebäude) an. Der Preis gilt nur für kurze Zeit und wird danach wieder angehoben
bzw. die <b>günstige online Variante steht dann wieder für 95 € zur Verfügung.</b>
Bei komplexen Grundrissen oder größeren Objekten kann es sein, dass wir den Preis anpassen müssen.
</p>
</div>
</div>
</div>
{/if}
<style lang="scss">
.popup-body {
font-size: 1rem;
line-height: 1.5;
margin-bottom: 1rem;
}
.popup-list {
list-style-type: disc;
margin-left: 1.5rem;
padding-left: 0.5rem;
}
.popup-list li {
margin-bottom: 0.5rem;
}
</style>

View File

@@ -31,11 +31,11 @@ export const PRICES: Record<Enums.Ausweisart, Record<Enums.AusweisTyp, number>>
// per E-Mail , inkl.Beratung, offline
BedarfsausweisWohnen: {
[Enums.AusweisTyp.Standard]: 95,
[Enums.AusweisTyp.Beratung]: 125,
[Enums.AusweisTyp.Standard]: 145,
[Enums.AusweisTyp.Beratung]: 175,
[Enums.AusweisTyp.Offline]: 295,
[Enums.AusweisTyp.standardXL]: 120,
[Enums.AusweisTyp.BeratungXL]: 150,
[Enums.AusweisTyp.standardXL]: 170,
[Enums.AusweisTyp.BeratungXL]: 200,
[Enums.AusweisTyp.OfflineXL]: 320,
},
VerbrauchsausweisWohnen: {

View File

@@ -15,6 +15,7 @@
import SanierungszustandFensterTueren from "#components/Ausweis/SanierungszustandFensterTueren.svelte";
import SanierungszustandWaermedammung from "#components/Ausweis/SanierungszustandWaermedammung.svelte";
import AusweisPreviewContainer from "#components/Ausweis/AusweisPreviewContainer.svelte";
import InfoPopupBedarfsausweisWohnen from "#components/design/content/InfoPopupBedarfsausweisWohnen.svelte";
import moment from "moment";
import { Benutzer, Enums, Unterlage } from "#lib/client/prisma.js";
@@ -281,3 +282,5 @@
{skala}
></ButtonWeiterHilfe>
</form>
<InfoPopupBedarfsausweisWohnen/>

View File

@@ -0,0 +1,8 @@
---
import AusweisLayout from "#layouts/AusweisLayoutDaten_partner.astro";
import WelcherAusweisWidget from "#components/widgets/ohnemakler/WelcherAusweisWidget_ohnemakler.svelte";
---
<AusweisLayout title="Welcher Ausweis | IBCornelsen" tabHover7="glow">
<WelcherAusweisWidget client:load></WelcherAusweisWidget>
</AusweisLayout>