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,64 +1,111 @@
|
||||
@extends('layouts.member')
|
||||
|
||||
@section('title', $title)
|
||||
@section('nav', $is_module ? 'bibliothek' : 'programme')
|
||||
|
||||
{{--
|
||||
Programm- und Moduldetail (Kit 14, Entwurf 02). Kopf mit Bild und Kennzahlen, danach Überblick, Aufbau und Einsatz.
|
||||
Abschnitte erscheinen nur, wenn die Fassung die Angabe enthält. Es gibt keinen Kursplayer und keinen „Programm starten“-Knopf:
|
||||
Der Trainer wird nicht in eine feste Reihenfolge gezwungen (Fachkonzept §9).
|
||||
--}}
|
||||
@section('content')
|
||||
<p class="crumb"><a href="{{ route('member.library') }}">Bibliothek</a></p>
|
||||
<header class="member-intro">
|
||||
@if ($kind)
|
||||
<p class="flag">{{ $kind }}</p>
|
||||
@endif
|
||||
<h1>{{ $title }}</h1>
|
||||
@if (filled($summary ?? null))
|
||||
<p class="lede">{{ $summary }}</p>
|
||||
@endif
|
||||
@if (filled($composition->description))
|
||||
<p>{{ $composition->description }}</p>
|
||||
@endif
|
||||
</header>
|
||||
<dl class="facts">
|
||||
<div>
|
||||
<dt>Nutzbarkeit</dt>
|
||||
<dd class="state state-{{ $coverage }}">{{ match ($coverage) {
|
||||
'nutzbar' => 'Nutzbar',
|
||||
'teilweise' => 'Teilweise nutzbar',
|
||||
default => 'Nicht enthalten',
|
||||
} }}</dd>
|
||||
</div>
|
||||
@if ($duration_minutes)
|
||||
<div>
|
||||
<dt>Zeit</dt>
|
||||
<dd>{{ $duration_minutes }} Minuten</dd>
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
<dt>Vorschaubild</dt>
|
||||
<dd>
|
||||
@if ($picture)
|
||||
<img src="{{ route('member.thumbnail', ['kind' => $picture['kind'], 'subject' => $picture['subject']]) }}" alt="{{ $picture['alt'] ?: 'Vorschaubild' }}">
|
||||
@else
|
||||
Platzhalter
|
||||
@endif
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
@if (filled($composition->thumbnail_error))
|
||||
<p class="state state-hinweis">{{ $composition->thumbnail_error }}</p>
|
||||
@endif
|
||||
@if (filled($learning_goal) || $duration_minutes || filled($material_note))
|
||||
<section class="didactic">
|
||||
@if (filled($learning_goal))
|
||||
<h2>Lernziel</h2>
|
||||
<p>{{ $learning_goal }}</p>
|
||||
@php
|
||||
$hasOverview = filled($description) || filled($learning_goal);
|
||||
$hasUse = filled($material_note);
|
||||
$facts = [];
|
||||
if ($module_count > 0) {
|
||||
$facts[] = ['icon' => 'rectangle-stack', 'text' => $module_count.' '.($module_count === 1 ? 'Modul' : 'Module')];
|
||||
}
|
||||
if ($film_count > 0) {
|
||||
$facts[] = ['icon' => 'play-circle', 'text' => $film_count.' '.($film_count === 1 ? 'Film' : 'Filme')];
|
||||
}
|
||||
if ($material_count > 0) {
|
||||
$facts[] = ['icon' => 'document-text', 'text' => $material_count.' '.($material_count === 1 ? 'Material' : 'Materialien')];
|
||||
}
|
||||
if ($duration_minutes) {
|
||||
$facts[] = ['icon' => 'clock', 'text' => 'ca. '.$duration_minutes.' Min. gesamt'];
|
||||
}
|
||||
@endphp
|
||||
<p class="mb-crumb">
|
||||
<a href="{{ $is_module ? route('member.library', ['art' => 'modul']) : route('member.programs') }}"><x-heroicon-o-arrow-left aria-hidden="true" /> Zur Bibliothek</a>
|
||||
</p>
|
||||
<header class="mb-detail-head">
|
||||
<div class="mb-detail-visual">
|
||||
@if ($picture)
|
||||
<img src="{{ route('member.thumbnail', ['kind' => $picture['kind'], 'subject' => $picture['subject']]) }}" alt="{{ $picture['alt'] ?: '' }}">
|
||||
@else
|
||||
<span class="mb-card-placeholder" aria-hidden="true"><x-dynamic-component :component="'heroicon-o-'.($is_module ? 'rectangle-stack' : 'squares-2x2')" /></span>
|
||||
@endif
|
||||
@if (filled($material_note))
|
||||
<h2>Material</h2>
|
||||
<p>{{ $material_note }}</p>
|
||||
</div>
|
||||
<div class="mb-detail-copy">
|
||||
<x-member.type :type="$is_module ? 'modul' : 'programm'" :label="$kind" />
|
||||
<h1 class="mb-title">{{ $title }} <x-brand.underline class="mb-title-line" /></h1>
|
||||
@if (filled($summary))
|
||||
<p class="mb-lede">{{ $summary }}</p>
|
||||
@endif
|
||||
<ul class="mb-facts">
|
||||
@foreach ($facts as $fact)
|
||||
<li><x-dynamic-component :component="'heroicon-o-'.$fact['icon']" aria-hidden="true" /> {{ $fact['text'] }}</li>
|
||||
@endforeach
|
||||
<li><x-member.status :state="$coverage" /></li>
|
||||
</ul>
|
||||
@if ($coverage === 'teilweise')
|
||||
<p class="mb-note">Deine Berechtigungen decken {{ $open_count }} von {{ $leaf_count }} Teilen ab. Nicht enthaltene Teile bleiben gesperrt und sind unten gekennzeichnet.</p>
|
||||
@elseif ($coverage === 'nicht enthalten')
|
||||
<p class="mb-note">Für dieses {{ $is_module ? 'Modul' : 'Programm' }} liegt keine Berechtigung vor. Du siehst den Aufbau, aber keine Inhalte.</p>
|
||||
@endif
|
||||
@if (filled($composition->thumbnail_error))
|
||||
<p class="mb-note">{{ $composition->thumbnail_error }}</p>
|
||||
@endif
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@if ($hasOverview || $hasUse)
|
||||
<nav class="mb-anchors" aria-label="Auf dieser Seite">
|
||||
@if ($hasOverview)<a href="#ueberblick">Überblick</a>@endif
|
||||
<a href="#aufbau">{{ $is_module ? 'Inhalte' : 'Aufbau' }}</a>
|
||||
@if ($hasUse)<a href="#einsatz">Einsatz & Vorbereitung</a>@endif
|
||||
</nav>
|
||||
@endif
|
||||
|
||||
@if ($hasOverview)
|
||||
<section class="mb-section mb-overview {{ filled($description) && filled($learning_goal) ? '' : 'mb-overview-single' }}" id="ueberblick" aria-label="Überblick">
|
||||
@if (filled($description))
|
||||
<div class="mb-overview-text">
|
||||
<h2 id="ueberblick-titel">Darum geht es</h2>
|
||||
<div class="mb-prose">{!! nl2br(e($description)) !!}</div>
|
||||
</div>
|
||||
@endif
|
||||
@if (filled($learning_goal))
|
||||
<aside class="mb-goal" aria-labelledby="lernziel-titel">
|
||||
<h3 id="lernziel-titel"><x-heroicon-o-check-circle aria-hidden="true" /> Lernziele</h3>
|
||||
<div class="mb-prose">{!! nl2br(e($learning_goal)) !!}</div>
|
||||
</aside>
|
||||
@endif
|
||||
</section>
|
||||
@endif
|
||||
<section id="aufbau">
|
||||
<h2>Aufbau</h2>
|
||||
@include('member.partials.structure', ['nodes' => $nodes])
|
||||
|
||||
<section class="mb-section" id="aufbau" aria-labelledby="aufbau-titel">
|
||||
<div class="mb-section-head">
|
||||
<h2 id="aufbau-titel">{{ $is_module ? 'Inhalte' : 'Aufbau' }}</h2>
|
||||
</div>
|
||||
@if ($nodes === [])
|
||||
<div class="empty mb-empty">
|
||||
<h2>Noch keine Inhalte</h2>
|
||||
<p>In der angezeigten Fassung sind keine Inhalte enthalten.</p>
|
||||
</div>
|
||||
@else
|
||||
@include('member.partials.structure', ['nodes' => $nodes])
|
||||
@endif
|
||||
</section>
|
||||
|
||||
@if ($hasUse)
|
||||
<section class="mb-section" id="einsatz" aria-labelledby="einsatz-titel">
|
||||
<h2 id="einsatz-titel">Einsatz & Vorbereitung</h2>
|
||||
<div class="mb-note-card">
|
||||
<h3>Material</h3>
|
||||
<div class="mb-prose">{!! nl2br(e($material_note)) !!}</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@endsection
|
||||
Reference in new issue
Block a user