forked from Rkarthik25/Bewakoof-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addAddress.html
267 lines (252 loc) · 7.47 KB
/
addAddress.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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<link
rel="stylesheet"
href="path/to/font-awesome/css/font-awesome.min.css"
/>
<link
rel="shortcut icon"
href="https://images.bewakoof.com/web/favicon.png"
/>
<title>
Online Shopping for Men, Women Clothing & Accessories at Bewakoof
</title>
<script
src="https://kit.fontawesome.com/d51e4e3389.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="./style/HeaderAndFooter.css" />
<style>
body {
background-color: rgb(250, 248, 226);
}
#Address p {
color: green;
justify-content: end;
}
input {
padding: 15px;
width: 40%;
}
button {
padding: 15px;
width: 30%;
display: inline;
}
#add {
margin-top: 200px;
color: black;
/* text-align: center; */
}
#SAVE {
margin: 80px;
width: 22%;
margin-left: 100%;
background-color: green;
color: white;;
}
#Addressinput {
height: 100px;
}
#divmain {
display: grid;
grid-template-columns: 50% 50%;
justify-content: center;
}
#imgDIv > img {
width: 80%;
height: auto;
margin-top: 200px;
padding-left: 100px;
padding-top: 100px;
}
</style>
</head>
<body>
<header class="main-header">
<nav class="top-nav">
<div class="topnave">
<ul class="top-nav-items">
<li class="top-nav-item">
<a> Offer </a>
</li>
<li class="top-nav-item">
<a>Facbook</a>
</li>
<li class="top-nav-item">
<a>Download App</a>
</li>
<li class="top-nav-item">
<a> TriBe Membership </a>
</li>
<li class="top-nav-item">
<a> Contact Us </a>
</li>
<li class="top-nav-item">
<a href="http://" target="_blank" rel="noopener noreferrer"
>Track Order</a
>
</li>
</ul>
</div>
</nav>
<div class="brand-logo">
<a href="index.html" class="main-header_brand">
<img
src="https://images.bewakoof.com/web/ic-desktop-pride-bwkf-logo.svg"
alt="logo"
srcset=""
/>
</a>
</div>
<div>
<ul>
<li class="main-nav_item">
<a href="mens.html">Men</a>
</li>
<li class="main-nav_item">
<a href="womens.html">Women</a>
</li>
</ul>
</div>
<nav class="main-nav-1">
<ul class="main-nav_items">
<li class="main-nav_item">
<div class="box">
<i class="fa fa-search" aria-hidden="true"></i>
<input
type="text"
name=""
placeholder="search by product,cataegory"
/>
</div>
</li>
<li class="main-nav_item">
<a href="login.html">Login</a>
</li>
<li class="main-nav_item">
<a id="hart">
<i class="far fa-heart"></i>
</a>
</li>
<li class="main-nav_item">
<a id="bag">
<i class="fas fa-shopping-bag"></i>
</a>
</li>
</ul>
</nav>
</header>
<div id="divmain">
<div id="imgDIv">
<img
src="https://images.bewakoof.com/uploads/grid/app/Hero-banner-Men-680X420-1636639165.jpg"
alt=""
/>
</div>
<div id="Address">
<h1 id="add">Address</h1>
<p>Pincode</p>
<input id="Pinecode" type="text" />
<p>Address</p>
<input id="Addressinput" type="text" />
<!-- <p>Locality</p>
<input id="Locality" type="text" /> -->
<div>
<p>City</p>
<input id="City" type="text" />
<p>state</p>
<input id="State" type="text" />
</div>
<!-- <p>Country</p>
<input id="Country" type="text" /> -->
<p>Phone No</p>
<input type="number" id="number" />
</div>
<button id="SAVE">SAVE</button>
</div>
<footer>
<div class="foter-cointainer">
<div class="brand-logo brand-logo-footer">
<a href="" class="main-header_brand">
<img
src="https://images.bewakoof.com/logos/bewakoof-logo-og.png"
alt="logo"
srcset=""
/>
</a>
</div>
<div class="footer">
<div class="footer-heading footer-1">
<h2>CUSTOMER SERVICE</h2>
<a href="#">Contact Us</a>
<a href="#"> Track Order</a>
<a href="#">Return Order</a>
<a href="#"> Cancel Order</a>
</div>
<div class="footer-heading footer-2">
<h2>COMPANY</h2>
<a href="#"> About Us</a>
<a href="#"> We're Hiring</a>
<a href="#"> Privacy Policy</a>
<a href="#"> Blog</a>
</div>
<div class="footer-heading footer-3">
<h2>CONNECT WITH US</h2>
<a href="#">
<i class="fab fa-facebook-square"></i> 4.8M People Like
this
</a>
<a href="#"> <i class="fab fa-instagram"></i> 1M Followers</a>
<br />
<br />
<a href="#"
> <i class="fab fa-twitter"></i> <i
class="fab fa-pinterest-p"
></i>
<i class="fab fa-snapchat-ghost"></i>
<i class="fab fa-apple"></i
></a>
</div>
<div class="footer-email-form footer-heading footer-4">
<h2>KEEP UP TO DATE</h2>
<br />
<div class="mail">
<input
id="footer-email"
type="email"
name=""
id=""
placeholder="Enter Your MailId"
/>
<input type="submit" id="footer-email-btn" value="SUBSCRIBE" />
</div>
</div>
</div>
</div>
</footer>
</body>
</html>
<script>
var Address = [];
document.getElementById("SAVE").addEventListener("click", function () {
var a = document.getElementById("Pinecode").value;
var b = document.getElementById("Addressinput").value;
// var c = document.getElementById("Locality").value;
var d = document.getElementById("City").value;
var e = document.getElementById("State").value;
// var f = document.getElementById("Country").value;
var g = document.getElementById("number").value;
Address.push(a, b, d, e, g);
localStorage.setItem("Address", JSON.stringify(Address));
alert("Address Has Been Added");
window.location.href = "paymentPage.html";
});
// document.querySelector("#hart").addEventListener("click", function () {
// window.location.href = "wishlistFavPage.html";
// });
document.querySelector("#bag").addEventListener("click", function () {
window.location.href = "bag.html";
});
</script>