90824894dd
- Migration, model, admin+child controllers, all views - 17 seeded articles: Nomen, Verben, Adjektive, Zeitformen, Satzarten, Wortarten, Ganze Zahlen, Grundrechenarten, Einmaleins, Geometrie, Brüche, Zahlen/Farben/Wochentage/Sätze/Tiere auf Englisch - CSS for .ref-content (h2/h3/p/ul/table + .beispiel/.tipp/.merke blocks) - Child nav + admin sidebar links
35 lines
1.9 KiB
PHP
35 lines
1.9 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||
<title>Lernapp</title>
|
||
@vite(['resources/css/app.css','resources/js/app.js'])
|
||
</head>
|
||
<body class="min-h-screen bg-gradient-to-br from-sky-100 to-indigo-100 font-sans">
|
||
<nav class="bg-white shadow-sm sticky top-0 z-10">
|
||
<div class="max-w-3xl mx-auto px-4 py-3 flex items-center justify-between">
|
||
<a href="{{ route('dashboard') }}" class="flex items-center gap-2 font-bold text-indigo-600 text-lg">
|
||
🎓 Lernapp
|
||
</a>
|
||
<div class="flex items-center gap-4">
|
||
<a href="{{ route('learn.subjects') }}" class="text-sm font-medium text-slate-600 hover:text-indigo-600">Lernen</a>
|
||
<a href="{{ route('rewards.index') }}" class="text-sm font-medium text-slate-600 hover:text-indigo-600">🪙 Belohnungen</a>
|
||
<a href="{{ route('reference.index') }}" class="text-sm font-medium text-slate-600 hover:text-indigo-600">💡 Erinnerung</a>
|
||
<div class="flex items-center gap-1 bg-amber-100 text-amber-700 font-bold rounded-full px-3 py-1 text-sm">
|
||
🪙 {{ auth()->user()->points }}
|
||
</div>
|
||
<form method="POST" action="{{ route('logout') }}">@csrf
|
||
<button class="text-xs text-slate-400 hover:text-slate-600">Abmelden</button>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
<main class="max-w-3xl mx-auto px-4 py-8">
|
||
@if(session('success'))<div class="mb-4 bg-green-100 border border-green-300 text-green-800 rounded-xl px-4 py-3 text-sm font-medium">✅ {{ session('success') }}</div>@endif
|
||
@if(session('error'))<div class="mb-4 bg-red-100 border border-red-300 text-red-800 rounded-xl px-4 py-3 text-sm font-medium">❌ {{ session('error') }}</div>@endif
|
||
@if(session('info'))<div class="mb-4 bg-blue-100 border border-blue-300 text-blue-800 rounded-xl px-4 py-3 text-sm font-medium">ℹ️ {{ session('info') }}</div>@endif
|
||
@yield('content')
|
||
</main>
|
||
</body>
|
||
</html>
|