File size: 4,081 Bytes
cfd7e45
6cca62e
cfd7e45
6cca62e
 
cfd7e45
6cca62e
 
 
 
 
 
 
 
 
f915041
6cca62e
 
 
f915041
6cca62e
 
 
 
 
 
 
f915041
6cca62e
 
 
 
 
 
f915041
6cca62e
 
 
 
f915041
6cca62e
 
 
 
f915041
6cca62e
 
 
 
 
f915041
6cca62e
 
 
f915041
6cca62e
 
 
 
 
 
 
 
f915041
6cca62e
 
 
 
 
 
f915041
6cca62e
 
 
 
 
 
 
 
 
f915041
8be1c4c
 
 
 
6cca62e
f915041
8be1c4c
 
 
 
 
 
 
 
 
6cca62e
cfd7e45
 
0fbe1f7
 
 
 
8be1c4c
6cca62e
 
 
 
 
 
8be1c4c
6cca62e
8be1c4c
6cca62e
 
 
 
 
 
 
 
8be1c4c
6cca62e
 
 
8be1c4c
6cca62e
 
 
 
cfd7e45
6cca62e
 
cfd7e45
6cca62e
 
 
 
 
 
 
 
cfd7e45
8be1c4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<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>