307 lines
7.9 KiB
HTML
307 lines
7.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||
<title>What To Cook? – Menü</title>
|
||
<link rel="manifest" href="/manifest.json">
|
||
<meta name="theme-color" content="#1E4D3B">
|
||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||
<meta name="apple-mobile-web-app-title" content="What To Cook?">
|
||
<link rel="apple-touch-icon" href="/static/icon-192.png">
|
||
<link rel="stylesheet" href="/static/cookbook.css?v=4.6.1">
|
||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍽️</text></svg>">
|
||
<style>
|
||
:root {
|
||
--font-hand: 'Caveat', cursive, sans-serif;
|
||
--font-serif: 'Lora', Georgia, serif;
|
||
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||
--tannengruen: #1E4D3B;
|
||
--creme: #FDFBF7;
|
||
--schwarz: #222222;
|
||
--gelb: #FFF9D2;
|
||
}
|
||
|
||
* {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body.home-clean-body {
|
||
margin: 0;
|
||
padding: 0;
|
||
min-height: 100vh;
|
||
min-height: 100dvh;
|
||
background-color: var(--grau-bg, #ebe7e0);
|
||
background-image:
|
||
radial-gradient(circle at 50% 50%, rgba(30, 77, 59, 0.05) 1.5px, transparent 1.5px);
|
||
background-size: 24px 24px;
|
||
font-family: var(--font-sans);
|
||
color: var(--schwarz);
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
position: relative;
|
||
padding: 30px 20px;
|
||
}
|
||
|
||
/* Logout-Button oben rechts */
|
||
.home-top-bar {
|
||
position: absolute;
|
||
top: 18px;
|
||
right: 20px;
|
||
z-index: 10;
|
||
}
|
||
|
||
.home-logout-pill {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 7px 14px;
|
||
background: rgba(255, 255, 255, 0.9);
|
||
border: 1.5px solid rgba(34, 34, 34, 0.25);
|
||
border-radius: 20px;
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
color: #555;
|
||
text-decoration: none;
|
||
transition: all 0.15s ease;
|
||
box-shadow: 2px 2px 0px rgba(0,0,0,0.06);
|
||
}
|
||
.home-logout-pill:hover {
|
||
color: #b00;
|
||
border-color: #b00;
|
||
background: #ffffff;
|
||
transform: translateY(-1px);
|
||
box-shadow: 2px 3px 0px rgba(0,0,0,0.12);
|
||
}
|
||
|
||
/* Zentraler Hub */
|
||
.home-hub {
|
||
width: 100%;
|
||
max-width: 760px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 28px;
|
||
margin: auto 0;
|
||
}
|
||
|
||
.home-header {
|
||
text-align: center;
|
||
}
|
||
|
||
.home-main-title {
|
||
font-family: var(--font-hand);
|
||
font-size: 2.8rem;
|
||
font-weight: 700;
|
||
color: var(--tannengruen);
|
||
margin: 0 0 4px 0;
|
||
line-height: 1;
|
||
}
|
||
|
||
.home-main-subtitle {
|
||
font-size: 1rem;
|
||
color: #666;
|
||
margin: 0;
|
||
font-family: var(--font-serif);
|
||
font-style: italic;
|
||
}
|
||
|
||
/* Das 2-Kachel-Portal */
|
||
.portal-grid {
|
||
width: 100%;
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 24px;
|
||
}
|
||
|
||
.portal-card {
|
||
background: #FFFDF9;
|
||
border: 3px solid var(--schwarz);
|
||
border-radius: 20px;
|
||
padding: 34px 24px;
|
||
text-decoration: none;
|
||
color: var(--schwarz);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
text-align: center;
|
||
gap: 14px;
|
||
box-shadow: 6px 7px 0px var(--schwarz);
|
||
transition: all 0.16s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||
position: relative;
|
||
user-select: none;
|
||
-webkit-tap-highlight-color: transparent;
|
||
}
|
||
|
||
.portal-card:hover {
|
||
transform: translateY(-4px);
|
||
box-shadow: 8px 11px 0px var(--schwarz);
|
||
background: #ffffff;
|
||
}
|
||
|
||
.portal-card:active {
|
||
transform: translate(3px, 4px);
|
||
box-shadow: 2px 2px 0px var(--schwarz);
|
||
}
|
||
|
||
.portal-icon-box {
|
||
width: 82px;
|
||
height: 82px;
|
||
border-radius: 50%;
|
||
border: 2.5px solid var(--schwarz);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 2.7rem;
|
||
box-shadow: 3px 3px 0px rgba(0,0,0,0.12);
|
||
transition: transform 0.2s ease;
|
||
}
|
||
.portal-card:hover .portal-icon-box {
|
||
transform: scale(1.08) rotate(-4deg);
|
||
}
|
||
|
||
.portal-cookbook .portal-icon-box {
|
||
background: #EAF4EE;
|
||
}
|
||
.portal-shopping .portal-icon-box {
|
||
background: #FFF8D6;
|
||
}
|
||
|
||
.portal-title {
|
||
font-family: var(--font-hand);
|
||
font-size: 2.4rem;
|
||
font-weight: 700;
|
||
color: var(--tannengruen);
|
||
margin: 0;
|
||
line-height: 1;
|
||
}
|
||
|
||
.portal-subtitle {
|
||
font-size: 0.92rem;
|
||
color: #666;
|
||
margin: 0;
|
||
line-height: 1.35;
|
||
font-weight: 500;
|
||
max-width: 240px;
|
||
}
|
||
|
||
.portal-badge {
|
||
display: inline-block;
|
||
font-size: 0.82rem;
|
||
font-weight: 700;
|
||
padding: 4px 12px;
|
||
border-radius: 20px;
|
||
border: 1.5px solid var(--schwarz);
|
||
margin-top: 6px;
|
||
box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
|
||
}
|
||
.portal-cookbook .portal-badge {
|
||
background: #E8F2EC;
|
||
color: var(--tannengruen);
|
||
}
|
||
.portal-shopping .portal-badge {
|
||
background: var(--gelb);
|
||
color: #7A5C00;
|
||
}
|
||
|
||
/* Mobile Responsive */
|
||
@media (max-width: 640px) {
|
||
body.home-clean-body {
|
||
padding: 50px 16px 24px 16px;
|
||
justify-content: flex-start;
|
||
}
|
||
.home-main-title {
|
||
font-size: 2.3rem;
|
||
}
|
||
.portal-grid {
|
||
grid-template-columns: 1fr;
|
||
gap: 16px;
|
||
}
|
||
.portal-card {
|
||
padding: 24px 20px;
|
||
border-radius: 16px;
|
||
flex-direction: row;
|
||
text-align: left;
|
||
gap: 18px;
|
||
box-shadow: 4px 5px 0px var(--schwarz);
|
||
}
|
||
.portal-card:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 5px 7px 0px var(--schwarz);
|
||
}
|
||
.portal-card:active {
|
||
transform: translate(2px, 2px);
|
||
box-shadow: 1px 1px 0px var(--schwarz);
|
||
}
|
||
.portal-icon-box {
|
||
width: 68px;
|
||
height: 68px;
|
||
font-size: 2.2rem;
|
||
flex-shrink: 0;
|
||
}
|
||
.portal-title {
|
||
font-size: 1.95rem;
|
||
}
|
||
.portal-subtitle {
|
||
font-size: 0.85rem;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body class="home-clean-body">
|
||
|
||
<!-- Logout-Button oben rechts -->
|
||
<div class="home-top-bar">
|
||
<a href="/logout" class="home-logout-pill" title="Sitzung beenden">
|
||
<span>Abmelden</span>
|
||
<span>🚪</span>
|
||
</a>
|
||
</div>
|
||
|
||
<!-- Zentrale Portale -->
|
||
<main class="home-hub">
|
||
|
||
<div class="home-header">
|
||
<h1 class="home-main-title">What To Cook?</h1>
|
||
<p class="home-main-subtitle">Kochen, Planen & Einkaufen</p>
|
||
</div>
|
||
|
||
<div class="portal-grid">
|
||
|
||
<!-- PORTAL 1: KOCHBUCH -->
|
||
<a href="/cookbook" class="portal-card portal-cookbook" title="Zum Kochbuch & Essensplaner">
|
||
<div class="portal-icon-box">📖</div>
|
||
<div>
|
||
<h2 class="portal-title">Kochbuch</h2>
|
||
<p class="portal-subtitle">Rezepte durchstöbern • Zufallsgenerator • Wochenmenüplan</p>
|
||
<span class="portal-badge">📖 {{ recipe_count }} Rezepte</span>
|
||
</div>
|
||
</a>
|
||
|
||
<!-- PORTAL 2: EINKAUFSLISTE -->
|
||
<a href="/shopping-list" class="portal-card portal-shopping" title="Zur Einkaufsliste">
|
||
<div class="portal-icon-box">🛒</div>
|
||
<div>
|
||
<h2 class="portal-title">Einkaufsliste</h2>
|
||
<p class="portal-subtitle">Supermarkt-Laufweg • Live-Sync • Wochenplan-Import</p>
|
||
<span class="portal-badge">🛒 {{ open_shopping_count }} offene Artikel</span>
|
||
</div>
|
||
</a>
|
||
|
||
</div>
|
||
|
||
</main>
|
||
|
||
<script>
|
||
if ('serviceWorker' in navigator) {
|
||
window.addEventListener('load', () => {
|
||
navigator.serviceWorker.register('/sw.js').catch(err => console.log('SW register fail:', err));
|
||
});
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|