-
Notifications
You must be signed in to change notification settings - Fork 8
/
page2.html
353 lines (313 loc) · 10.7 KB
/
page2.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Karma">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Nike</title>
</head>
<style>
* {
box-sizing: border-box;
}
.container1 {
width: 75%;
margin: 5em auto;
}
.box {
background-color: #ffffff;
padding: 5%;
border-radius: 20%;
margin-left: 20px;
margin-top: 20px;
height: 17rem;
}
.btn {
margin-left: 110px;
margin-right: 150px;
margin-top: 80px;
color: white;
background-color: green;
}
.p {
font-size: 30px;
color: black;
margin-top: -180px;
margin-left: 260px;
}
.back {
padding: 30px;
background-color: #222222;
border-radius: 20px;
text-align: center;
font-size: 15px;
}
.counter {
margin-top: 50px;
}
.btn1 {
border: none;
outline: none;
padding: 17px;
border-radius: 20%;
background-color: white;
cursor: pointer;
}
.btn1:hover {
background-color: #ddd;
}
.btn1.active {
background-color: #666;
color: white;
}
.column {
float: left;
display: none;
}
body {
background-color: black;
}
@-webkit-keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
@-moz-keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
@keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
.headding {
margin-bottom: 40px;
}
h1 {
font-size: 66px;
font-weight: 300;
}
.icons {
text-align: center;
max-width: 500px;
max-height: 300px;
}
span {
border: 1px solid;
border-radius: 50%;
color: #fff;
width: 60px;
height: 60px;
text-align: center;
padding-top: 15px;
margin: 10px;
-webkit-transition: all .5s ease 0s;
-moz-transition: all .5s ease 0s;
-o-transition: all .5s ease 0s;
transition: all .5s ease 0s;
}
span:hover {
background: rgba(10, 10, 10, 0.1);
border-color: rgba(10, 10, 10, 0.1);
}
h6 a,
h6 a:hover {
text-decoration: none;
color: #fff;
}
</style>
<body>
<!-- navbar -->
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.html"> Nike </a>
</div>
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li class="active"><a href="product.html">Products</a></li>
<li><a href="page2.html">About us</a></li>
<li><a href="portal.html"><b>Buy</b></a></li>
</ul>
</div>
</nav>
<!-- Search bar -->
<div class="container">
<h1 style="color: white">Search</h1>
<br>
<div id="myBtnContainer" style="margin-top: -1rem;">
<button class="btn1 active" onclick="filterSelection('all')"> Show all</button>
<button class="btn1" onclick="filterSelection('sport')"> Sport</button>
<button class="btn1" onclick="filterSelection('women')"> Women</button>
<button class="btn1" onclick="filterSelection('men')"> Men</button>
</div>
<hr>
<!-- row1 -->
<div class="row">
<div class="column men">
<div class="box">
<img src="img/sh9.jpg" alt="men">
<h3 style="margin-left: 16rem;margin-top: -3rem;"><b>Sport</b></h3>
<p style="margin-left: 16rem;margin-top: -6rem; font-size: 30px">$66</p>
<button class="btn"> Add to card</button>
</div>
</div>
<div class="column men">
<div class="box">
<img src="img/sh4.jpg" alt="sport">
<h3 style="margin-left: 16rem;margin-top: -3rem;"><b>Sport</b></h3>
<p style="margin-left: 16rem;margin-top: -6rem; font-size: 30px">$99</p>
<button class="btn"> Add to card</button>
</div>
</div>
<div class="column men">
<div class="box">
<img src="img/sh6.jpg" alt="men">
<h3 style="margin-left: 16rem;margin-top: -1rem;"><b>Men</b></h3>
<p style="margin-left: 16rem;margin-top: -9rem; font-size: 30px"><s style="color: red">$210</s></p>
<p style="margin-left: 16rem;margin-top: -1rem; font-size: 30px">$190</p>
<button class="btn" style="margin-top: 50px"> Add to card</button>
</div>
</div>
</div>
<!-- row2 -->
<div class="row">
<div class="column sport">
<div class="box">
<img src="img/sh8.jpg" alt="sport">
<h3 style="margin-left: 16rem;margin-top: -3rem;"><b>Sport</b></h3>
<p style="margin-left: 16rem;margin-top: -6rem; font-size: 30px">$59</p>
<button class="btn"> Add to card</button>
</div>
</div>
<div class="column sport">
<div class="box">
<img src="img/sh5.jpg" alt="sport">
<h3 style="margin-left: 16rem;margin-top: -1rem;"><b>Men</b></h3>
<p style="margin-left: 16rem;margin-top: -9rem; font-size: 30px"><s style="color: red">$79</s></p>
<p style="margin-left: 16rem;margin-top: -1rem; font-size: 30px">$69</p>
<button class="btn" style="margin-top: 50px"> Add to card</button>
</div>
</div>
<div class="column women">
<div class="box">
<img src="img/sh0.jpg" alt="women">
<h3 style="margin-left: 16rem;margin-top: -3rem;"><b>Women</b></h3>
<p style="margin-left: 16rem;margin-top: -6rem; font-size: 30px">$33</p>
<button class="btn"> Add to card</button>
</div>
</div>
</div>
</div>
<!-- page counter -->
<div class="w3-center w3-padding-32">
<div class="w3-bar counter" style="color: #666666;">
<a href="product.html" class="w3-bar-item w3-button w3-hover-black">«</a>
<a href="#" class="w3-bar-item w3-black w3-button">2</a>
<a href="Page2.html" class="w3-bar-item w3-button w3-hover-black">3</a>
<a href="#" class="w3-bar-item w3-button w3-hover-black">4</a>
<a href="#" class="w3-bar-item w3-button w3-hover-black">5</a>
<a href="Page2.html" class="w3-bar-item w3-button w3-hover-black">»</a>
</div>
</div>
<!-- about us -->
<div class="w3-padding-32 w3-center back">
<h1 style="color: #666666">About us</h1>
<div class="w3-padding-32">
<p class="font" style="color: white">
The company was founded on January 25, 1964, as Blue Ribbon Sports, by Bill Bowerman and Phil Knight,
and officially became Nike, Inc. on May 30, 1971. The company takes its name from Nike,
the Greek goddess of victory. Nike markets its products under its own brand, as well as Nike Golf,
Nike Pro, Nike+, Air Jordan, Nike Blazers, Air Force 1, Nike Dunk, Air Max, Foamposite,
Nike Skateboarding, Nike CR7, and subsidiaries including Brand Jordan, Hurley International and Converse.
Nike also owned Bauer Hockey (later renamed Nike Bauer) from 1995 and 2008, and previously owned Cole Haan
and Umbro.
Nike sponsors many high-profile athletes and sports teams around the world, with the highly recognized
trademarks of "Just Do It" and
the Swoosh logo.
</p>
</div>
<!-- social media -->
<div class="icons center-block"><span class="fa fa-facebook fa-2x"></span>
<span class="fa fa-twitter fa-2x"></span>
<span class="fa fa-instagram fa-2x"></span>
<span class="fa fa-whatsapp fa-2x"></span>
<span class="fa fa-skype fa-2x"></span>
<br>
<h6>Thanks for checking this page<br><br><a href="http://www.nike.com" title="See More">www.nike.com</a></h6>
<br>
</div>
</div>
<!-- script search -->
<script>
filterSelection("all")
function filterSelection(c) {
var x, i;
x = document.getElementsByClassName("column");
if (c == "all") c = "";
for (i = 0; i < x.length; i++) {
RemoveClass(x[i], "show");
if (x[i].className.indexOf(c) > -1) AddClass(x[i], "show");
}
}
function AddClass(element, name) {
var i, arr1, arr2;
arr1 = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i < arr2.length; i++) {
if (arr1.indexOf(arr2[i]) == -1) {
element.className += " " + arr2[i];
}
}
}
function RemoveClass(element, name) {
var i, arr1, arr2;
arr1 = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i < arr2.length; i++) {
while (arr1.indexOf(arr2[i]) > -1) {
arr1.splice(arr1.indexOf(arr2[i]), 1);
}
}
element.className = arr1.join(" ");
}
// Add active class to the current button (highlight it)
var btnContainer = document.getElementById("myBtnContainer");
var btns = btnContainer.getElementsByClassName("btn1");
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener("click", function () {
var current = document.getElementsByClassName("active");
current[0].className = current[0].className.replace("active", "");
this.className += " active";
});
}
</script>
</body>
</html>