Stelle das U0-Fundament mit CMS, Mitgliedern und Filament bereit.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
89b35ac480
commit
2035c46edd
130 files changed
+18519
-50
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 & 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
|
||||
@@ -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
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user