From 61cfc1bedcd48145c3b776f70d4c74b5eacb83d6 Mon Sep 17 00:00:00 2001 From: ebby Date: Tue, 6 Oct 2026 20:20:19 +0200 Subject: [PATCH] Chiaras Meckerei --- blog/src/components/Header.astro | 2 +- blog/src/components/PostPreviewLarge.astro | 8 ++++---- blog/src/islands/RegisterForm.tsx | 6 +++++- blog/src/islands/ToggleSubscription.tsx | 3 ++- blog/src/layouts/Form.astro | 4 ++++ blog/src/pages/login.astro | 2 ++ blog/src/styles/global.css | 3 ++- 7 files changed, 20 insertions(+), 8 deletions(-) diff --git a/blog/src/components/Header.astro b/blog/src/components/Header.astro index 5450c63..290c0a7 100644 --- a/blog/src/components/Header.astro +++ b/blog/src/components/Header.astro @@ -77,7 +77,7 @@ import Logo from "./Logo.astro"; #user-action { margin: 0; order: 2; - margin-bottom: auto; + margin-bottom: 64px; } #impressum { diff --git a/blog/src/components/PostPreviewLarge.astro b/blog/src/components/PostPreviewLarge.astro index ff0639b..219b763 100644 --- a/blog/src/components/PostPreviewLarge.astro +++ b/blog/src/components/PostPreviewLarge.astro @@ -27,7 +27,7 @@ const localeDate = formatLocalizedDateString(post.date); | Autor: {post.author} | - Lesezeit: {post.time2read} min + {post.time2read} min

{post.title}

@@ -62,7 +62,8 @@ const localeDate = formatLocalizedDateString(post.date); } h2 { - margin: 0; + + font-weight: 600; } .image-col { @@ -100,8 +101,7 @@ const localeDate = formatLocalizedDateString(post.date); margin-right: 16px; } - #headline, - #subtitle { + #headline, #subtitle { font-weight: bold; margin: 8px 0 0 0; } diff --git a/blog/src/islands/RegisterForm.tsx b/blog/src/islands/RegisterForm.tsx index 06b154b..ca2b0b6 100644 --- a/blog/src/islands/RegisterForm.tsx +++ b/blog/src/islands/RegisterForm.tsx @@ -15,7 +15,7 @@ export default function RegisterForm() { await api.register(user); } catch (err) { const errorMessage = err instanceof Error ? err.message : 'Unbekannter Fehler'; - + if (errorMessage.includes('Network')) { setError("Backend nicht erreichbar") } else if (errorMessage.includes('406') && user.name == '') { @@ -74,6 +74,10 @@ export default function RegisterForm() {