Chiaras Meckerei
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 32s

This commit is contained in:
ebby 2026-10-06 20:20:19 +02:00
parent 0ea283435e
commit 61cfc1bedc
7 changed files with 20 additions and 8 deletions

View file

@ -77,7 +77,7 @@ import Logo from "./Logo.astro";
#user-action {
margin: 0;
order: 2;
margin-bottom: auto;
margin-bottom: 64px;
}
#impressum {

View file

@ -27,7 +27,7 @@ const localeDate = formatLocalizedDateString(post.date);
<span> | </span>
<span>Autor: {post.author}</span>
<span> | </span>
<span>Lesezeit: {post.time2read} min</span>
<span>{post.time2read} min</span>
</div>
<a href={`/blog/${post.slug}`} class="headline-link">
<h1 id="headline">{post.title}</h1>
@ -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;
}

View file

@ -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() {
</form>
<style>{`
input[type=checkbox] {
margin-top: 12px;
}
@media screen and (max-width: 800px) {
main * {
color: white;

View file

@ -1,7 +1,7 @@
import { useEffect, useState } from 'preact/hooks';
import { api, type User } from '../lib/api';
import React from 'preact/compat';
import { getUser, navigatePathAndReload, saveUser } from './Util';
import { getUser, navigateBackAndReload, navigatePathAndReload, saveUser } from './Util';
export default function ToggleSubscription() {
const [subscription, setSubscription] = React.useState<boolean>(false);
@ -28,6 +28,7 @@ export default function ToggleSubscription() {
if (user) {
user = {...user, subscription: false }
saveUser(user)
navigateBackAndReload()
}
}
}

View file

@ -81,6 +81,10 @@ const { title, subtitle, text, buttonText, eventString } = Astro.props;
padding: 0;
}
#form {
padding: 32px;
}
#content {
background-color: transparent;
}

View file

@ -13,5 +13,7 @@ import Form from "../layouts/Form.astro";
eventString="login"
>
<LoginForm client:load />
<br />
<br />
<a href="/register">Noch keinen Account? Hier registrieren</a>
</Form>

View file

@ -80,12 +80,13 @@ body {
background-color: var(--primary-dark);
}
input {
input[type=name], input[type=email] {
border: none;
background-color: #e9e9e9;
padding: 4px;
border-radius: 2px;
margin-bottom: 12px;
width: 300px;
}
input[type=checkbox] {