diff --git a/blog/src/components/Logo.astro b/blog/src/components/Logo.astro index 0aa1781..b120f38 100644 --- a/blog/src/components/Logo.astro +++ b/blog/src/components/Logo.astro @@ -17,4 +17,10 @@ #logo-text { font-weight: bold; } + + @media only screen and (max-width: 800px) { + #logo-text { + color: white + } + } diff --git a/blog/src/islands/DeleteUser.tsx b/blog/src/islands/DeleteUser.tsx index 59a27a8..53604d4 100644 --- a/blog/src/islands/DeleteUser.tsx +++ b/blog/src/islands/DeleteUser.tsx @@ -34,7 +34,7 @@ export default function DeleteUser() { {error &&

{error}

} {showModal && ( - )} + ); } diff --git a/blog/src/islands/LoginForm.tsx b/blog/src/islands/LoginForm.tsx index d86ccb3..6acbc98 100644 --- a/blog/src/islands/LoginForm.tsx +++ b/blog/src/islands/LoginForm.tsx @@ -59,6 +59,18 @@ export default function LoginForm() { /> {error &&

{error}

} + + ); } \ No newline at end of file diff --git a/blog/src/islands/RegisterForm.tsx b/blog/src/islands/RegisterForm.tsx index c5d4379..b4d8a05 100644 --- a/blog/src/islands/RegisterForm.tsx +++ b/blog/src/islands/RegisterForm.tsx @@ -72,6 +72,18 @@ export default function RegisterForm() { Du kannst deine Daten jederzeit löschen oder die E-Mail Benachrichtigung deaktivieren. {error &&

{error}

} + + ); } diff --git a/blog/src/islands/ToggleSubscription.tsx b/blog/src/islands/ToggleSubscription.tsx index 475999e..1086d78 100644 --- a/blog/src/islands/ToggleSubscription.tsx +++ b/blog/src/islands/ToggleSubscription.tsx @@ -15,11 +15,15 @@ export default function ToggleSubscription() { const handleSubscription = async () => { setError(''); + let hasError = false try { api.toggleSubscription(subscription) } catch (err) { setError(err instanceof Error ? err.message : 'Update'); + hasError = true + } finally { + // if (!hasError) // TODO: snackbar } }; @@ -30,7 +34,9 @@ export default function ToggleSubscription() { return ( -
+
+
Nutzername: {user?.name} E-Mail Adresse: {user?.email} +
) } \ No newline at end of file diff --git a/blog/src/layouts/Form.astro b/blog/src/layouts/Form.astro index 9394699..478110b 100644 --- a/blog/src/layouts/Form.astro +++ b/blog/src/layouts/Form.astro @@ -75,4 +75,18 @@ const { title, subtitle, text, buttonText, eventString } = Astro.props; align-items: end; padding-top: 64px; } + + @media only screen and (max-width: 800px) { + img { + height: 200px; + } + + #background { + padding: 0; + } + + #content { + background-color: transparent; + } + } diff --git a/blog/src/pages/nutzer-verwaltung.astro b/blog/src/pages/nutzer-verwaltung.astro deleted file mode 100644 index c9aa5de..0000000 --- a/blog/src/pages/nutzer-verwaltung.astro +++ /dev/null @@ -1,16 +0,0 @@ ---- -import DeleteUser from "../islands/DeleteUser"; -import LoginForm from "../islands/LoginForm"; -import RegisterForm from "../islands/RegisterForm"; -import ToggleSubscription from "../islands/ToggleSubscription"; -import Main from "../layouts/Main.astro"; - - ---- - -
- - - - -
\ No newline at end of file diff --git a/blog/src/styles/global.css b/blog/src/styles/global.css index be08394..5503da2 100644 --- a/blog/src/styles/global.css +++ b/blog/src/styles/global.css @@ -125,4 +125,20 @@ input[type=checkbox] { max-height: 500px; object-fit: cover; object-position: center; +} + +@media screen and (max-width: 800px) { + .submit-btn { + background-color: white; + color: var(--primary-color); + } + + .submit-btn:hover { + color: white; + background-color: var(--primary-dark); + } + + .back-btn:hover { + color: var(--primary-dark); + } } \ No newline at end of file