forked from tanviSAM/Meesho-Clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
194 lines (185 loc) · 6.59 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
<!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="https://fonts.googleapis.com/icon?family=Material+Icons"rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" href="img/FashionableMarketPlaceLogo.png">
<link rel="stylesheet" href="./css/homePage.css">
<link rel="stylesheet" href="./css/search.css">
<title>Fashionable Marketplace Webstore</title>
</head>
<body>
<!-- Navigation Bar -->
<section class="navbar">
<div class="uppernav">
<a href="index.html"><img
style="height: 80px;"
src="img/FashionableMarketPlaceLogo.png"
alt="logo"
class="logo"
/></a>
<div class="navSearch">
<img
src="https://i.postimg.cc/90c6jfMm/search-interface-symbol.png"
alt="search"
class="NavSearchIcon"
/>
<input
type="text"
id="keyword"
class="searchContainer"
placeholder="Try Saree,Kurthi or Seach by Product Code"
onkeypress="handleKeyPress(event)"
/>
</div>
<div class="navRightSec">
<div class="navAppPromo">
<img
src="https://i.postimg.cc/sXqr2Fz4/smartphone.png"
alt="app"
class="navAppIcon"
/>
<span id="tagDwn">Download App</span>
</div>
<span class="navSuplier">Become a Supplier</span>
<div class="navProfile" onclick="window.location.href='SignUpPage.html'">
<img
src="https://i.postimg.cc/wjtLkcVz/user.png"
alt="account"
class="navAccountIcon"
/>
<span
class="SignUpHover"
>Profile</span
>
</div>
<div class="navcart" onclick="window.location.href='CartPage.html'">
<img
src="https://i.postimg.cc/sXBgkwMf/bag.png"
alt="cart"
class="cartIcon"
/>
<span
class="SignUpHover"
onclick="window.location.href='CartPage.html'"
>Cart</span
>
</div>
<div id="cart-item-counter">0</div>
</div>
</div>
<div class="bottomNav">
<div class="nav-menu">
<ul>
<li class="dropdown" onclick="window.location.href='viewall.html'">View All</li>
<li class="dropdown" onclick="window.location.href='WomenWestern.html'">Women Western
<div class="submenu">
<div class="subCat">
<span class="catHeading">Topwear</span>
<span>Dresses</span>
<span>Tops</span>
<span>Sweaters</span>
<span>Jumpsuits</span>
</div>
<div class="subCat" style="margin-left: 1em;">
<span class="catHeading">Bottomwear</span>
<span>Jeans</span>
<span>Jeggings</span>
<span>Palazzos</span>
<span>Shorts</span>
<span>Skirts</span>
</div>
</div>
</li>
<li onclick="window.location.href='Jewellery.html'">Jewellery & Accessories</li>
<li onclick="window.location.href='Men.html'">Men</li>
<li>Beauty & Health</li>
<li>Bath & Body</li>
<li>Bags & Footwear</li>
<li>Home & Kitchen</li>
<li>Kids</li>
<li>Electronics</li>
</ul>
</div>
</div>
</section>
<section class="searchWindow">
<div class="searchCloseBtn">
<img src="https://i.postimg.cc/Lgdct409/close.png" alt="">
</div>
<div id="searchWindowDiv">
</div>
</section>
<section class="blurBack"></section>
<!-- Homepage Design -->
<div class="addImg01">
<div class="image">
<img src="img/centerImage.jpg" alt="Image">
</div>
</div>
<div id="CatHeader">
<div><hr></div>
<div><h1 id="cat">Top Categories to choose from</h1></div>
<div><hr></div>
</div>
<div class="addImg02">
<div class="threeimg">
<div class="firstimg"><img src="img/firstImage.png" alt=""></div>
<div class="secondimg"><img src="img/secondImage.png" alt=""></div>
<div class="thirdimg"><img src="img/thirdImage.png" alt=""></div>
</div>
</div>
<div class="addImg03">
<div id="homeobtn" ><h1>Homecare</h1>
<div>.</div>
<a id="viewall" href="#">VIEW ALL</a>
</div>
<div class="imageone">
<img src="img/beadSheet.png" alt="" width="100%">
<a href="#"><button id="btn1">BedSheets</button></a>
</div>
<div class="imageone">
<img src="img/kitchen.png" width="100%" alt="">
<a href="#"><button id="btn1">Kitchenware</button></a>
</div>
<div class="imageone">
<img src="img/carpets.png" width="90%" alt="">
<a href="#"><button id="btn1">Carpets</button></a>
</div>
</div>
</div>
</body>
<script src="./scripts/footer.js"></script>
<script>
let current_users = JSON.parse(localStorage.getItem('current_bussiness_user'));
let consumer_current_users = JSON.parse(localStorage.getItem('current_user'));
let supp = document.getElementById('SupplyTag');
let cart = document.getElementById('cart');
console.log(cart);
console.log(current_users);
supp.addEventListener('click',function(){
if ( current_users === null){
window.location.href = 'LoginPage.html'
}
else {
window.location.href = 'addProd.html'
}
}) ;
cart.addEventListener('click',function(){
if (consumer_current_users === null){
window.location.href = 'LoginPage.html'
}
else {
window.location.href = 'CartPage.html'
}
})
let ViewAl = document.getElementById('ViewAl');
ViewAl.addEventListener('click',function(){
window.location.href = 'showProd.html';
})
</script>
<script src="./script/search.js"></script>
</html>