forked from JadenFurtado/shopper_spot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
275 lines (273 loc) · 11.5 KB
/
index.php
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shopper's Spot</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="header">
<div class="container">
<div class="navbar">
<div class="logo">
<a href="https://localhost/vfl/cart/"><img src="images/logo.png" width="150px" alt="logo"></a>
</div>
<nav>
<ul id="MenuItems">
<li><a href="https://localhost/vfl/index.php">Home</a></li>
<li><a href="https://localhost/vfl/products/index.php">Products</a></li>
<li><a href="https://localhost/vfl/about.php">About</a></li>
<li><a href="#">Contact</a></li>
<?php
if(isset($_SESSION['user_id'])){//for shops
?>
<li><a href="https://localhost/vfl/profile/?id=<?php echo $_SESSION['user_id'] ?>&user=<?php echo $_SESSION['user_type']?>">Account</a></li>
<?php
}
else if(!(isset($_SESSION['user_id'])||isset($_COOKIE['user']))){
?>
<li><a href="https://localhost/vfl/login/">login</a></li>
<li><a href="https://localhost/vfl/signup/">signup</a></li>
<?php
}
if(isset($_COOKIE['user'])){
?>
<li><a href="https://localhost/vfl/user/">My profile</a></li>
<?php
}
?>
</ul>
</nav>
<a href="https://localhost/vfl/"><img src="images/shopping-cart.png" width="30px" height="30px"></a>
<img src="images/menu_icon.png" class="menu-icon" onclick="menutoggle()">
</div>
<div class="row">
<div class="col-2">
<h1>Welcome to <br> Shopper's Spot!</h1>
<a href="https://localhost/vfl/products/" class="btn">Shop Now ➔</a>
</div>
<div class="col-2">
<img src="images/basket.png" alt="basket">
</div>
</div>
</div>
</div>
<!---------featured categories----------->
<div class="categories">
<div class="small-container">
<div class="row">
<div class="col-3">
<img src="images/fruits-veggies.png" alt="">
<h3>Fruits and Vegetables</h3>
</div>
<div class="col-3">
<img src="images/general-grocery.png" alt="">
<h3>General Groceries</h3>
</div>
<div class="col-3">
<img src="images/dairy.png" alt="">
<h3>Dairy Products</h3>
</div>
<div class="col-3">
<img src="images/personal-care.png" alt="">
<h3>Personal Care</h3>
</div>
<div class="col-3">
<img src="images/apparels.png" alt="">
<h3>Apparels</h3>
</div>
<div class="col-3">
<img src="images/footwear.png" alt="">
<h3>Footwear</h3>
</div>
</div>
</div>
</div>
<!---------featured products----------->
<div class="small-container">
<h2 class="title">Featured Products</h2>
<div class="row">
<div class="col-4">
<img src="images/personal-care-product1.png" alt="">
<h4>650ml Shampoo</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
</div>
<p>Rs.512.00</p>
</div>
<div class="col-4">
<img src="images/lays.jpg" alt="">
<h4>167gm Blue Lays</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o"></i>
</div>
<p>Rs.65.00</p>
</div>
<div class="col-4">
<a href="productdetails.html"><img src="images/red-shoes.png" alt=""></a>
<a href="productdetails.html"></a><h4>Red Running Shoes For Men</h4></a>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
</div>
<p>Rs.800.00</p>
</div>
<div class="col-4">
<img src="images/red-shirt.png" alt="">
<h4>Red Casual shirt for Men</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o"></i>
</div>
<p>Rs.650.00</p>
</div>
</div>
<!---------Daily-use products----------->
<h2 class="title">Daily-Use Products</h2>
<div class="row">
<div class="col-4">
<img src="images/dairy-product1.png" alt="">
<h4>500ml Milk</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o"></i>
</div>
<p>Rs.30.00</p>
</div>
<div class="col-4">
<img src="images/personal-care-product1.png" alt="">
<h4>650ml Shampoo</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
</div>
<p>Rs.512.00</p>
</div>
<div class="col-4">
<img src="images/tomato.png" alt="">
<h4>Local Tomato(1kg)</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
</div>
<p>Rs.40.00</p>
</div>
<div class="row">
<div class="col-4">
<img src="images/oil.png" alt="">
<h4>1L Soyabean Oil</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o"></i>
</div>
<p>Rs.110.00</p>
</div>
</div>
</div>
<!-----offers----->
<div class="offer">
<div class="small-container">
<div class="row">
<div class="col-2">
<img src="images/hoodie.png" class="offer-img">
</div>
<div class="col-2">
<p>Exclusively Available on Shopper's Spot.</p>
<h1>Red Hoodie for Women</h1>
<small>Comfortable Hoodies. Available in all sizes.</small>
<a href="#" class="btn">Buy Now ➔</a>
</div>
</div>
</div>
</div>
<!-----testimonial------>
<div class="testimonial">
<div class="small-container">
<div class="row">
<div class="col-3">
<i class="fa fa-quote-left"></i>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, error voluptates? Voluptatum eius atque nobis modi accusamus minima amet nisi neque?</p>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
</div>
<h3>~Yohan Gupta</h3>
</div>
<div class="col-3">
<i class="fa fa-quote-left"></i>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, error voluptates? Voluptatum eius atque nobis modi accusamus minima amet nisi neque?</p>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
</div>
<h3>~Jaden Furtado</h3>
</div>
<div class="col-3">
<i class="fa fa-quote-left"></i>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, error voluptates? Voluptatum eius atque nobis modi accusamus minima amet nisi neque?</p>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o"></i>
</div>
<h3>~Jash Dharia</h3>
</div>
</div>
</div>
</div>
<!-------js for toggle menu------>
<script>
var MenuItems = document.getElementById("MenuItems");
MenuItems.style.maxHeight = "0px";
function menutoggle(){
if(MenuItems.style.maxHeight == "0px")
{
MenuItems.style.maxHeight = "200px";
}
else
{
MenuItems.style.maxHeight = "0px";
}
}
</script>
</body>
</html>