-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
170 lines (164 loc) · 7.7 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
<!DOCTYPE html>
<html>
<head>
<title>E-Buy | Shop Online</title>
<script src = "https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="bg-slate-800 text-white" style="font-family: Cambria, 'Segoe UI', Geneva, Verdana, sans-serif;">
<!-- This is the top nav-bar. -->
<div class="bg-purple-800 md:text-xl">
<button id="nav" class="md:hidden mt-2 py-2 px-3 ml-5 navbtn">
<img width= "25px" src="img/menu.png">
</button>
<a href="index.html">
<button class="ml-24 md:ml-6 px-3 py-2 navbtn">
Home
</button>
</a>
<a href="books\index.html">
<button class="hidden md:inline-block px-3 py-2 navbtn">
Books
</button>
</a>
<a href="food\index.html">
<button class="hidden md:inline-block px-3 py-2 navbtn">
Foods
</button>
</a>
<a href="bags\index.html">
<button class="hidden md:inline-block px-3 py-2 navbtn">
Bags
</button>
</a>
<a href="mobiles\index.html">
<button class="hidden md:inline-block px-3 py-2 navbtn">
Mobiles
</button>
</a>
<a href="laptops\index.html">
<button class="hidden md:inline-block px-3 py-2 navbtn">
Laptops
</button>
</a>
<a href="shoes\index.html">
<button class="hidden md:inline-block px-3 py-2 navbtn">
Shoes
</button>
</a>
<button class="px-3 py-2 navbtn">
About
</button>
<div class="hidden md:inline-block md:float-right mr-12"><img width= "50px" src="img/shopping-cart.png"></div>
</div>
<!-- This is the nav-bar for mobile screens. Implemented using onclick() event of JS. -->
<div id="menu" class="bg-slate-700 text-right absolute hidden text-xl z-10 rounded-r-md w-7/12" >
<div class="px-3 mt-5 text-center">DEPARTMENTS<hr></div><br>
<div class="text-center">
<a href="./books/index.html">
<button class="w-5/6 py-2 bg-slate-600 rounded-full sidebtns">
Books
</button>
</a>
</div>
<div class="text-center pt-3">
<a href="./food/index.html">
<button class="w-5/6 py-2 bg-slate-600 rounded-full sidebtns">
Foods
</button>
</a>
</div>
<div class="text-center pt-3">
<a href="./bags/index.html">
<button class="w-5/6 py-2 bg-slate-600 rounded-full sidebtns">
Bags
</button>
</a>
</div>
<div class="text-center pt-3">
<a href="./mobiles/index.html">
<button class="w-5/6 py-2 bg-slate-600 rounded-full sidebtns">
Mobiles
</button>
</a>
</div>
<div class="text-center pt-3">
<a href="./laptops/index.html">
<button class="w-5/6 py-2 bg-slate-600 rounded-full sidebtns">
Laptops
</button>
</a>
</div>
<div class="text-center pt-3 pb-5">
<a href="./shoes/index.html">
<button class="w-5/6 py-2 bg-slate-600 rounded-full sidebtns">
Shoes
</button>
</a>
</div>
</div>
<!-- Each of the above buttons is a link to their respective department. -->
<!-- Main logo of the website -->
<div class="grid grid-rows-1 grid-cols-2 px-5 mt-14">
<div><img src="img/shopping-cart.png" width="100px" class="md:mx-20 md:w-3/5"></div>
<div class="py-8 md:py-36 md:text-6xl">
Welcome to E-Buy<hr>
<div class="mt-1 md:text-4xl text-sm text-slate-400">
<!-- Site title -->
e-commerce website
</div>
</div>
</div>
<!-- Division to show the various categories of products using icons -->
<div class="text-center md:text-3xl text-xl">Explore Products</div>
<div class="center ml-8 mr-8 my-10 grid gap-3 grid-cols-2 md:grid-cols-3 md:text-2xl md:mx-32 md:mb-24 md:gap-10">
<a href="./books/index.html">
<button class="zoom ml-3 bg-teal-900 px-5 w-5/6 py-3 border-2 border-slate-500 rounded-xl btn">
<img src = "img/book.png"><br>BOOKS
</button>
</a>
<a href="./food/index.html">
<button class="zoom ml-3 bg-teal-900 px-5 w-5/6 py-3 border-2 border-slate-500 rounded-xl btn">
<img src = "img/diet.png"><br>FOODS
</button>
</a>
<a href="./bags/index.html">
<button class="zoom ml-3 bg-teal-900 px-5 w-5/6 py-3 border-2 border-slate-500 rounded-xl btn">
<img src = "img/backpack.png"><br>BAGS
</button>
</a>
<a href="./mobiles/index.html">
<button class="zoom ml-3 bg-teal-900 px-5 w-5/6 py-3 border-2 border-slate-500 rounded-xl btn">
<img src = "img/smartphone.png"><br>MOBILES
</button>
</a>
<a href="./laptops/index.html">
<button class="zoom ml-3 bg-teal-900 px-5 w-5/6 py-3 border-2 border-slate-500 rounded-xl btn">
<img src = "img/laptop.png"><br>LAPTOPS
</button>
</a>
<a href="./shoes/index.html">
<button class="zoom ml-3 bg-teal-900 px-5 w-5/6 py-3 border-2 border-slate-500 rounded-xl btn">
<img src = "img/shoes.png"><br>SHOES
</button>
</a>
</div>
<footer class="bg-slate-900 pl-8 pt-3 pr-4 text-xs font-sans md:text-base">
About<br><hr><br>
Made by PC Uma Mahesh, IIT Indore CSE '26
<div class="grid grid-cols-10 md:grid-cols-12">
<a href="https://www.instagram.com/pcumamahesh/" target="_blank">
<img class= "w-3.5 mt-3 md:w-1/4 inline hover:opacity-50 active:opacity-50" src="img/instagram.png">
</a>
<a href="https://www.linkedin.com/in/p-c-uma-mahesh-221513258/" target="_blank">
<img class= "w-3.5 mt-3 md:w-1/4 inline pb-3 hover:opacity-50 active:opacity-50" src="img/linkedin.png">
</a>
<a href="https://www.github.com/hi-techmissile/" target="_blank">
<img class= "w-3.5 mt-3 md:w-1/4 inline pb-3 hover:opacity-50 active:opacity-50" src="img/github.png">
</a>
</div>
</footer>
</body>
<script src = "script.js"></script>
</html>