Gestalte den Mitgliederbereich nach Brand-UI-Kit 14 neu
Eine Navigation (Meine Bibliothek, Programme, Meine Lizenzen, Konto-Menü) mit der freigegebenen Wortmarke, Startseite ohne erfundene Inhalte, Bibliothek mit Inhaltsart-Filter und einer Karte je Medienidentität („Verwendet in“), Programm-/Moduldetail, Film und Material im Zusammenhang mit Begleitmaterial und Weg zurück, Lizenzübersicht mit Detailseite je Berechtigung. Alle Größen aus der Größenskala (ADR-44, neues Token --card-min). Tests bewusst angepasst: Der Film spielt auf der Kontextseite statt eingebettet im Programm, Download-Links tragen ein Symbol, der Platzhalter ist ein dekoratives Element, die Wortmarke ist das freigegebene Logo. Die Vorschau der Bibliothekskarte in der Verwaltung nutzt dieselbe Komponente. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f070fbab2
commit
2e6260acca
41 files changed
+3742
-1093
No files matched your search
@@ -1,121 +1,130 @@
|
||||
@extends('layouts.member')
|
||||
|
||||
@section('title', match ($sicht) {
|
||||
'programme' => 'Programme',
|
||||
'module' => 'Module',
|
||||
default => 'Bibliothek',
|
||||
})
|
||||
@php
|
||||
$heading = match ($art) {
|
||||
'programm' => 'Programme',
|
||||
'modul' => 'Module',
|
||||
'film' => 'Filme',
|
||||
'material' => 'Materialien',
|
||||
default => 'Meine Bibliothek',
|
||||
};
|
||||
$keep = array_filter(['q' => $query, 'sortierung' => $sortierung === 'titel' ? 'titel' : null, 'nutzung' => $nutzung ?: null, 'saeule' => $saeuleIds ?: null, 'dimension' => $dimensionIds ?: null]);
|
||||
@endphp
|
||||
|
||||
@section('title', $heading)
|
||||
@section('nav', $art === 'programm' ? 'programme' : 'bibliothek')
|
||||
|
||||
{{--
|
||||
Bibliothek (Kit 14, Entwurf 02): Suche, Inhaltsart, Filter aus gepflegten Fachdimensionen, Karten.
|
||||
Filter und Zahlen stammen aus den vorhandenen Daten (Säulen, Dimensionen, Berechtigungen); nichts ist festcodiert.
|
||||
Ein Medium erscheint einmal, auch wenn es in mehreren Programmen steckt (Fachkonzept §6, Regel zur Mehrfachverwendung).
|
||||
--}}
|
||||
@section('content')
|
||||
<header class="member-intro">
|
||||
<p class="flag">Für die Kursstunde</p>
|
||||
<h1>{{ match ($sicht) {
|
||||
'programme' => 'Programme',
|
||||
'module' => 'Module',
|
||||
default => 'Bibliothek',
|
||||
} }}</h1>
|
||||
<p class="lede">Suchen Sie ein Programm, ein Modul oder ein einzelnes Material und öffnen Sie, was Ihre Lizenz enthält.</p>
|
||||
</header>
|
||||
<x-member.hero :title="$heading">
|
||||
Alle freigeschalteten Inhalte an einem Ort: suchen, filtern und direkt nutzen.
|
||||
</x-member.hero>
|
||||
|
||||
<form class="finder" method="get" action="{{ $sicht === 'programme' ? route('member.programs') : ($sicht === 'module' ? route('member.modules') : route('member.library')) }}">
|
||||
<label class="finder-query" for="q">Suche</label>
|
||||
<input id="q" name="q" type="search" value="{{ $query ?? '' }}" placeholder="Titel oder Kurzbeschreibung">
|
||||
@if ($filterPillars->isNotEmpty())
|
||||
<fieldset>
|
||||
<legend>Fachliche Säulen</legend>
|
||||
@foreach ($filterPillars as $pillar)
|
||||
<label class="check">
|
||||
<input type="checkbox" name="saeule[]" value="{{ $pillar->id }}" @checked(in_array($pillar->id, $saeuleIds, true))>
|
||||
<span>{{ $pillar->name }}</span>
|
||||
</label>
|
||||
<form class="mb-finder" method="get" action="{{ route('member.library') }}" role="search">
|
||||
@if ($art !== '')
|
||||
<input type="hidden" name="art" value="{{ $art }}">
|
||||
@endif
|
||||
<div class="mb-search">
|
||||
<label class="visually-hidden" for="q">Inhalte suchen</label>
|
||||
<x-heroicon-o-magnifying-glass aria-hidden="true" />
|
||||
<input id="q" name="q" type="search" value="{{ $query }}" placeholder="Inhalte suchen …" autocomplete="off">
|
||||
<button class="button" type="submit">Suchen</button>
|
||||
</div>
|
||||
|
||||
<details class="mb-filter" @if ($filterCount > 0) open @endif>
|
||||
<summary>
|
||||
<x-heroicon-o-funnel aria-hidden="true" />
|
||||
<span>Filter</span>
|
||||
@if ($filterCount > 0)
|
||||
<span class="mb-filter-count" aria-label="{{ $filterCount }} aktiv">{{ $filterCount }}</span>
|
||||
@endif
|
||||
</summary>
|
||||
<div class="mb-filter-body">
|
||||
@if ($filterPillars->isNotEmpty())
|
||||
<fieldset>
|
||||
<legend>Fachliche Säulen</legend>
|
||||
@foreach ($filterPillars as $pillar)
|
||||
<label class="mb-check">
|
||||
<input type="checkbox" name="saeule[]" value="{{ $pillar->id }}" @checked(in_array($pillar->id, $saeuleIds, true))>
|
||||
<span>{{ $pillar->name }}</span>
|
||||
</label>
|
||||
@endforeach
|
||||
</fieldset>
|
||||
@endif
|
||||
@foreach ($filterDimensions as $dimension)
|
||||
<fieldset>
|
||||
<legend>{{ $dimension->label }}</legend>
|
||||
@foreach ($dimension->values as $value)
|
||||
<label class="mb-check">
|
||||
<input type="checkbox" name="dimension[]" value="{{ $value->id }}" @checked(in_array($value->id, $dimensionIds, true))>
|
||||
<span>{{ $value->label }}</span>
|
||||
</label>
|
||||
@endforeach
|
||||
</fieldset>
|
||||
@endforeach
|
||||
</fieldset>
|
||||
@endif
|
||||
@if ($filterDimensions->isNotEmpty())
|
||||
@foreach ($filterDimensions as $dimension)
|
||||
<fieldset>
|
||||
<legend>{{ $dimension->label }}</legend>
|
||||
@foreach ($dimension->values as $value)
|
||||
<label class="check">
|
||||
<input type="checkbox" name="dimension[]" value="{{ $value->id }}" @checked(in_array($value->id, $dimensionIds, true))>
|
||||
<span>{{ $value->label }}</span>
|
||||
</label>
|
||||
@endforeach
|
||||
<legend>Verfügbarkeit</legend>
|
||||
<label class="mb-check"><input type="radio" name="nutzung" value="" @checked($nutzung === '')> <span>Alle</span></label>
|
||||
<label class="mb-check"><input type="radio" name="nutzung" value="nutzbar" @checked($nutzung === 'nutzbar')> <span>Verfügbar</span></label>
|
||||
<label class="mb-check"><input type="radio" name="nutzung" value="teilweise" @checked($nutzung === 'teilweise')> <span>Teilweise verfügbar</span></label>
|
||||
</fieldset>
|
||||
@endforeach
|
||||
@endif
|
||||
<fieldset>
|
||||
<legend>Verfügbarkeit</legend>
|
||||
<label class="check"><input type="radio" name="nutzung" value="" @checked(($nutzung ?? '') === '')> <span>Alle</span></label>
|
||||
<label class="check"><input type="radio" name="nutzung" value="nutzbar" @checked(($nutzung ?? '') === 'nutzbar')> <span>Nutzbar</span></label>
|
||||
<label class="check"><input type="radio" name="nutzung" value="teilweise" @checked(($nutzung ?? '') === 'teilweise')> <span>Teilweise nutzbar</span></label>
|
||||
</fieldset>
|
||||
<div class="finder-actions">
|
||||
<button class="button" type="submit">Filter anwenden</button>
|
||||
<a class="button button-quiet" href="{{ $sicht === 'programme' ? route('member.programs') : ($sicht === 'module' ? route('member.modules') : route('member.library')) }}">Zurücksetzen</a>
|
||||
<div class="mb-filter-apply">
|
||||
<button class="button" type="submit">Filter anwenden</button>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<div class="mb-toolbar">
|
||||
<nav class="mb-chips" aria-label="Inhaltsart">
|
||||
<a class="mb-chip" href="{{ route('member.library', $keep) }}" @if ($art === '') aria-current="true" @endif>Alle ({{ $allCount }})</a>
|
||||
@foreach ($types as $type => $label)
|
||||
<a class="mb-chip" href="{{ route('member.library', $keep + ['art' => $type]) }}" @if ($art === $type) aria-current="true" @endif>{{ $label }} ({{ $counts[$type] }})</a>
|
||||
@endforeach
|
||||
</nav>
|
||||
<label class="mb-sort">
|
||||
<span>Sortierung</span>
|
||||
<select name="sortierung" data-submit-on-change>
|
||||
<option value="standard" @selected($sortierung === 'standard')>Reihenfolge der Lizenzen</option>
|
||||
<option value="titel" @selected($sortierung === 'titel')>Titel A–Z</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@php
|
||||
$showPrograms = $sicht !== 'module';
|
||||
$showModules = $sicht !== 'programme';
|
||||
$showMaterials = $sicht === null;
|
||||
$visible = ($showPrograms ? count($programs) : 0) + ($showModules ? count($modules) : 0) + ($showMaterials ? count($materials) : 0);
|
||||
@endphp
|
||||
<p class="mb-count" role="status" aria-live="polite">
|
||||
{{ $total }} {{ $total === 1 ? 'Ergebnis' : 'Ergebnisse' }}
|
||||
@if ($filterActive)
|
||||
<a class="mb-reset" href="{{ route('member.library') }}"><x-heroicon-o-x-mark aria-hidden="true" /> Zurücksetzen</a>
|
||||
@endif
|
||||
</p>
|
||||
|
||||
@if ($visible === 0)
|
||||
<div class="empty">
|
||||
@if ($libraryEmpty && ($query ?? '') === '' && ($nutzung ?? '') === '' && $dimensionIds === [] && $saeuleIds === [])
|
||||
@if ($total === 0)
|
||||
<div class="empty mb-empty">
|
||||
@if ($libraryEmpty)
|
||||
<h2>Noch nichts in der Bibliothek</h2>
|
||||
<p>Unter Angebote können Sie ein kostenloses Material abrufen oder ein Angebot im Testmodus kaufen.</p>
|
||||
<p><a class="button" href="{{ route('member.offers') }}">Zu den Angeboten</a></p>
|
||||
<p>Unter Angebote kannst du ein kostenloses Material abrufen oder ein Angebot im Testmodus kaufen.</p>
|
||||
@else
|
||||
<h2>Keine Treffer</h2>
|
||||
<p>Für diese Suche oder Filterkombination liegt nichts in Ihrer Bibliothek. Setzen Sie die Filter zurück oder sehen Sie die Angebote an.</p>
|
||||
<p><a class="button" href="{{ route('member.offers') }}">Zu den Angeboten</a></p>
|
||||
<p>Für diese Suche oder Filterkombination liegt nichts in deiner Bibliothek. Setze die Filter zurück oder sieh dir die Angebote an.</p>
|
||||
@endif
|
||||
<p><a class="button" href="{{ route('member.offers') }}">Zu den Angeboten</a></p>
|
||||
</div>
|
||||
@else
|
||||
@if ($showPrograms && $programs !== [])
|
||||
<section>
|
||||
<h2>Programme</h2>
|
||||
<div class="card-grid">
|
||||
@foreach ($programs as $program)
|
||||
@include('member.partials.card', [
|
||||
'href' => route('member.program', $program['composition']),
|
||||
'card' => $program + [
|
||||
'error' => $program['composition']->thumbnail_error,
|
||||
],
|
||||
])
|
||||
@foreach ($shelves as $type => $shelf)
|
||||
<section class="mb-section" aria-labelledby="regal-{{ $type }}">
|
||||
<div class="mb-section-head">
|
||||
<h2 id="regal-{{ $type }}">{{ $shelf['label'] }} <span class="mb-section-count">({{ count($shelf['cards']) }})</span></h2>
|
||||
</div>
|
||||
<div class="mb-grid">
|
||||
@foreach ($shelf['cards'] as $card)
|
||||
<x-member.card :card="$card" />
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@if ($showModules && $modules !== [])
|
||||
<section>
|
||||
<h2>Module</h2>
|
||||
<div class="card-grid">
|
||||
@foreach ($modules as $module)
|
||||
@include('member.partials.card', [
|
||||
'href' => route('member.program', $module['composition']),
|
||||
'card' => $module + ['error' => $module['composition']->thumbnail_error],
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@if ($showMaterials && $materials !== [])
|
||||
<section>
|
||||
<h2>Materialien</h2>
|
||||
<div class="card-grid">
|
||||
@foreach ($materials as $material)
|
||||
@include('member.partials.card', [
|
||||
'href' => route('member.article', $material['article']),
|
||||
'card' => $material,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@endsection
|
||||
Reference in new issue
Block a user