Initial commit: Cocina con Alma - Tandoor + public menu stack
This commit is contained in:
163
menu-publico/templates/index.html
Normal file
163
menu-publico/templates/index.html
Normal file
@@ -0,0 +1,163 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Menú Semanal - Cocina con Alma</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: #fdf6f0;
|
||||
color: #4a3b2a;
|
||||
line-height: 1.6;
|
||||
}
|
||||
header {
|
||||
background: #d35400;
|
||||
color: white;
|
||||
padding: 2rem 1rem;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
header h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
|
||||
header p { opacity: 0.95; font-size: 1rem; }
|
||||
.container {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 1.5rem 1rem;
|
||||
}
|
||||
.error {
|
||||
background: #fff3cd;
|
||||
border: 1px solid #ffeaa7;
|
||||
color: #856404;
|
||||
padding: 1.2rem;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 1.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
.day-card {
|
||||
background: white;
|
||||
border-radius: 14px;
|
||||
padding: 1.2rem;
|
||||
margin-bottom: 1.2rem;
|
||||
box-shadow: 0 3px 12px rgba(0,0,0,0.06);
|
||||
border-left: 5px solid #e67e22;
|
||||
}
|
||||
.day-title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: #d35400;
|
||||
margin-bottom: 0.8rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.day-title .date {
|
||||
font-size: 0.85rem;
|
||||
color: #888;
|
||||
font-weight: 500;
|
||||
}
|
||||
.meal {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.7rem 0;
|
||||
border-bottom: 1px solid #f0e6dc;
|
||||
}
|
||||
.meal:last-child { border-bottom: none; }
|
||||
.meal img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
background: #eee;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.meal .placeholder {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 10px;
|
||||
background: #f5e6d3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.meal-info h3 {
|
||||
font-size: 1.05rem;
|
||||
color: #5d4037;
|
||||
margin-bottom: 0.15rem;
|
||||
}
|
||||
.meal-info .tag {
|
||||
display: inline-block;
|
||||
font-size: 0.75rem;
|
||||
background: #fdebd0;
|
||||
color: #a0522d;
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 20px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.empty-day {
|
||||
color: #aaa;
|
||||
font-style: italic;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 2rem 1rem;
|
||||
color: #aaa;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
header h1 { font-size: 1.4rem; }
|
||||
.day-card { padding: 1rem; }
|
||||
.meal img, .meal .placeholder { width: 48px; height: 48px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>🍽️ Menú Semanal</h1>
|
||||
<p>Consultá lo que preparamos esta semana</p>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
{% if error %}
|
||||
<div class="error">
|
||||
⚠️ {{ error }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% for day in days %}
|
||||
<div class="day-card">
|
||||
<div class="day-title">
|
||||
{{ day.nombre_dia }}
|
||||
<span class="date">{{ day.fecha.strftime('%d/%m') }}</span>
|
||||
</div>
|
||||
{% if day.meals %}
|
||||
{% for item in day.meals %}
|
||||
<div class="meal">
|
||||
{% if item.image %}
|
||||
<img src="{{ item.image }}" alt="{{ item.title }}">
|
||||
{% else %}
|
||||
<div class="placeholder">🍲</div>
|
||||
{% endif %}
|
||||
<div class="meal-info">
|
||||
<h3>{{ item.title }}</h3>
|
||||
<span class="tag">{{ item.tipo }}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="empty-day">Sin platos planificados para este día.</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<p>Cocina con Alma • Consultas por WhatsApp o al pasar por el negocio</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user