fix: Login-Seite zentriert + Hero-Bereich mit Tagline über dem Formular
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,9 +13,11 @@ import { auth } from '/api.js';
|
|||||||
export async function render(container) {
|
export async function render(container) {
|
||||||
container.innerHTML = `
|
container.innerHTML = `
|
||||||
<main class="login-page" id="main-content">
|
<main class="login-page" id="main-content">
|
||||||
|
<div class="login-hero">
|
||||||
|
<h1 class="login-hero__title">Oikos</h1>
|
||||||
|
<p class="login-hero__tagline">Familienplanung. Sicher. Datenschutzfreundlich. Open Source.</p>
|
||||||
|
</div>
|
||||||
<div class="login-card card card--padded">
|
<div class="login-card card card--padded">
|
||||||
<h1 class="login-card__title">Oikos</h1>
|
|
||||||
<p class="login-card__subtitle">Familienplaner</p>
|
|
||||||
|
|
||||||
<form class="login-form" id="login-form" novalidate>
|
<form class="login-form" id="login-form" novalidate>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
+24
-15
@@ -6,33 +6,42 @@
|
|||||||
|
|
||||||
.login-page {
|
.login-page {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
|
width: 100vw;
|
||||||
padding: var(--space-4);
|
padding: var(--space-4);
|
||||||
background-color: var(--color-bg);
|
background-color: var(--color-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hero-Bereich über dem Login-Formular */
|
||||||
|
.login-hero {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: var(--space-8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-hero__title {
|
||||||
|
font-size: clamp(2rem, 5vw, 3rem);
|
||||||
|
font-weight: var(--font-weight-bold);
|
||||||
|
color: var(--color-accent);
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
margin-bottom: var(--space-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-hero__tagline {
|
||||||
|
font-size: var(--text-base);
|
||||||
|
color: var(--color-text-secondary);
|
||||||
|
max-width: 360px;
|
||||||
|
line-height: var(--line-height-relaxed, 1.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Login-Karte */
|
||||||
.login-card {
|
.login-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 380px;
|
max-width: 380px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card__title {
|
|
||||||
font-size: var(--text-3xl);
|
|
||||||
font-weight: var(--font-weight-bold);
|
|
||||||
color: var(--color-accent);
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: var(--space-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-card__subtitle {
|
|
||||||
font-size: var(--text-base);
|
|
||||||
color: var(--color-text-secondary);
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: var(--space-8);
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-form__submit {
|
.login-form__submit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: var(--space-2);
|
margin-top: var(--space-2);
|
||||||
|
|||||||
Reference in New Issue
Block a user