-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
201 lines (191 loc) · 5.64 KB
/
index.html
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Thapar Mess Management</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<header>
<img src="img/logo.png" alt="Thapar Mess Management Logo" style="float:left; width:150px; height: 80px;">
<h1 style="margin-left:35px;" align="center;">Mess Management</p>
</header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#profile">Profile</a></li>
<li><a href="full-mess-menu.html">Full Mess Menu</a></li>
<li><a href="feedback.html">Feedback</a></li>
<li><a href="contacts.html">Contacts</a></li>
</ul>
</nav>
<main>
<section id="Quotations">
<h1>Quote Of The Day</h1>
<p> “To me, it’s sort of funny that wasting food is not taboo. It’s one of the last environmental ills that you can just get away with.” – Jonathan Bloom </h4>
</section>
<section>
<h2>Today's Menu</h2>
<table>
<tr>
<th>Meal</th>
<th>Items</th>
</tr>
<tr>
<td>Breakfast</td>
<td>Paratha, Chole, Salad</td>
</tr>
<tr>
<td>Lunch</td>
<td>Chicken Curry, Rice, Salad</td>
</tr>
<tr>
<td>Dinner</td>
<td>Beef Stir Fry, Noodles, Soup</td>
</tr>
</table>
</section>
<style>
.eat-btn {
background-color: green;
color: white;
padding: 10px 20px;
text-align: center;
margin-bottom: 10px;
}
.not-eat-btn {
background-color: red;
color: white;
padding: 10px 20px;
text-align: center;
}
</style>
<section id="menu">
<h2>Today's Menu</h2>
<div style="display: flex;">
<div style="flex: 1; padding: 10px;">
<p>Breakfast: Aloo Paratha, Curd , Milk</p>
<div>
<button class="eat-btn" id="eat_breakfast" name="meal_choice" value="eat_breakfast">I will Eat Breakfast</button><br>
<button class="not-eat-btn" id="not_eat_breakfast" name="meal_choice" value="not_eat_breakfast">I will Not Eat Breakfast</button><br>
</div>
</div>
<div style="flex: 1; padding: 10px;">
<p>Lunch: Chicken Curry, Rice, Salad</p>
<div>
<button class="eat-btn" id="eat_lunch" name="meal_choice" value="eat_lunch">I will Eat Lunch</button><br>
<button class="not-eat-btn" id="not_eat_lunch" name="meal_choice" value="not_eat_lunch">I will Not Eat Lunch</button><br>
</div>
</div>
<div style="flex: 1; padding: 10px;">
<p>Dinner: Beef Stir Fry, Noodles, Soup</p>
<div>
<button class="eat-btn" id="eat_dinner" name="meal_choice" value="eat_dinner">I will Eat Dinner</button><br>
<button class="not-eat-btn" id="not_eat_dinner" name="meal_choice" value="not_eat_dinner">I will Not Eat Dinner</button><br>
</div>
</div>
</div>
</section>
<section id="schedule">
<h2>Meal Schedule</h2>
<table>
<tr>
<th>Meal</th>
<th>Time</th>
</tr>
<tr>
<td>Breakfast</td>
<td>7:30 AM - 9:00 AM</td>
</tr>
<tr>
<td>Lunch</td>
<td>12:30 PM - 2:00 PM</td>
</tr>
<tr>
<td>Dinner</td>
<td>7:30 PM - 9:00 PM</td>
</tr>
</table>
</section>
</main>
<footer>
<p>Copyright © 2023 Mess Management</p>
</footer>
</body>
</html>
<!-- Responsive Trial -->
<style>
/* Apply styles to all devices */
* {
box-sizing: border-box;
}
/* Add a responsive header */
header {
background-color: maroon;
color: white;
padding: 10px;
text-align: center;
}
/* Add a responsive navigation menu */
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #e29126;
}
nav li {
float: left;
}
nav a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Add a responsive main content area */
main {
padding: 16px;
}
/* Add a responsive section */
section {
padding: 8px;
}
/* Add a responsive table */
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
/* Add a responsive meal schedule table */
#schedule table {
width: 50%;
margin: 0 auto;
}
/* Add a responsive image */
header img {
width: 100%;
height: auto;
}
/* Apply different styles to different screen sizes */
@media only screen and (max-width: 600px) {
/* Change header style */
header h1 {
font-size: 1.5em;
}
/* Change navigation menu style */
nav a {
float: none;
width: 100%;
}
/* Change meal schedule table style */
#schedule table {
width: 100%;
}
}
</style>