This commit is contained in:
2025-08-31 12:12:04 +02:00
parent f6643b712b
commit dbf53a9c30
13 changed files with 906 additions and 0 deletions

29
templates/base.gohtml Normal file
View File

@@ -0,0 +1,29 @@
{{define "base"}}
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>{{block "title" .}}Kücheninventar{{end}}</title>
<link rel="stylesheet" href="/assets/style.css"/>
</head>
<body>
<header class="container">
<h1>🍳 Kücheninventar</h1>
<nav>
<a href="/">Dashboard</a>
<a href="/products">Produkte</a>
<a href="/alerts">Warnungen{{if .Alerts}} ({{.Alerts}}){{end}}</a>
<a href="/shopping-list">Einkaufsliste</a>
</nav>
</header>
<main class="container">
{{template "flash" .}}
{{block "content" .}}{{end}}
</main>
<footer class="container muted">
<p>© {{now | printf "%d"}} Lokale Demo-App (Go + SQLite). Bilder bleiben lokal.</p>
</footer>
</body>
</html>
{{end}}