Files
laraundfelix/resources/views/filament/editorial/preview.blade.php
LarsandCursor 9195cdcd15
Deploy Test / test (push) Successful in 23s
Deploy Test / deploy (push) Successful in 22s
Zeige Katalogkarten, Titelbilder und klare Freigabestatus im Arbeitsplatz.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-16 17:54:12 +01:00

58 lines
2.4 KiB
PHP

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Vorschau: {{ $title }}</title>
<style>
:root { color: #1b2838; font-family: "Source Sans 3", "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.55; }
body { margin: 0; background: #e7eee9; }
main { width: min(46rem, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }
h1, h2 { font-family: Georgia, "Source Serif 4", serif; letter-spacing: -0.02em; }
.banner { background: #fff; border-left: 4px solid #0f6e56; padding: 0.8rem 1rem; }
.flag { display: inline-block; background-image: linear-gradient(#e2b43a, #e2b43a); background-size: 100% 0.4rem; background-repeat: no-repeat; background-position: 0 100%; font-weight: 650; }
a { color: #0f6e56; }
ol { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
li { background: #f7faf8; border: 1px solid #c5d2cb; padding: 0.8rem 1rem; }
.nested { margin-top: 0.8rem; }
:focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }
</style>
</head>
<body>
<main>
<p class="banner" role="status">
@if ($draft ?? false)
Vorschau des gespeicherten Entwurfs. So wäre der Aufbau für Trainer gegliedert. Die Dateien selbst werden hier nicht abgespielt.
@else
Vorschau für die Redaktion, Fassung {{ $number }}. So ist der Aufbau für Trainer gegliedert. Die Dateien selbst werden hier nicht abgespielt.
@endif
</p>
<p><a href="{{ $backUrl }}">Zurück zur Bearbeitung</a></p>
@if ($kind)
<p class="flag">{{ $kind }}</p>
@endif
<h1>{{ $title }}</h1>
@if (filled($summary))
<p>{{ $summary }}</p>
@endif
@if (filled($description ?? null))
<h2>Beschreibung</h2>
<p>{{ $description }}</p>
@endif
@if (filled($learningGoal))
<h2>Lernziel</h2>
<p>{{ $learningGoal }}</p>
@endif
@if ($durationMinutes)
<p>Zeit: {{ $durationMinutes }} Minuten</p>
@endif
@if (filled($materialNote))
<h2>Material</h2>
<p>{{ $materialNote }}</p>
@endif
<h2>Aufbau</h2>
@include('filament.editorial.preview-nodes', ['nodes' => $nodes])
</main>
</body>
</html>