generated from HackYourFutureBelgium/template-html-css
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
214 lines (202 loc) · 6.79 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
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0,viewport-fit=cover"
/>
<title>Food Website</title>
<link rel="stylesheet" href="/styles/index.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
</head>
<body>
<!-- desktop view -->
<div class="container" id="container">
<div id="menu">
<div class="title">
<img src="/images/foodie hunter.png" alt="" />
</div>
<div class="menu-item">
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Your Orders</a>
<a href="#">Wishlists</a>
<a href="#">Cart</a>
<a href="#">Contact</a>
<a href="#">Checkout</a>
</div>
</div>
<div id="food-container">
<div id="header">
<div class="add-box">
<i class="fa fa-map-marker your-address" id="add-address">
Your Address</i
>
</div>
<div class="util">
<i class="fa fa-search"> Search</i>
<i class="fa fa-tags"> Offers</i>
<i class="fa fa-cart-plus" id="cart-plus"> 0 Items</i>
</div>
</div>
<div id="food-items" class="d-food-items">
<div id="biryani" class="d-biryani">
<p id="category-name">Biryani</p>
</div>
<div id="chicken" class="d-chicken">
<p id="category-name">Chicken Delicious</p>
</div>
<div id="paneer" class="d-paneer">
<p id="category-name">Paneer Mania</p>
</div>
<div id="vegetable" class="d-vegetable">
<p id="category-name">Pure Veg Dishes</p>
</div>
<div id="chinese" class="d-chinese">
<p id="category-name">Chinese Corner</p>
</div>
<div id="south-indian" class="d-south-indian">
<p id="category-name">South Indian</p>
</div>
</div>
<div id="cart-page" class="cart-toggle">
<p id="cart-title">Cart Items</p>
<p id="m-total-amount">Total Amout : 100</p>
<table>
<thead>
<td>Item</td>
<td>Name</td>
<td>Quantity</td>
<td>Price</td>
</thead>
<tbody id="table-body"></tbody>
</table>
<div class="btn-box">
<button class="cart-btn">Checkout</button>
</div>
</div>
</div>
<div id="cart">
<div class="taste-header">
<div class="user">
<i class="fa fa-user-circle" id="circle"> Account</i>
</div>
</div>
<div id="category-list">
<p class="item-menu">Go For Hunt</p>
<div class="border"></div>
</div>
<div id="checkout" class="cart-toggle">
<p id="total-item">Total Item : 5</p>
<p id="total-price"></p>
<p id="delievery">Free delievery on $ 40</p>
<button class="cart-btn">Checkout</button>
</div>
</div>
</div>
<!-- mobile view -->
<div id="mobile-view" class="mobile-view">
<div class="mobile-top">
<div class="logo-box">
<img src="/images/foodielogo.png" alt="" id="logo" />
<i class="fa fa-map-marker your-address" id="m-add-address">
Your Address</i
>
</div>
<div class="top-menu">
<i class="fa fa-search"></i>
<i class="fa fa-tag"></i>
<i class="fa fa-heart-o"></i>
<i class="fa fa-cart-plus" id="m-cart-plus"> 0</i>
</div>
</div>
<div class="item-container">
<div class="category-header" id="category-header"></div>
<div id="food-items" class="food-items">
<div id="biryani" class="m-biryani">
<p id="category-name">Biryani</p>
</div>
<div id="chicken" class="m-chicken">
<p id="category-name">Chicken Delicious</p>
</div>
<div id="paneer" class="m-paneer">
<p id="category-name">Paneer Mania</p>
</div>
<div id="vegetable" class="m-vegetable">
<p id="category-name">Pure Veg Dishes</p>
</div>
<div id="chinese" class="m-chinese">
<p id="category-name">Chinese Corner</p>
</div>
<div id="south-indian" class="m-south-indian">
<p id="category-name">National food</p>
</div>
</div>
</div>
<div class="mobile-footer">
<p>Home</p>
<p>Cart</p>
<p>offers</p>
<p>orders</p>
</div>
</div>
<script src="/index.js" type="module"></script>
<!-- Code injected by live-server -->
<script>
// <![CDATA[ <-- For SVG support
if ("WebSocket" in window) {
(function () {
function refreshCSS() {
var sheets = [].slice.call(document.getElementsByTagName("link"));
var head = document.getElementsByTagName("head")[0];
for (var i = 0; i < sheets.length; ++i) {
var elem = sheets[i];
var parent = elem.parentElement || head;
parent.removeChild(elem);
var rel = elem.rel;
if (
(elem.href && typeof rel != "string") ||
rel.length == 0 ||
rel.toLowerCase() == "stylesheet"
) {
var url = elem.href.replace(/(&|\?)_cacheOverride=\d+/, "");
elem.href =
url +
(url.indexOf("?") >= 0 ? "&" : "?") +
"_cacheOverride=" +
new Date().valueOf();
}
parent.appendChild(elem);
}
}
var protocol =
window.location.protocol === "http:" ? "ws://" : "wss://";
var address =
protocol + window.location.host + window.location.pathname + "/ws";
var socket = new WebSocket(address);
socket.onmessage = function (msg) {
if (msg.data == "reload") window.location.reload();
else if (msg.data == "refreshcss") refreshCSS();
};
if (
sessionStorage &&
!sessionStorage.getItem("IsThisFirstTime_Log_From_LiveServer")
) {
console.log("Live reload enabled.");
sessionStorage.setItem("IsThisFirstTime_Log_From_LiveServer", true);
}
})();
} else {
console.error(
"Upgrade your browser. This Browser is NOT supported WebSocket for Live-Reloading."
);
}
// ]]>
</script>
</body>
</html>