Spaces:
Sleeping
Sleeping
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Menu - Biryani Hub</title> | |
<style> | |
/* General Body Styling */ | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f8f8f8; | |
margin: 0; | |
padding: 0; | |
} | |
/* Container for the menu */ | |
.menu-container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 20px; | |
background-color: #fff; | |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
border-radius: 8px; | |
margin-top: 50px; | |
} | |
/* Heading Style */ | |
h1 { | |
text-align: center; | |
font-size: 2.5rem; | |
color: #333; | |
margin-bottom: 30px; | |
} | |
/* Menu Item Styles */ | |
.menu-item { | |
border-bottom: 1px solid #eee; | |
padding: 15px 0; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.menu-item:last-child { | |
border-bottom: none; | |
} | |
.menu-item .details { | |
flex-grow: 1; | |
} | |
.menu-item .details h3 { | |
margin: 0; | |
font-size: 1.6rem; | |
color: #333; | |
} | |
.menu-item .details p { | |
margin: 5px 0; | |
color: #666; | |
} | |
.menu-item .details .price { | |
font-weight: bold; | |
color: #e91e63; | |
} | |
/* Order Button Style */ | |
.order-btn { | |
padding: 10px 20px; | |
background-color: #4CAF50; | |
color: white; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
font-size: 1rem; | |
transition: background-color 0.3s ease; | |
} | |
.order-btn:hover { | |
background-color: #45a049; | |
} | |
/* Add space between items */ | |
.menu-item:not(:last-child) { | |
margin-bottom: 20px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="menu-container"> | |
<h1>Welcome to the Menu</h1> | |
{% for item in menu_items %} | |
<div class="menu-item"> | |
<div class="details"> | |
<h3>{{ item.name }}</h3> | |
<p><strong>Ingredients:</strong> {{ item.ingredients }}</p> | |
<p><strong>Category:</strong> {{ item.category }}</p> | |
<p class="price">Price: ${{ item.price }}</p> | |
</div> | |
<button class="order-btn">Order</button> | |
</div> | |
{% endfor %} | |
</div> | |
</body> | |
</html> | |