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,42 +1,63 @@
|
||||
<ol class="course">
|
||||
{{--
|
||||
Geordnete Struktur eines Programms oder Moduls. Jede Einbindung steht an ihrer Stelle, auch wenn dasselbe Medium in
|
||||
einem anderen Programm vorkommt. Verschachtelung bleibt erhalten (Module in Programmen, Medien in Modulen).
|
||||
Aktionen: Film → Kontextseite (Player, Beschreibung, Begleitmaterial); Dokument → Ansehen; Laden nur mit eigenem Recht.
|
||||
Gesperrte Teile zeigen den Grund, aber keine Datei und keine Adresse.
|
||||
--}}
|
||||
<ol class="mb-outline">
|
||||
@foreach ($nodes as $node)
|
||||
<li>
|
||||
<div class="step-head">
|
||||
<p class="flag">{{ $node['role'] }}</p>
|
||||
<h2>{{ $node['role'] }}: @if ($node['program_url'] ?? null)<a href="{{ $node['program_url'] }}">{{ $node['title'] }}</a>@else{{ $node['title'] }}@endif</h2>
|
||||
@if ($node['kind'])
|
||||
<p>{{ match ($node['kind']) {
|
||||
'document' => 'Dokument',
|
||||
'film' => 'Film',
|
||||
'audio' => 'Hörstück',
|
||||
'bild' => 'Bild',
|
||||
default => $node['kind'],
|
||||
} }}</p>
|
||||
@php
|
||||
$isFilm = $node['output_class'] === 'film';
|
||||
$isAudio = $node['output_class'] === 'audio';
|
||||
$isGroup = $node['children'] !== [] || $node['composition_id'] !== null;
|
||||
$type = $isGroup ? 'modul' : ($isFilm ? 'film' : 'material');
|
||||
@endphp
|
||||
<li class="mb-outline-item mb-outline-{{ $type }}">
|
||||
<div class="mb-outline-row">
|
||||
@if (! $isGroup && filled($node['poster_url']))
|
||||
<img class="mb-outline-thumb" src="{{ $node['poster_url'] }}" alt="" loading="lazy">
|
||||
@endif
|
||||
</div>
|
||||
@if ($node['output_class'] === 'film' || $node['output_class'] === 'audio')
|
||||
@if ($node['view_url'])
|
||||
<div class="player">
|
||||
@if ($node['output_class'] === 'audio')
|
||||
<audio controls preload="metadata" src="{{ $node['view_url'] }}"></audio>
|
||||
<div class="mb-outline-main">
|
||||
<p class="mb-outline-meta">
|
||||
<x-member.type :type="$type" :label="$node['kind'] ?: $node['role']" />
|
||||
@if ($node['role'] !== ($node['kind'] ?: $node['role']))
|
||||
<span class="mb-outline-role">Rolle: {{ $node['role'] }}</span>
|
||||
@endif
|
||||
</p>
|
||||
<h3 class="mb-outline-title">
|
||||
@if ($isGroup && $node['program_url'])
|
||||
<a href="{{ $node['program_url'] }}">{{ $node['title'] }}</a>
|
||||
@elseif ($isFilm && $node['view_url'] && $node['content_url'])
|
||||
<a href="{{ $node['content_url'] }}">{{ $node['title'] }}</a>
|
||||
@else
|
||||
@include('content.video', [
|
||||
'playback' => ['mode' => $node['playback'] ?? 'file', 'url' => $node['view_url']],
|
||||
'poster' => $node['poster_url'] ?? null,
|
||||
])
|
||||
<button class="button button-quiet" type="button" data-fullscreen>Vollbild</button>
|
||||
{{ $node['title'] }}
|
||||
@endif
|
||||
</h3>
|
||||
@if (filled($node['summary']))
|
||||
<p class="mb-outline-text">{{ $node['summary'] }}</p>
|
||||
@endif
|
||||
</div>
|
||||
@if (! $isGroup)
|
||||
<div class="mb-outline-actions">
|
||||
@if ($node['view_url'])
|
||||
@if ($isFilm || $isAudio)
|
||||
<a class="button" href="{{ $node['content_url'] }}"><x-heroicon-o-play aria-hidden="true" /> {{ $isAudio ? 'Anhören' : 'Film ansehen' }}</a>
|
||||
@else
|
||||
<a class="button button-secondary" href="{{ $node['view_url'] }}"><x-heroicon-o-eye aria-hidden="true" /> Ansehen</a>
|
||||
@endif
|
||||
@if ($node['download_url'])
|
||||
<a class="button button-secondary" href="{{ $node['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Laden</a>
|
||||
@endif
|
||||
@else
|
||||
<x-member.status state="nicht enthalten" />
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<p class="state state-nicht">Nicht enthalten. Für diesen Film liegt keine Freigabe vor.</p>
|
||||
@endif
|
||||
@elseif ($node['view_url'])
|
||||
<p><a class="button" href="{{ $node['view_url'] }}">Ansehen</a></p>
|
||||
@elseif ($node['children'] === [])
|
||||
<p class="state state-nicht">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
||||
@endif
|
||||
@if ($node['download_url'])
|
||||
<p><a class="button button-quiet" href="{{ $node['download_url'] }}">Laden</a></p>
|
||||
</div>
|
||||
@if (! $isGroup && ! $node['view_url'])
|
||||
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
||||
@elseif ($isGroup && $node['children'] === [])
|
||||
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
||||
@endif
|
||||
@if ($node['children'] !== [])
|
||||
@include('member.partials.structure', ['nodes' => $node['children']])
|
||||
|
||||
Reference in new issue
Block a user