Chiaras Meckerei
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 32s
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 32s
This commit is contained in:
parent
0ea283435e
commit
61cfc1bedc
7 changed files with 20 additions and 8 deletions
|
|
@ -77,7 +77,7 @@ import Logo from "./Logo.astro";
|
||||||
#user-action {
|
#user-action {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
order: 2;
|
order: 2;
|
||||||
margin-bottom: auto;
|
margin-bottom: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#impressum {
|
#impressum {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ const localeDate = formatLocalizedDateString(post.date);
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<span>Autor: {post.author}</span>
|
<span>Autor: {post.author}</span>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<span>Lesezeit: {post.time2read} min</span>
|
<span>{post.time2read} min</span>
|
||||||
</div>
|
</div>
|
||||||
<a href={`/blog/${post.slug}`} class="headline-link">
|
<a href={`/blog/${post.slug}`} class="headline-link">
|
||||||
<h1 id="headline">{post.title}</h1>
|
<h1 id="headline">{post.title}</h1>
|
||||||
|
|
@ -62,7 +62,8 @@ const localeDate = formatLocalizedDateString(post.date);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: 0;
|
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-col {
|
.image-col {
|
||||||
|
|
@ -100,8 +101,7 @@ const localeDate = formatLocalizedDateString(post.date);
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#headline,
|
#headline, #subtitle {
|
||||||
#subtitle {
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 8px 0 0 0;
|
margin: 8px 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export default function RegisterForm() {
|
||||||
await api.register(user);
|
await api.register(user);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const errorMessage = err instanceof Error ? err.message : 'Unbekannter Fehler';
|
const errorMessage = err instanceof Error ? err.message : 'Unbekannter Fehler';
|
||||||
|
|
||||||
if (errorMessage.includes('Network')) {
|
if (errorMessage.includes('Network')) {
|
||||||
setError("Backend nicht erreichbar")
|
setError("Backend nicht erreichbar")
|
||||||
} else if (errorMessage.includes('406') && user.name == '') {
|
} else if (errorMessage.includes('406') && user.name == '') {
|
||||||
|
|
@ -74,6 +74,10 @@ export default function RegisterForm() {
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<style>{`
|
<style>{`
|
||||||
|
input[type=checkbox] {
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 800px) {
|
@media screen and (max-width: 800px) {
|
||||||
main * {
|
main * {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { useEffect, useState } from 'preact/hooks';
|
import { useEffect, useState } from 'preact/hooks';
|
||||||
import { api, type User } from '../lib/api';
|
import { api, type User } from '../lib/api';
|
||||||
import React from 'preact/compat';
|
import React from 'preact/compat';
|
||||||
import { getUser, navigatePathAndReload, saveUser } from './Util';
|
import { getUser, navigateBackAndReload, navigatePathAndReload, saveUser } from './Util';
|
||||||
|
|
||||||
export default function ToggleSubscription() {
|
export default function ToggleSubscription() {
|
||||||
const [subscription, setSubscription] = React.useState<boolean>(false);
|
const [subscription, setSubscription] = React.useState<boolean>(false);
|
||||||
|
|
@ -28,6 +28,7 @@ export default function ToggleSubscription() {
|
||||||
if (user) {
|
if (user) {
|
||||||
user = {...user, subscription: false }
|
user = {...user, subscription: false }
|
||||||
saveUser(user)
|
saveUser(user)
|
||||||
|
navigateBackAndReload()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,10 @@ const { title, subtitle, text, buttonText, eventString } = Astro.props;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#form {
|
||||||
|
padding: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,7 @@ import Form from "../layouts/Form.astro";
|
||||||
eventString="login"
|
eventString="login"
|
||||||
>
|
>
|
||||||
<LoginForm client:load />
|
<LoginForm client:load />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
<a href="/register">Noch keinen Account? Hier registrieren</a>
|
<a href="/register">Noch keinen Account? Hier registrieren</a>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
@ -80,12 +80,13 @@ body {
|
||||||
background-color: var(--primary-dark);
|
background-color: var(--primary-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input[type=name], input[type=email] {
|
||||||
border: none;
|
border: none;
|
||||||
background-color: #e9e9e9;
|
background-color: #e9e9e9;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox] {
|
input[type=checkbox] {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue