31f1744730
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
74 lines
3.4 KiB
PHP
74 lines
3.4 KiB
PHP
<?php
|
||
/**
|
||
* Schulbuch — Übersicht aller Kapitel
|
||
* URL: /buch
|
||
* Kapitel entstehen pro Simulation (Pilot: Tourismustal).
|
||
*/
|
||
require_once __DIR__ . '/../php/config/app.php';
|
||
$bp = BASE_PATH;
|
||
|
||
$KAPITEL = [
|
||
['id' => 'tourismustal', 'icon' => '🏔️', 'titel' => 'Ein Tal wird Tourismusregion',
|
||
'sim' => 'Tourismustal', 'status' => 'fertig',
|
||
'themen' => 'Standortfaktoren · Angebot & Nachfrage · Saisonalität · Klimawandel · Zielkonflikte'],
|
||
['id' => 'tourismusregion', 'icon' => '🗺️', 'titel' => 'Besucherströme lenken',
|
||
'sim' => 'Tourismusregion', 'status' => 'geplant',
|
||
'themen' => 'Besucherlenkung · Mobilität · Zielgruppen · Standort am Weg'],
|
||
];
|
||
?>
|
||
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>📖 Schulbuch · GeoGraSim</title>
|
||
<link rel="stylesheet" href="<?= $bp ?>/assets/css/design-system.css">
|
||
<style>
|
||
/* design-system.css sperrt body-Scroll (App-Layout) – Buch braucht Scroll */
|
||
html, body { overflow: auto !important; height: auto !important; }
|
||
body { background: #edeae0; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #2f3e46; }
|
||
.b-wrap { max-width: 880px; margin: 0 auto; padding: 26px 14px 80px; }
|
||
h1 { font-size: 30px; margin: 0 0 4px; }
|
||
.sub { color: #6b6659; margin: 0 0 22px; line-height: 1.55; }
|
||
.kap { display: flex; gap: 16px; align-items: flex-start; background: #fdfbf4; border-radius: 14px;
|
||
box-shadow: 0 4px 18px rgba(47,62,70,.10); padding: 20px 22px; margin-bottom: 14px;
|
||
text-decoration: none; color: inherit; }
|
||
.kap:hover { box-shadow: 0 6px 22px rgba(47,62,70,.18); }
|
||
.kap .ic { font-size: 34px; }
|
||
.kap b { font-size: 18px; display: block; }
|
||
.kap small { color: #6b6659; display: block; margin-top: 3px; line-height: 1.5; }
|
||
.kap .pill { margin-left: auto; align-self: center; font-size: 11px; font-weight: 800;
|
||
border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
|
||
.pill.fertig { background: #dcead1; color: #2f6b46; }
|
||
.pill.geplant { background: #e3ddc9; color: #6b6659; }
|
||
a.back { color: #4f7f5e; font-weight: 600; text-decoration: none; font-size: 14px; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="b-wrap">
|
||
<p><a class="back" href="<?= $bp ?>/simulationen">← Zu den Simulationen</a></p>
|
||
<h1>📖 Das Schulbuch zu den Simulationen</h1>
|
||
<p class="sub">Jede Simulation bekommt ein Kapitel: die Sachinhalte lehrplankonform
|
||
aufbereitet, mit echten Daten, Glossar-Begriffen und Aufgaben — zum Präsentieren
|
||
vor, zwischen oder nach dem Arbeiten mit der Simulation. Jedes Kapitel gibt es
|
||
in einer Schüler:innen-Version und einer Lehrpersonen-Version mit didaktischen
|
||
Hinweisen (Umschalter oben rechts im Kapitel).</p>
|
||
|
||
<?php foreach ($KAPITEL as $k): ?>
|
||
<?php if ($k['status'] === 'fertig'): ?>
|
||
<a class="kap" href="<?= $bp ?>/buch-<?= $k['id'] ?>">
|
||
<?php else: ?>
|
||
<div class="kap" style="opacity:.6">
|
||
<?php endif; ?>
|
||
<span class="ic"><?= $k['icon'] ?></span>
|
||
<span>
|
||
<b><?= $k['titel'] ?></b>
|
||
<small>Zur Simulation „<?= $k['sim'] ?>" · <?= $k['themen'] ?></small>
|
||
</span>
|
||
<span class="pill <?= $k['status'] ?>"><?= $k['status'] === 'fertig' ? 'Kapitel lesen' : 'in Arbeit' ?></span>
|
||
<?php echo $k['status'] === 'fertig' ? '</a>' : '</div>'; ?>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</body>
|
||
</html>
|