Ü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

19
src/pages/fr/login.astro Normal file
View File

@@ -0,0 +1,19 @@
---
import { changeLanguage } from "i18next";
import moment from "moment";
import LoginView from "../../components/LoginView.svelte";
import Layout from "../../layouts/Layout.astro";
changeLanguage("fr");
const token = Astro.cookies.get("token").value;
const expires = Astro.cookies.get("expires").number();
const now = moment().unix();
if (token && now < expires) {
return Astro.redirect(`/user`);
}
---
<Layout title="Login">
<LoginView client:only></LoginView>
</Layout>