Spaces:
Sleeping
Sleeping
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Menu</title> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f8f9fa; | |
margin: 0; | |
padding: 0; | |
} | |
.container { | |
max-width: 900px; | |
} | |
.menu-card { | |
max-width: 350px; | |
border-radius: 15px; | |
overflow: hidden; | |
background-color: #fff; | |
margin: auto; | |
} | |
.menu-image { | |
height: 200px; | |
width: 100%; | |
object-fit: cover; | |
border-radius: 15px 15px 0 0; | |
} | |
.card-title { | |
font-size: 1.2rem; | |
font-weight: bold; | |
} | |
.card-text { | |
font-size: 1rem; | |
color: #6c757d; | |
} | |
.btn-primary { | |
font-size: 0.9rem; | |
border-radius: 20px; | |
width: 100px; | |
} | |
.filter-container { | |
margin-bottom: 15px; | |
} | |
.addons-container { | |
max-height: 150px; | |
overflow-y: auto; | |
border: 1px solid #ddd; | |
padding: 10px; | |
background-color: #f8f9fa; | |
border-radius: 5px; | |
} | |
.view-cart-container { | |
position: fixed; | |
bottom: 20px; | |
right: 20px; | |
z-index: 999; | |
} | |
.view-cart-button { | |
background-color: #007bff; | |
color: #fff; | |
padding: 10px 20px; | |
border-radius: 50px; | |
font-size: 1rem; | |
font-weight: bold; | |
text-decoration: none; | |
} | |
.logout-button-container { | |
position: absolute; | |
top: 20px; | |
right: 20px; | |
} | |
.logout-button { | |
padding: 10px 20px; | |
background-color: #f44336; | |
color: white; | |
border: none; | |
border-radius: 5px; | |
font-size: 16px; | |
cursor: pointer; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="logout-button-container"> | |
<form action="{{ url_for('logout') }}" method="POST"> | |
<button type="submit" class="logout-button">Logout</button> | |
</form> | |
</div> | |
<div class="container mt-4"> | |
<h1 class="text-center">Menu</h1> | |
<form method="get" action="/menu" class="text-center mb-4"> | |
<label for="category" class="form-label fw-bold">Filter by Category:</label> | |
<select id="category" name="category" class="form-select" onchange="this.form.submit()"> | |
<option value="All">All</option> | |
{% for category in categories %} | |
<option value="{{ category }}">{{ category }}</option> | |
{% endfor %} | |
</select> | |
</form> | |
<div class="row"> | |
{% for item in food_items %} | |
<div class="col-md-6 mb-4"> | |
<div class="card menu-card"> | |
<img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}"> | |
<div class="card-body"> | |
<h5 class="card-title">{{ item.Name }}</h5> | |
<p class="card-text">${{ item.Price__c }}</p> | |
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#itemModal"> | |
Add + | |
</button> | |
</div> | |
</div> | |
</div> | |
{% endfor %} | |
</div> | |
</div> | |
<div class="view-cart-container"> | |
<a href="/cart" class="view-cart-button"> | |
View Cart | |
</a> | |
</div> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script> | |
</body> | |
</html> | |