282 lines
7.1 KiB
HTML
282 lines
7.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>GETRÄNKEKARTE</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Space+Grotesk:wght@500;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--bg: #090b10;
|
|
--card-bg: rgba(22, 27, 34, 0.75);
|
|
--card-border: rgba(255, 255, 255, 0.08);
|
|
--primary: #f59e0b;
|
|
--primary-glow: rgba(245, 158, 11, 0.25);
|
|
--accent: #ec4899;
|
|
--accent-glow: rgba(236, 72, 153, 0.25);
|
|
--text: #f8fafc;
|
|
--text-muted: #94a3b8;
|
|
--tag-bg: rgba(245, 158, 11, 0.12);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
|
|
background-color: var(--bg);
|
|
color: var(--text);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 20px 16px 40px;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Ambient Glow */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
top: -100px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 400px;
|
|
height: 400px;
|
|
background: radial-gradient(circle, var(--accent-glow) 0%, var(--primary-glow) 50%, transparent 70%);
|
|
filter: blur(80px);
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
padding: 20px 0 10px;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 14px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 1.5px;
|
|
text-transform: uppercase;
|
|
color: var(--primary);
|
|
margin-bottom: 12px;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
h1 {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.5px;
|
|
background: linear-gradient(135deg, #fff 30%, #cbd5e1 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
header p {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.section-title {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: 1.5px;
|
|
text-transform: uppercase;
|
|
color: var(--primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.section-title::after {
|
|
content: "";
|
|
flex: 1;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, var(--card-border), transparent);
|
|
}
|
|
|
|
.menu-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--card-border);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
backdrop-filter: blur(16px);
|
|
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card:active {
|
|
transform: scale(0.985);
|
|
}
|
|
|
|
.card-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.card-name {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
}
|
|
|
|
.card-price {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
background: rgba(245, 158, 11, 0.1);
|
|
padding: 4px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(245, 158, 11, 0.2);
|
|
}
|
|
|
|
.card-ingredients {
|
|
font-size: 12.5px;
|
|
color: #cbd5e1;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.loading-spinner {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding-top: 16px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
footer a {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
footer a:hover {
|
|
color: var(--primary);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<header>
|
|
<div class="badge">✦ EXKLUSIVE AUSWAHL ✦</div>
|
|
<h1>GETRÄNKEKARTE</h1>
|
|
<p>Frisch zubereitete Drinks, Spezialitäten & Erfrischungen</p>
|
|
</header>
|
|
|
|
<div id="menu-container">
|
|
<div class="loading-spinner">Getränkekarte wird geladen...</div>
|
|
</div>
|
|
|
|
<footer>
|
|
<p>© Bar & Lounge • Live POS Sync</p>
|
|
<p style="margin-top: 6px;"><a href="/admin">⚙️ Admin Bereich</a></p>
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
async function loadMenu() {
|
|
const container = document.getElementById('menu-container');
|
|
try {
|
|
const res = await fetch('/api/menu');
|
|
const data = await res.json();
|
|
|
|
if (!data.categories || data.categories.length === 0) {
|
|
container.innerHTML = `
|
|
<div class="card" style="text-align:center; padding: 30px;">
|
|
<p style="color:var(--text-muted); margin-bottom: 12px;">Noch keine Getränke hinterlegt.</p>
|
|
<a href="/admin" style="color:var(--primary); font-weight:bold; font-size:14px; text-decoration:none;">Zum Admin-Bereich & Sync starten →</a>
|
|
</div>
|
|
`;
|
|
return;
|
|
}
|
|
|
|
let html = '';
|
|
for (const cat of data.categories) {
|
|
html += `
|
|
<section>
|
|
<div class="section-title">${cat.name}</div>
|
|
<div class="menu-grid">
|
|
${cat.items.map(item => `
|
|
<div class="card">
|
|
<div class="card-top">
|
|
<div class="card-name">${escapeHtml(item.text1)}</div>
|
|
<div class="card-price">${parseFloat(item.preis1).toFixed(2).replace('.', ',')} €</div>
|
|
</div>
|
|
${item.text2 ? `<div class="card-ingredients">${escapeHtml(item.text2)}</div>` : ''}
|
|
</div>
|
|
`).join('')}
|
|
</div>
|
|
</section>
|
|
`;
|
|
}
|
|
|
|
container.innerHTML = html;
|
|
} catch (err) {
|
|
container.innerHTML = '<div class="card" style="color:#ef4444; text-align:center;">Fehler beim Laden der Speisekarte.</div>';
|
|
}
|
|
}
|
|
|
|
function escapeHtml(str) {
|
|
if (!str) return '';
|
|
return str.replace(/[&<>'"]/g, tag => ({
|
|
'&': '&',
|
|
'<': '<',
|
|
'>': '>',
|
|
"'": ''',
|
|
'"': '"'
|
|
}[tag] || tag));
|
|
}
|
|
|
|
loadMenu();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|