Übersetzungen + Prüfbox Bezahlung

This commit is contained in:
Moritz Utcke
2023-08-31 23:12:18 +06:00
parent 0fac93486f
commit 7bf1b9a6c6
90 changed files with 3015 additions and 417 deletions

View File

@@ -1,5 +1,9 @@
---
import i18next from "i18next";
import {localizeUrl} from "astro-i18next"
import { t } from "i18next";
import { isLoggedIn } from "../lib/UI/isLoggedIn";
import LanguageDropdown from "./LanguageDropdown.svelte";
const loggedIn = isLoggedIn(Astro);
---
@@ -16,22 +20,56 @@ const loggedIn = isLoggedIn(Astro);
src="/images/header/logo-big.png"
class="header-logo"
alt="IBCornelsen - Logo"
onclick="window.location.href = '/'"
onclick="
window.location.href = '/'
"
/>
<h2 class="text-secondary font-semibold text-2xl absolute top-8 right-0">Energieausweis online erstellen</h2>
<h2 class="text-primary font-semibold text-xl absolute top-16 right-0">Energieausweise nach aktueller GEG</h2>
<h2
class="text-secondary font-semibold text-2xl absolute top-8 right-0"
>
Energieausweis online erstellen
</h2>
<h2
class="text-primary font-semibold text-xl absolute top-16 right-0"
>
Energieausweise nach aktueller GEG
</h2>
</div>
</div>
<div class="nav-head">
<LanguageDropdown
countries={[
{ iso: "de", flag: "de", name: "Deutsch" },
{ iso: "en", flag: "us", name: "English" },
{ iso: "fr", flag: "fr", name: "Français" },
]}
localized={i18next.languages.map(l => {
return { lang: l, path: localizeUrl(Astro.request.url, l)};
})}
current={i18next.language}
client:load
/>
<a
class="headerButton"
href="/energieausweis-erstellen/verbrauchsausweis-erstellen.php"
>Energieausweis erstellen</a
>
<a class="headerButton" href="/energieausweis-kontakt.php">Kontakt</a>
<a class="headerButton" href="/energieausweis-kontakt.php"
>{t("header.kontakt")}</a
>
<a class="headerButton" href="/agb">AGB</a>
{loggedIn ? <a class="headerButton" href="/user">Profil</a> : <a class="headerButton" href="/login">Login</a>}
{
loggedIn ? (
<a class="headerButton" href="/user">
{t("header.profil")}
</a>
) : (
<a class="headerButton" href="/login">
{t("header.login")}
</a>
)
}
<a class="hamburger_menu"
><img src="/images/hamburger.png" alt="hamburger" /></a
>