Behebe Player, Download-Namen und ergänze Profil, Fußzeile und Lizenzhinweis
- app.js: Der Anfangsscan übergab das Dokument, das kein Element ist; HLS-Filme im Quelltext wurden nie angebunden. Vollbild findet sein Video auch neben dem Player. - Download und Ansicht heißen nach dem Anzeigetitel statt „laden.mp4“. - Mitgliederprofil: Name, E-Mail mit Bestätigung der neuen Adresse, Passwort, Rechnungsadresse (ADR-46). - Kleine Fußzeile mit Rechtlichem aus der CMS-Navigation. - Lizenzdetail nennt, dass Einzel-/Mehrfachlizenz nicht festgelegt ist (Funktion gibt es noch nicht). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
433f9aee61
commit
e7efb073da
20 files changed
+879
-49
No files matched your search
@@ -13,9 +13,16 @@
|
||||
*/
|
||||
|
||||
body.member {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--color-surface-subtle);
|
||||
}
|
||||
|
||||
body.member > .mb-main {
|
||||
flex: 1 0 auto;
|
||||
width: min(var(--width-standard), 100% - 2 * var(--gutter));
|
||||
}
|
||||
|
||||
body.member svg {
|
||||
flex: none;
|
||||
}
|
||||
@@ -235,8 +242,8 @@ @media (min-width: 56rem) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mb-main {
|
||||
padding-bottom: var(--space-8);
|
||||
.mb-footer {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,7 +255,48 @@ .mb-main {
|
||||
width: min(var(--width-standard), 100% - 2 * var(--gutter));
|
||||
margin-inline: auto;
|
||||
padding-top: var(--space-5);
|
||||
padding-bottom: calc(var(--touch-target) + var(--space-8));
|
||||
padding-bottom: var(--space-7);
|
||||
}
|
||||
|
||||
/* Kleine Fußzeile: Rechtliches und Kontakt. Unten bleibt Platz für die fest stehende untere Leiste. */
|
||||
.mb-footer {
|
||||
border-top: 1px solid var(--color-border);
|
||||
background: var(--color-surface);
|
||||
padding-bottom: calc(var(--touch-target) + var(--space-5));
|
||||
}
|
||||
|
||||
.mb-footer-inner {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-1) var(--space-5);
|
||||
width: min(var(--width-standard), 100% - 2 * var(--gutter));
|
||||
margin-inline: auto;
|
||||
padding-block: var(--space-3);
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--text-small);
|
||||
}
|
||||
|
||||
.mb-footer-brand {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mb-footer ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0 var(--space-4);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mb-footer a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: var(--touch-target);
|
||||
color: var(--color-heading);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.mb-hero {
|
||||
@@ -1566,3 +1614,40 @@ body.member .state-hinweis {
|
||||
.mb-empty {
|
||||
margin-top: var(--space-5);
|
||||
}
|
||||
|
||||
/* Profil: vier getrennte Blöcke mit eigener Speicherhandlung */
|
||||
.mb-profile {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
@media (min-width: 56rem) {
|
||||
.mb-profile {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.mb-form {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
|
||||
.mb-form .button {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.mb-form-row {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
|
||||
}
|
||||
|
||||
.mb-note p {
|
||||
margin: 0 0 var(--space-2);
|
||||
}
|
||||
|
||||
.mb-note .button {
|
||||
padding-inline: 0;
|
||||
}
|
||||
+5
-2
@@ -35,7 +35,9 @@ function scanPlayback(root) {
|
||||
attachPlayback(root);
|
||||
}
|
||||
|
||||
if (root instanceof Element) {
|
||||
// Der Anfangsscan übergibt das Dokument selbst; es ist kein Element und wurde bisher übersprungen,
|
||||
// sodass im Quelltext stehende HLS-Filme nie angebunden wurden.
|
||||
if (root instanceof Element || root instanceof Document) {
|
||||
root.querySelectorAll('video[data-hls]').forEach(attachPlayback);
|
||||
}
|
||||
}
|
||||
@@ -56,7 +58,8 @@ document.addEventListener('click', (event) => {
|
||||
const fullscreen = event.target.closest('[data-fullscreen]');
|
||||
|
||||
if (fullscreen) {
|
||||
const media = fullscreen.closest('.player')?.querySelector('video, audio');
|
||||
// Der Vollbild-Knopf steht im Player oder, im Mitgliederbereich, neben ihm in derselben Spalte bzw. Zeile.
|
||||
const media = fullscreen.closest('.player, .mb-content-main, .mb-outline-item')?.querySelector('video, audio');
|
||||
|
||||
if (media?.requestFullscreen) {
|
||||
media.requestFullscreen();
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
@php
|
||||
$navigation = \App\Domain\Cms\NavigationItem::query()->visible()->with('page')->orderBy('sort_order')->orderBy('id')->get();
|
||||
$groups = collect(\App\Domain\Cms\SiteNavigation::forPath($navigation, request()->path())->footerGroups());
|
||||
// Rechtliches und Kontakt wie im Fußbereich der Website (Plätze „Fußbereich: Rechtliches“ und „Fußbereich: Kontakt“).
|
||||
$links = $groups->whereIn('key', ['footer_legal', 'footer_contact'])->flatMap(fn (array $group): array => $group['links'])->values();
|
||||
|
||||
// Ist im CMS noch kein Rechtliches-Platz belegt, gelten die veröffentlichten Seiten /impressum und /datenschutz, falls es sie gibt.
|
||||
if (! $groups->contains('key', 'footer_legal')) {
|
||||
$pages = \App\Domain\Cms\Page::query()->whereIn('path', ['/impressum', '/datenschutz'])->whereNotNull('published_revision_id')->get()->keyBy('path');
|
||||
foreach (['/impressum' => 'Impressum', '/datenschutz' => 'Datenschutz'] as $path => $label) {
|
||||
if ($pages->has($path)) {
|
||||
$links->push(['label' => $label, 'href' => $pages[$path]->publicUrl(), 'current' => request()->path() === ltrim($path, '/')]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
{{--
|
||||
Kleine Fußzeile des Mitgliederbereichs: Links zu Impressum, Datenschutz und weiteren Rechtsseiten aus der CMS-Navigation.
|
||||
Keine eigenen Rechtstexte und keine fest codierten Adressen; die Seiten pflegt die Redaktion im CMS.
|
||||
--}}
|
||||
<footer class="mb-footer">
|
||||
<div class="mb-footer-inner">
|
||||
<p class="mb-footer-brand">© {{ now()->year }} Lara & Felix</p>
|
||||
@if ($links->isNotEmpty())
|
||||
<nav aria-label="Rechtliches und Kontakt">
|
||||
<ul>
|
||||
@foreach ($links as $link)
|
||||
<li><a href="{{ $link['href'] }}" @if ($link['current']) aria-current="page" @endif>{{ $link['label'] }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</nav>
|
||||
@endif
|
||||
</div>
|
||||
</footer>
|
||||
@@ -60,6 +60,7 @@
|
||||
@endif
|
||||
@yield('content')
|
||||
</main>
|
||||
<x-member.footer />
|
||||
<nav class="mb-dock" aria-label="Mitgliederbereich, Kurzzugriff">
|
||||
@foreach ($items as $item)
|
||||
<a href="{{ $item['href'] }}" @if ($nav === $item['key']) aria-current="page" @endif>
|
||||
|
||||
@@ -100,6 +100,10 @@
|
||||
<dd>{{ $updates }}</dd>
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
<dt>Einzel- oder Mehrfachlizenz</dt>
|
||||
<dd>Nicht festgelegt. Die Lizenz enthält keine Angabe zur Nutzerzahl; sie gilt für {{ $holder_kind === 'organisation' ? 'die Organisation '.$holder : 'dein Konto' }}.</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Artikel</dt>
|
||||
<dd>{{ $code }}</dd>
|
||||
|
||||
@@ -3,18 +3,111 @@
|
||||
@section('title', 'Profil')
|
||||
@section('nav', 'konto')
|
||||
|
||||
{{--
|
||||
Mitgliederprofil (ADR-46). Vier getrennte Blöcke mit je eigener Speicherhandlung: Name, E-Mail-Adresse, Passwort,
|
||||
Rechnungsadresse. Die neue E-Mail-Adresse gilt erst nach Bestätigung; Adresse und Passwort verlangen das aktuelle Passwort.
|
||||
--}}
|
||||
@section('content')
|
||||
@php
|
||||
$user = auth()->user();
|
||||
$field = fn (string $bag, string $name): ?string => $errors->getBag($bag)->first($name) ?: null;
|
||||
@endphp
|
||||
<x-member.hero kicker="Mein Konto" title="Profil">
|
||||
Dein Name ist nicht öffentlich.
|
||||
Hier pflegst du deine Kontodaten. Dein Name und deine Adresse sind nicht öffentlich.
|
||||
</x-member.hero>
|
||||
<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" role="alert">{{ $message }}</p>
|
||||
@enderror
|
||||
<button class="button" type="submit">Namen speichern</button>
|
||||
</form>
|
||||
|
||||
<div class="mb-profile">
|
||||
<section class="mb-side-card" aria-labelledby="p-name">
|
||||
<h2 id="p-name">Name</h2>
|
||||
<form class="mb-form" method="post" action="{{ route('member.profile.update') }}">
|
||||
@csrf
|
||||
<label class="ui-field">Name
|
||||
<input class="ui-input" name="name" value="{{ old('name', $user->name) }}" required autocomplete="name" @if ($field('name', 'name')) aria-invalid="true" @endif>
|
||||
@if ($field('name', 'name'))<span class="ui-field-error" role="alert">{{ $field('name', 'name') }}</span>@endif
|
||||
</label>
|
||||
<button class="button" type="submit">Namen speichern</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section class="mb-side-card" aria-labelledby="p-email">
|
||||
<h2 id="p-email">E-Mail-Adresse</h2>
|
||||
<p class="mb-muted">Aktuell: <strong>{{ $user->email }}</strong></p>
|
||||
@if (filled($user->pending_email))
|
||||
<div class="mb-note" role="status">
|
||||
<p>Wartet auf Bestätigung: <strong>{{ $user->pending_email }}</strong>. Wir haben einen Link dorthin geschickt. Bis du ihn öffnest, gilt weiter deine bisherige Adresse.</p>
|
||||
<form method="post" action="{{ route('member.profile.email.cancel') }}">
|
||||
@csrf
|
||||
<button class="button button-quiet" type="submit">Änderung verwerfen</button>
|
||||
</form>
|
||||
</div>
|
||||
@endif
|
||||
<form class="mb-form" method="post" action="{{ route('member.profile.email') }}">
|
||||
@csrf
|
||||
<label class="ui-field">Neue E-Mail-Adresse
|
||||
<input class="ui-input" type="email" name="email" value="{{ old('email') }}" required autocomplete="email" @if ($field('email', 'email')) aria-invalid="true" @endif>
|
||||
@if ($field('email', 'email'))<span class="ui-field-error" role="alert">{{ $field('email', 'email') }}</span>@endif
|
||||
</label>
|
||||
<label class="ui-field">Aktuelles Passwort
|
||||
<input class="ui-input" type="password" name="current_password" required autocomplete="current-password" @if ($field('email', 'current_password')) aria-invalid="true" @endif>
|
||||
@if ($field('email', 'current_password'))<span class="ui-field-error" role="alert">{{ $field('email', 'current_password') }}</span>@endif
|
||||
</label>
|
||||
<button class="button" type="submit">Bestätigungslink senden</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section class="mb-side-card" aria-labelledby="p-passwort">
|
||||
<h2 id="p-passwort">Passwort</h2>
|
||||
<form class="mb-form" method="post" action="{{ route('member.profile.password') }}">
|
||||
@csrf
|
||||
<label class="ui-field">Bisheriges Passwort
|
||||
<input class="ui-input" type="password" name="current_password" required autocomplete="current-password" @if ($field('password', 'current_password')) aria-invalid="true" @endif>
|
||||
@if ($field('password', 'current_password'))<span class="ui-field-error" role="alert">{{ $field('password', 'current_password') }}</span>@endif
|
||||
</label>
|
||||
<label class="ui-field">Neues Passwort
|
||||
<input class="ui-input" type="password" name="password" required autocomplete="new-password" @if ($field('password', 'password')) aria-invalid="true" @endif>
|
||||
@if ($field('password', 'password'))<span class="ui-field-error" role="alert">{{ $field('password', 'password') }}</span>@endif
|
||||
</label>
|
||||
<label class="ui-field">Neues Passwort wiederholen
|
||||
<input class="ui-input" type="password" name="password_confirmation" required autocomplete="new-password">
|
||||
</label>
|
||||
<button class="button" type="submit">Passwort ändern</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section class="mb-side-card" aria-labelledby="p-adresse">
|
||||
<h2 id="p-adresse">Rechnungsadresse</h2>
|
||||
<p class="mb-muted">Für Rechnungen zu deinen Lizenzen. Sie gehört zu deinem Konto als Lizenzinhaber.</p>
|
||||
<form class="mb-form" method="post" action="{{ route('member.profile.address') }}">
|
||||
@csrf
|
||||
@foreach ([
|
||||
'recipient' => ['Name oder Firma', 'name', true],
|
||||
'line2' => ['Zusatz (optional)', 'address-line2', false],
|
||||
'street' => ['Straße und Hausnummer', 'street-address', true],
|
||||
] as $name => [$label, $autocomplete, $required])
|
||||
<label class="ui-field">{{ $label }}
|
||||
<input class="ui-input" name="{{ $name }}" value="{{ old($name, $address?->{$name}) }}" @required($required) autocomplete="{{ $autocomplete }}" @if ($field('address', $name)) aria-invalid="true" @endif>
|
||||
@if ($field('address', $name))<span class="ui-field-error" role="alert">{{ $field('address', $name) }}</span>@endif
|
||||
</label>
|
||||
@endforeach
|
||||
<div class="mb-form-row">
|
||||
<label class="ui-field">PLZ
|
||||
<input class="ui-input" name="postal_code" value="{{ old('postal_code', $address?->postal_code) }}" required autocomplete="postal-code" @if ($field('address', 'postal_code')) aria-invalid="true" @endif>
|
||||
@if ($field('address', 'postal_code'))<span class="ui-field-error" role="alert">{{ $field('address', 'postal_code') }}</span>@endif
|
||||
</label>
|
||||
<label class="ui-field">Ort
|
||||
<input class="ui-input" name="city" value="{{ old('city', $address?->city) }}" required autocomplete="address-level2" @if ($field('address', 'city')) aria-invalid="true" @endif>
|
||||
@if ($field('address', 'city'))<span class="ui-field-error" role="alert">{{ $field('address', 'city') }}</span>@endif
|
||||
</label>
|
||||
</div>
|
||||
<label class="ui-field">Land
|
||||
<select class="ui-input" name="country" autocomplete="country">
|
||||
@foreach ($countries as $code => $country)
|
||||
<option value="{{ $code }}" @selected(old('country', $address?->country ?? 'DE') === $code)>{{ $country }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
<button class="button" type="submit">Rechnungsadresse speichern</button>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in new issue
Block a user