diff --git a/blog/src/islands/ToggleSubscription.tsx b/blog/src/islands/ToggleSubscription.tsx index 3d0b184..0df891a 100644 --- a/blog/src/islands/ToggleSubscription.tsx +++ b/blog/src/islands/ToggleSubscription.tsx @@ -12,7 +12,7 @@ export default function ToggleSubscription() { const user = await api.getUserInfo(); setSubscription(user.subscription); }; - fetchUser(); + fetchUser(); // TODO: Ersetzen mit getUser() }, []); const handleSubscription = async (e: JSX.TargetedEvent) => { @@ -20,7 +20,6 @@ export default function ToggleSubscription() { setError(''); try { - console.log(subscription) api.toggleSubscription(subscription) } catch (err) { setError(err instanceof Error ? err.message : 'Registrierung fehlgeschlagen'); diff --git a/blog/src/layouts/BlogPostLayout.astro b/blog/src/layouts/BlogPostLayout.astro index e2d830d..dac0076 100644 --- a/blog/src/layouts/BlogPostLayout.astro +++ b/blog/src/layouts/BlogPostLayout.astro @@ -30,7 +30,7 @@ const localeDate = formatLocalizedDateString(postData.date); {localeDate} - +

Disclaimer: Dieser Artikel ist ausschließlich privat und wird nicht durch Produktplatzierung, Affiliate-Links oder ähnliches Unterstützt. Links diff --git a/blog/src/layouts/Form.astro b/blog/src/layouts/Form.astro new file mode 100644 index 0000000..c11b921 --- /dev/null +++ b/blog/src/layouts/Form.astro @@ -0,0 +1,76 @@ +--- +import NavBack from "../islands/NavBack"; +import Main from "../layouts/Main.astro"; + +const { title, subtitle, text, buttonText, eventString } = Astro.props; +--- + +

+
+
+ +
+

{title}

+ {subtitle} +

{text}

+ +
+ + +
+
+
+
+
+ + diff --git a/blog/src/pages/login.astro b/blog/src/pages/login.astro index a905eb9..91a2ab9 100644 --- a/blog/src/pages/login.astro +++ b/blog/src/pages/login.astro @@ -1,81 +1,20 @@ --- import LoginForm from "../islands/LoginForm"; import NavBack from "../islands/NavBack"; -import Main from "../layouts/Main.astro"; +import Form from "../layouts/Form.astro"; --- -
-
-
- -
-

Login

- Gib deinen persönlichen Code ein -

- Meld dich an, um deine Daten zu bearbeiten. Gib dafür den +

+ + Noch keinen Account? Hier Anmelden + -
- - -
-
-
-
-
- - + diff --git a/blog/src/pages/register.astro b/blog/src/pages/register.astro new file mode 100644 index 0000000..397af2e --- /dev/null +++ b/blog/src/pages/register.astro @@ -0,0 +1,11 @@ +--- +import Form from "../layouts/Form.astro"; +--- + +