-
Notifications
You must be signed in to change notification settings - Fork 3
/
sports.html
114 lines (99 loc) · 2.68 KB
/
sports.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
<!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">
<title>Document</title>
<style>
body{
text-align: center;
color: rgb(180, 1, 64);
}
body>div{
display: grid;
grid-template-columns: repeat(4,1fr);
gap: 15px;
color: black;
padding: 15px;
margin: auto;
}
#container{
border-radius: 15px;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
img{
width:100%;
}
button{
margin-bottom: 10px;
}
#nav{
display: flex;
justify-content: space-between;
padding: 30px;
/* opacity: 1; */
}
#sorting{
width: 200px;
height: 40px;
color: black;
background-color: rgb(180, 1, 64);
padding: 10px;
border-radius: 5px;
}
#logo{
width: 200px;
}
#search{
width: 350px;
padding: 8px;
height: 20px;
margin-top: 5px;
border-radius: 8px;
}
@media all and (min-width:0px) and (max-width:400px) {
#nav{
display: flex;
flex-direction: column;
/* justify-content: space-between; */
}
body>div{
display: grid;
grid-template-columns: repeat(1,1fr);
gap: 15px;
}
body{
margin: auto;
}
}
@media all and (min-width:401px) and (max-width:800px) {
body>div{
display: grid;
grid-template-columns: repeat(2,1fr);
gap: 15px;
}
body{
margin: auto;
}
}
</style>
</head>
<body>
<div id="nav">
<img id="logo" src="images/logo3.png" alt="logo">
<input oninput="search()" id="search" type="text" placeholder="enter your keyword here to search">
<select name="sort" id="sorting">
<option value="">Select to sort by price</option>
<option value="LTH">low to high</option>
<option value="HTL">high to low</option>
</select>
</div>
<h1>Diesel Sports Wear</h1>
<h2>Choose from a wide range of sports collection</h2>
<div id="container">
<!-- append your cards here -->
</div>
</body>
</html>
<script src="sports.js"></script>