341 lines
9.1 KiB
HTML
341 lines
9.1 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">
|
||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
|
||
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico">
|
||
<link rel="apple-touch-icon" href="/static/apple-touch-icon.png">
|
||
<link rel="stylesheet" href="/static/cookbook.css?v=4.6.5">
|
||
<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-mealplan .portal-icon-box {
|
||
background: #EBF3F8;
|
||
}
|
||
.portal-shuffle .portal-icon-box {
|
||
background: #FDF1E7;
|
||
}
|
||
.portal-shopping .portal-icon-box {
|
||
background: #FFF8D6;
|
||
}
|
||
|
||
.portal-title {
|
||
font-family: var(--font-hand);
|
||
font-size: 2.15rem;
|
||
font-weight: 700;
|
||
color: var(--tannengruen);
|
||
margin: 0;
|
||
line-height: 1.05;
|
||
}
|
||
|
||
.portal-subtitle {
|
||
font-size: 0.90rem;
|
||
color: #666;
|
||
margin: 0;
|
||
line-height: 1.35;
|
||
font-weight: 500;
|
||
max-width: 250px;
|
||
}
|
||
|
||
.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-mealplan .portal-badge {
|
||
background: #E0EBF5;
|
||
color: #1A4D6E;
|
||
}
|
||
.portal-shuffle .portal-badge {
|
||
background: #FDE8D8;
|
||
color: #8A3B14;
|
||
}
|
||
.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 & allen Rezepten">
|
||
<div class="portal-icon-box">📖</div>
|
||
<div>
|
||
<h2 class="portal-title">Kochbuch</h2>
|
||
<p class="portal-subtitle">Rezepte durchstöbern • Suchen • Drucken & PDF</p>
|
||
<span class="portal-badge">📖 {{ recipe_count }} Rezepte</span>
|
||
</div>
|
||
</a>
|
||
|
||
<!-- PORTAL 2: WOCHENMENÜ-PLAN -->
|
||
<a href="/cookbook?open=mealplan" class="portal-card portal-mealplan" title="Zum Wochenmenü-Plan">
|
||
<div class="portal-icon-box">📅</div>
|
||
<div>
|
||
<h2 class="portal-title">Wochenmenü-Plan</h2>
|
||
<p class="portal-subtitle">Mahlzeiten planen • Vorschau • Zutaten exportieren</p>
|
||
<span class="portal-badge">📅 KW {{ current_week }} planen</span>
|
||
</div>
|
||
</a>
|
||
|
||
<!-- PORTAL 3: SHUFFLE-GENERATOR -->
|
||
<a href="/cookbook?open=shuffle" class="portal-card portal-shuffle" title="Zum Shuffle-Generator">
|
||
<div class="portal-icon-box">🎲</div>
|
||
<div>
|
||
<h2 class="portal-title">Shuffle-Generator</h2>
|
||
<p class="portal-subtitle">Zufällige Gerichte würfeln • Vormerken & Kochen</p>
|
||
<span class="portal-badge">🎲 Zufallsauswahl</span>
|
||
</div>
|
||
</a>
|
||
|
||
<!-- PORTAL 4: 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 • Abhaken</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>
|