-
Notifications
You must be signed in to change notification settings - Fork 0
/
CLONE_FLIPKART.html
252 lines (227 loc) · 12.5 KB
/
CLONE_FLIPKART.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
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
<!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">
<link href="flipkart.png" rel="icon" type="image/x-icon" /> <!--for flipkart icon at title-->
<title>Online Shopping Site for Mobiles, Electronics, Furniture, Grocery, Lifestyle, Books & More. Best Offers!</title>
<link rel="stylesheet" href="flipkart.css"> <!--adding css sheet for some css properties-->
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com"> <!--for adding customised font family-->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300&family=Roboto+Slab&display=swap" rel="stylesheet">
</head>
<body>
<header class="border-2 border-red-700 border-solid">
<nav class="bg-[#2874f0] flex flex-col md:flex-row items-center justify-center md:h-14">
<div class="logo justify-center my-[12px] cursor-pointer">
<img class="w-44 md:w-24" src="images/flipkartlogo.png" alt="">
</div>
<ul class="flex justify-center md:justify-start items-center h-[42px] md:h-[58px]">
<li class="list-none px-6 py-6"><a class="text-white font-Lato hover:font-bold text-xl md:text-base" href="home.html">Home</a></li>
<li class="list-none px-6 py-6"><a class="text-white font-Lato hover:font-bold text-xl md:text-base" href="about.html">About</a></li>
<li class="list-none px-6 py-6"><a class="text-white font-Lato hover:font-bold text-xl md:text-base" href="contact.html">Contact</a></li>
</ul>
<div class="searchbar justify-center"> <!--use vw and vh for responsiveness; using these u can make website responsive without using media queries or breakpoints-->
<input class="w-[70vw] md:w-[30vw] h-9 rounded-sm p-4 text-sm font-[500]" type="text" placeholder="Search for products, brands and more">
<button class="bg-white w-[4rem] md:w-[7.5rem] h-7 ml-4 font-[645] text-[#2874f0]">Login</button> <!--setting customised font-weight-->
</div>
</nav>
</header>
<main class="container mx-auto"> <!--bringing container at center from left and right-->
<div class="slider w-[80vw] mx-auto my-[12px] overflow-hidden"> <!--bringing slider inside container at center from left and right and setting its width as required-->
<img src="https://source.unsplash.com/1600x500/?shopping, ecommerce" alt=""> <!--adding dynamic images-->
</div>
<!--**OVERFLOW-SCROLL can be used to make a scroll bar to view overflowing items by scrolling using that scroll bar-->
<div class="card overflow-scroll md:overflow-hidden my-9">
<h2 class="Roboto my-5 font-medium text-2xl md:text-xl">Join the cricket fun</h2>
<div class="cards flex space-x-5">
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?cricket" alt="">
<div class="lines w-40 flex flex-col items-center"> <!--adjusting its width to image width to make text center acc to image-->
<p class="my-1">Cricket Bats</p>
<p class="my-1">Min 20% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?cricket,ball" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Cricket Bats</p>
<p class="my-1">Min 20% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?cricket,bat" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Cricket Bats</p>
<p class="my-1">Min 20% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?cricket,stumps" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Cricket Bats</p>
<p class="my-1">Min 20% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?cricket,keeping" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Cricket Bats</p>
<p class="my-1">Min 20% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?cricket,field" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Cricket Bats</p>
<p class="my-1">Min 20% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?cricket,players" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Cricket Bats</p>
<p class="my-1">Min 20% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
</div>
</div>
<hr>
<div class="card overflow-scroll md:overflow-hidden my-9"> <!--hiding the overflow if any image leaks out of this row-->
<h2 class="Roboto my-5 font-medium text-2xl md:text-xl">Furniture Bestsellers</h2>
<div class="cards flex space-x-5">
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?furniture" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Home Furniture</p>
<p class="my-1">Min 40% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?furniture,home" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Home Furniture</p>
<p class="my-1">Min 40% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?tables,chair" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Home Furniture</p>
<p class="my-1">Min 40% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?antique,furniture" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Home Furniture</p>
<p class="my-1">Min 40% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?furniture,old" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Home Furniture</p>
<p class="my-1">Min 40% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?furniture,trendy" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Home Furniture</p>
<p class="my-1">Min 40% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?furniture,new" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Home Furniture</p>
<p class="my-1">Min 40% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
</div>
</div>
<hr>
<div class="card overflow-scroll md:overflow-hidden my-9">
<h2 class="Roboto my-5 font-medium text-2xl md:text-xl">Best Battery Phones</h2>
<div class="cards flex space-x-5">
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?phone,battery" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Mobile Phones</p>
<p class="my-1">Min 30% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?phone" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Mobile Phones</p>
<p class="my-1">Min 30% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?phone,charging" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Mobile Phones</p>
<p class="my-1">Min 30% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?mobilephones" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Mobile Phones</p>
<p class="my-1">Min 30% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?telephone" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Mobile Phones</p>
<p class="my-1">Min 30% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?samsung, phones" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Mobile Phones</p>
<p class="my-1">Min 30% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
<div class="card-item">
<img src="https://source.unsplash.com/160x160/?iphone" alt="">
<div class="lines w-40 flex flex-col items-center">
<p class="my-1">Mobile Phones</p>
<p class="my-1">Min 30% off</p>
<p class="my-1">Grab Now!</p>
</div>
</div>
</div>
</div>
</main>
<footer class="bg-black text-white h-[12vh] flex justify-center items-center">
<p class="font-Lato text-lg md:text-base">Copyright © MyCart.com</p>
</footer>
</body>
</html>