Stelle das U0-Fundament mit CMS, Mitgliedern und Filament bereit.
Deploy Test / test (push) Successful in 2m25s
Deploy Test / deploy (push) Failing after 25s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 08:32:14 +01:00
1 parent 89b35ac480
commit 2035c46edd
130 files changed
+18519 -50

No files matched your search

+331
View File
@@ -0,0 +1,331 @@
@import 'tailwindcss';
@theme {
--font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
--font-serif: 'Source Serif 4', Georgia, serif;
--color-ink: #1b2838;
--color-paper: #e7eee9;
--color-sheet: #f7faf8;
--color-pine: #0f6e56;
--color-line: #c5d2cb;
}
html {
background: var(--color-paper);
color: var(--color-ink);
font-family: var(--font-sans);
font-size: 1.0625rem;
line-height: 1.6;
}
body {
margin: 0;
min-height: 100vh;
}
a {
color: var(--color-pine);
}
a:hover {
text-decoration: none;
}
:focus-visible {
outline: 3px solid #0b5cab;
outline-offset: 3px;
}
.skip {
position: absolute;
left: 1rem;
top: -4rem;
background: white;
padding: 0.5rem 0.75rem;
}
.skip:focus {
top: 1rem;
}
.masthead {
background: var(--color-ink);
color: #f4f7f5;
}
.masthead a {
color: inherit;
text-decoration: none;
}
.masthead-inner,
.sheet,
.site-footer-inner {
width: min(72rem, calc(100% - 2rem));
margin-inline: auto;
}
.wordmark {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: baseline;
padding-top: 1.5rem;
}
.wordmark strong {
font-family: var(--font-serif);
font-size: clamp(2rem, 4vw, 3.25rem);
font-weight: 600;
letter-spacing: -0.03em;
line-height: 1;
}
.wordmark span {
font-size: 0.95rem;
}
.site-nav {
display: flex;
flex-wrap: wrap;
gap: 0.35rem 1.1rem;
padding: 1.25rem 0 1.1rem;
border-top: 1px solid rgb(255 255 255 / 18%);
margin-top: 1.25rem;
}
.site-nav a[aria-current='page'] {
text-decoration: underline;
text-underline-offset: 0.35rem;
}
.sheet {
background: var(--color-sheet);
padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
margin-top: -1px;
}
.preview-banner {
background: #fff4d6;
color: #3d2e04;
padding: 0.75rem 1rem;
margin: -1rem -1rem 1.5rem;
}
.block + .block {
margin-top: 2.25rem;
}
main h1 {
font-family: var(--font-serif);
font-weight: 600;
letter-spacing: -0.03em;
line-height: 1.15;
font-size: clamp(2rem, 4vw, 3rem);
margin: 0 0 0.75rem;
}
.block h1,
.block h2 {
font-family: var(--font-serif);
font-weight: 600;
letter-spacing: -0.03em;
line-height: 1.15;
margin: 0 0 0.75rem;
}
.block h1 {
font-size: clamp(2.4rem, 6vw, 4.4rem);
max-width: 12ch;
}
.block h2 {
font-size: clamp(1.8rem, 3vw, 2.6rem);
max-width: 18ch;
}
.lede,
.prose,
.cta p,
.card p,
.faq dd {
max-width: 62ch;
}
.lede {
font-size: 1.25rem;
line-height: 1.45;
margin: 0;
}
.prose p {
margin: 0 0 1rem;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
gap: 1rem;
list-style: none;
padding: 0;
margin: 0;
}
.card {
border-top: 3px solid var(--color-pine);
background: white;
padding: 1rem 1rem 1.15rem;
}
.card h3 {
font-family: var(--font-serif);
font-size: 1.35rem;
margin: 0 0 0.4rem;
}
.card a {
color: inherit;
text-decoration: none;
}
.card a:hover h3 {
text-decoration: underline;
}
.cta {
background: var(--color-ink);
color: #f4f7f5;
padding: 1.5rem;
}
.cta h2,
.cta p {
color: inherit;
}
.cta a {
display: inline-block;
margin-top: 0.8rem;
background: #f4f7f5;
color: var(--color-ink);
text-decoration: none;
padding: 0.55rem 0.9rem;
}
.image-text {
display: grid;
gap: 1.25rem;
}
@media (min-width: 48rem) {
.image-text {
grid-template-columns: minmax(12rem, 16rem) 1fr;
align-items: start;
}
}
.image-text img {
width: 100%;
height: auto;
}
.faq {
margin: 0;
}
.faq dt {
font-weight: 600;
margin-top: 1rem;
}
.faq dd {
margin: 0.25rem 0 0;
}
.member-nav {
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1.25rem;
margin-bottom: 2rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--color-line);
}
.member-nav a {
color: inherit;
text-decoration: none;
}
.member-nav a[aria-current='page'] {
text-decoration: underline;
text-underline-offset: 0.3rem;
}
.empty {
background: white;
border: 1px solid var(--color-line);
padding: 1.25rem;
max-width: 62ch;
}
.form {
display: grid;
gap: 0.9rem;
max-width: 28rem;
}
.form label {
display: grid;
gap: 0.3rem;
font-weight: 600;
}
.form input {
font: inherit;
padding: 0.55rem 0.65rem;
border: 1px solid #8ea399;
background: white;
width: 100%;
box-sizing: border-box;
}
.form button,
.button {
font: inherit;
background: var(--color-pine);
color: white;
border: 0;
padding: 0.6rem 0.9rem;
width: fit-content;
cursor: pointer;
}
.check {
font-weight: 400;
grid-template-columns: auto 1fr;
align-items: start;
}
.errors {
background: #fde8e4;
color: #6d2016;
padding: 0.75rem 1rem;
}
.status {
background: #e5f4ec;
padding: 0.75rem 1rem;
}
.site-footer {
padding: 2rem 0 3rem;
}
.site-footer nav {
display: flex;
gap: 1rem;
}
.site-footer a {
color: inherit;
}
+1
View File
@@ -0,0 +1 @@
//
@@ -0,0 +1,17 @@
@extends('layouts.site')
@section('title', 'Passwort vergessen')
@section('content')
<h1>Passwort zurücksetzen</h1>
<form class="form" method="post" action="{{ route('password.email') }}">
@csrf
<label>E-Mail
<input name="email" type="email" value="{{ old('email') }}" required autocomplete="email">
</label>
@error('email')
<p class="errors">{{ $message }}</p>
@enderror
<button type="submit">Link senden</button>
</form>
@endsection
+29
View File
@@ -0,0 +1,29 @@
@extends('layouts.site')
@section('title', 'Anmelden')
@section('content')
<h1>Anmelden</h1>
@if ($errors->any())
<div class="errors" role="alert">
@foreach ($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach
</div>
@endif
<form class="form" method="post" action="{{ route('login') }}">
@csrf
<label>E-Mail
<input name="email" type="email" value="{{ old('email') }}" required autocomplete="username">
</label>
<label>Passwort
<input name="password" type="password" required autocomplete="current-password">
</label>
<label class="check">
<input type="checkbox" name="remember" value="1">
<span>Angemeldet bleiben</span>
</label>
<button type="submit">Anmelden</button>
</form>
<p><a href="{{ route('password.request') }}">Passwort vergessen</a></p>
@endsection
+35
View File
@@ -0,0 +1,35 @@
@extends('layouts.site')
@section('title', 'Registrieren')
@section('content')
<h1>Registrieren</h1>
<p class="lede">Die Plattform ist für Erwachsene, die Präventionsangebote durchführen. Kinder brauchen kein Konto.</p>
@if ($errors->any())
<div class="errors" role="alert">
@foreach ($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach
</div>
@endif
<form class="form" method="post" action="{{ route('register') }}">
@csrf
<label>Name
<input name="name" value="{{ old('name') }}" required autocomplete="name">
</label>
<label>E-Mail
<input name="email" type="email" value="{{ old('email') }}" required autocomplete="email">
</label>
<label>Passwort
<input name="password" type="password" required autocomplete="new-password">
</label>
<label>Passwort wiederholen
<input name="password_confirmation" type="password" required autocomplete="new-password">
</label>
<label class="check">
<input type="checkbox" name="adult" value="1" @checked(old('adult'))>
<span>Ich bin volljährig und lege das Konto für mich selbst an.</span>
</label>
<button type="submit">Konto anlegen</button>
</form>
@endsection
@@ -0,0 +1,28 @@
@extends('layouts.site')
@section('title', 'Neues Passwort')
@section('content')
<h1>Neues Passwort</h1>
<form class="form" method="post" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<label>E-Mail
<input name="email" type="email" value="{{ old('email', $email) }}" required autocomplete="email">
</label>
<label>Neues Passwort
<input name="password" type="password" required autocomplete="new-password">
</label>
<label>Passwort wiederholen
<input name="password_confirmation" type="password" required autocomplete="new-password">
</label>
@if ($errors->any())
<div class="errors" role="alert">
@foreach ($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach
</div>
@endif
<button type="submit">Passwort speichern</button>
</form>
@endsection
@@ -0,0 +1,12 @@
@extends('layouts.site')
@section('title', 'E-Mail bestätigen')
@section('content')
<h1>E-Mail bestätigen</h1>
<p>Wir haben Ihnen eine Nachricht geschickt. Der Mitgliederbereich öffnet sich, sobald die Adresse bestätigt ist.</p>
<form method="post" action="{{ route('verification.send') }}">
@csrf
<button class="button" type="submit">Nachricht erneut senden</button>
</form>
@endsection
+56
View File
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title', config('app.name'))</title>
@hasSection('description')
<meta name="description" content="@yield('description')">
@endif
@hasSection('canonical')
<link rel="canonical" href="@yield('canonical')">
@endif
@fonts
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body>
<a class="skip" href="#inhalt">Zum Inhalt</a>
<header class="masthead">
<div class="masthead-inner">
<div class="wordmark">
<a href="{{ route('home') }}"><strong>Lara &amp; Felix</strong></a>
<span>Stark im Alltag</span>
</div>
<nav class="site-nav" aria-label="Hauptnavigation">
@foreach (($navigation ?? collect())->where('placement', 'header') as $item)
@if ($item->href())
<a href="{{ $item->href() }}" @if(isset($page) && $item->page_id === $page->id) aria-current="page" @endif>{{ $item->label }}</a>
@endif
@endforeach
@auth
<a href="{{ route('member.dashboard') }}">Mitgliederbereich</a>
@else
<a href="{{ route('register') }}">Registrieren</a>
@endauth
</nav>
</div>
</header>
<main id="inhalt" class="sheet">
@if (session('status'))
<p class="status" role="status">{{ session('status') }}</p>
@endif
@yield('content')
</main>
<footer class="site-footer">
<div class="site-footer-inner">
<nav aria-label="Rechtliches und Service">
@foreach (($navigation ?? collect())->where('placement', 'footer') as $item)
@if ($item->href())
<a href="{{ $item->href() }}">{{ $item->label }}</a>
@endif
@endforeach
</nav>
</div>
</footer>
</body>
</html>
@@ -0,0 +1,9 @@
@extends('layouts.site')
@section('title', 'Mitgliederbereich')
@section('content')
@include('member.partials.nav')
<h1>Guten Tag, {{ auth()->user()->name }}</h1>
<p class="lede">Hier liegen später die Materialien, die eine Berechtigung für Sie freigibt.</p>
@endsection
+11
View File
@@ -0,0 +1,11 @@
@extends('layouts.site')
@section('title', 'Berechtigungen')
@section('content')
@include('member.partials.nav')
<h1>Berechtigungen</h1>
<div class="empty">
<p>Ihnen ist noch keine Lizenz zugeordnet.</p>
</div>
@endsection
+11
View File
@@ -0,0 +1,11 @@
@extends('layouts.site')
@section('title', 'Bibliothek')
@section('content')
@include('member.partials.nav')
<h1>Bibliothek</h1>
<div class="empty">
<p>Ihnen ist noch kein Material zugeordnet. Sobald eine Berechtigung vorliegt, erscheinen die freigegebenen Inhalte hier. Eine Rolle allein öffnet nichts.</p>
</div>
@endsection
@@ -0,0 +1,11 @@
@extends('layouts.site')
@section('title', 'Filme und Materialien')
@section('content')
@include('member.partials.nav')
<h1>Filme und Materialien</h1>
<div class="empty">
<p>Es sind noch keine Filme oder Materialien für Ihr Konto freigegeben.</p>
</div>
@endsection
@@ -0,0 +1,11 @@
<nav class="member-nav" aria-label="Mitgliederbereich">
<a href="{{ route('member.dashboard') }}" @if(request()->routeIs('member.dashboard')) aria-current="page" @endif>Übersicht</a>
<a href="{{ route('member.library') }}" @if(request()->routeIs('member.library')) aria-current="page" @endif>Bibliothek</a>
<a href="{{ route('member.materials') }}" @if(request()->routeIs('member.materials')) aria-current="page" @endif>Filme und Materialien</a>
<a href="{{ route('member.grants') }}" @if(request()->routeIs('member.grants')) aria-current="page" @endif>Berechtigungen</a>
<a href="{{ route('member.profile') }}" @if(request()->routeIs('member.profile')) aria-current="page" @endif>Profil</a>
<form method="post" action="{{ route('logout') }}">
@csrf
<button class="button" type="submit">Abmelden</button>
</form>
</nav>
+19
View File
@@ -0,0 +1,19 @@
@extends('layouts.site')
@section('title', 'Profil')
@section('content')
@include('member.partials.nav')
<h1>Profil</h1>
<p>Ihr Name ist nicht öffentlich.</p>
<form class="form" method="post" action="{{ route('member.profile.update') }}">
@csrf
<label>Name
<input name="name" value="{{ old('name', auth()->user()->name) }}" required autocomplete="name">
</label>
@error('name')
<p class="errors">{{ $message }}</p>
@enderror
<button type="submit">Namen speichern</button>
</form>
@endsection
@@ -0,0 +1,7 @@
<div class="cta">
<h2>{{ $block['heading'] }}</h2>
@if (filled($block['text'] ?? null))
<p>{{ $block['text'] }}</p>
@endif
<a href="{{ $block['url'] }}">{{ $block['label'] }}</a>
</div>
@@ -0,0 +1,19 @@
<ul class="cards">
@foreach ($block['items'] as $item)
<li class="card">
@if (filled($item['url'] ?? null))
<a href="{{ $item['url'] }}">
<h3>{{ $item['title'] }}</h3>
@if (filled($item['text'] ?? null))
<p>{{ $item['text'] }}</p>
@endif
</a>
@else
<h3>{{ $item['title'] }}</h3>
@if (filled($item['text'] ?? null))
<p>{{ $item['text'] }}</p>
@endif
@endif
</li>
@endforeach
</ul>
@@ -0,0 +1,6 @@
<dl class="faq">
@foreach ($block['items'] as $item)
<dt>{{ $item['question'] }}</dt>
<dd>{{ $item['answer'] }}</dd>
@endforeach
</dl>
@@ -0,0 +1,8 @@
@if (! empty($first))
<h1>{{ $block['heading'] }}</h1>
@else
<h2>{{ $block['heading'] }}</h2>
@endif
@if (filled($block['intro'] ?? null))
<p class="lede">{{ $block['intro'] }}</p>
@endif
@@ -0,0 +1,10 @@
<div class="image-text">
@if (filled($block['image'] ?? null))
<img src="{{ route('media.public', ['path' => $block['image']]) }}" alt="{{ $block['alt'] }}">
@endif
<div class="prose">
@foreach (preg_split("/\n\s*\n/", trim($block['body'])) as $paragraph)
<p>{{ $paragraph }}</p>
@endforeach
</div>
</div>
@@ -0,0 +1,5 @@
<div class="prose">
@foreach (preg_split("/\n\s*\n/", trim($block['body'])) as $paragraph)
<p>{{ $paragraph }}</p>
@endforeach
</div>
+16
View File
@@ -0,0 +1,16 @@
@extends('layouts.site')
@section('title', $documentTitle)
@section('description', $documentDescription ?? '')
@section('canonical', $page->publicUrl())
@section('content')
@if ($preview)
<p class="preview-banner" role="status">Vorschau einer unveröffentlichten Revision. Die öffentliche Seite bleibt unverändert.</p>
@endif
@foreach ($revision->blocks as $block)
<section class="block">
@include('public.blocks.'.$block['type'], ['block' => $block, 'first' => $loop->first])
</section>
@endforeach
@endsection
+6
View File
@@ -0,0 +1,6 @@
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@foreach ($pages as $page)
<url><loc>{{ $page->publicUrl() }}</loc></url>
@endforeach
</urlset>