-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (146 loc) · 4.17 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
<!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>Owaisun Youtube2</title>
<style>
body{
background-color: #181818;
}
#navbar{
/* position:fixed; */
margin-top: 0px;
margin-bottom: 3%;
width: 100%;
height: 100px;
background-color: #181818;
height: 70px;
padding: 0 16px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border: 0.5px solid rgba(128, 128, 128, 0.584);
}
/* #navbar>h3{
font-size: 100%;
} */
#navbar>div{
display: flex;
margin-right: 80px;
}
#navbar>div>img{
width: 6%;
height: 3%;
margin-top: 7%;
border-radius: 6px;
}
#icon{
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
height: 20px;
width: 90px;
padding: 18px 14px 18px 16px;
color: #fff
}
#query{
background-color:hsl(0, 0%, 7%);;
color: aliceblue;
width: 23%;
height: 60%;
border: 0.5px solid rgba(128, 128, 128, 0.584);
}
#btn{
background-color: hsla(0, 0%, 53.3%, 0.4);
color: #fff;
border: 0px;
height: 65%;
width: 12%;
}
#popular_h3{
margin: auto;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
height: 20px;
width: 100px;
color: #fff;
}
#popular{
justify-content: center;
display: grid;
grid-template-columns: repeat(4,20%);
grid-gap: 2%;
margin-top: 5%;
}
#popular>div>img{
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
border: 0px transparent;
}
#popular>div>h3{
color: aliceblue;
}
#results{
justify-content: center;
display: grid;
grid-template-columns: repeat(4,20%);
grid-gap: 2%;
}
#results>div>img{
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
border: 0px transparent;
}
#results>div>h3{
color: aliceblue;
}
@media all and (min-width: 320px) and (max-width: 480px){
#navbar{
height: 60px;
}
#icon{
font-size: 15px;
}
#navbar>div>img{
visibility: hidden;
}
#query{
width: 420%;
}
#btn{
width: 20%;
margin-right: 4%;
}
#results{
grid-template-columns: repeat(2,55%);
gap: 1%;
}
#results>div{
width: 10%;
margin-right: 3%;
}
#popular{
grid-template-columns: repeat(2,55%);
gap: 1%;
}
#popular>div{
width: 10%;
margin-right: 3%;
}
}
</style>
</head>
<body>
<div id="navbar">
<div>
<img src="https://www.androidbeat.com/wp-content/uploads/2014/12/YouTube_Android_logo.png" alt="">
<!-- <img src="https://www.youtube.com/s/desktop/8498231a/img/favicon.ico" alt=""> -->
<h3 id="icon">YouTube</h3>
</div>
<input type="text" id="query" placeholder="Search">
<button id="btn" onclick="search()">Search</button>
</div>
<h3 id="popular_h3">MOST POPULAR VIDEOS</h3>
<div id="popular"></div>
<div id="results"></div>
</body>
</html>
<script src="index.js"></script>