forked from debasishsahoo/learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
226 lines (190 loc) · 5.66 KB
/
search.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0px;
padding: 0px;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #130f40;
font-family: 'Lato' !important;
}
.search-box {
width: fit-content;
height: fit-content;
position: relative;
}
.input-search {
height: 50px;
width: 50px;
border-style: none;
padding: 10px;
font-size: 18px;
letter-spacing: 2px;
outline: none;
border-radius: 25px;
transition: all .5s ease-in-out;
background-color: #22a6b3;
padding-right: 40px;
color: #fff;
}
.input-search::placeholder {
color: rgba(255, 255, 255, .5);
font-size: 18px;
letter-spacing: 2px;
font-weight: 100;
}
.btn-search {
width: 50px;
height: 50px;
border-style: none;
font-size: 20px;
font-weight: bold;
outline: none;
cursor: pointer;
border-radius: 50%;
position: absolute;
right: 0px;
color: #ffffff;
background-color: transparent;
pointer-events: painted;
}
.btn-search:focus~.input-search {
width: 300px;
border-radius: 0px;
background-color: transparent;
border-bottom: 1px solid rgba(255, 255, 255, .5);
transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
}
.input-search:focus {
width: 300px;
border-radius: 0px;
background-color: transparent;
border-bottom: 1px solid rgba(255, 255, 255, .5);
transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
}
/* footer */
footer {
background-color: #222;
color: #fff;
font-size: 14px;
bottom: 0;
position: fixed;
left: 0;
right: 0;
text-align: center;
z-index: 999;
}
footer p {
margin: 10px 0;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
footer .fa-heart {
color: red;
}
footer .fa-dev {
color: #fff;
}
footer .fa-twitter-square {
color: #1da0f1;
}
footer .fa-instagram {
color: #f0007c;
}
fotter .fa-linkedin {
color: #0073b1;
}
footer .fa-codepen {
color: #fff
}
footer a {
color: #3c97bf;
text-decoration: none;
margin-right: 5px;
}
.youtubeBtn {
position: fixed;
left: 50%;
transform: translatex(-50%);
bottom: 45px;
cursor: pointer;
transition: all .3s;
vertical-align: middle;
text-align: center;
display: inline-block;
}
.youtubeBtn i {
font-size: 20px;
float: left;
}
.youtubeBtn a {
color: #ff0000;
animation: youtubeAnim 1000ms linear infinite;
float: right;
}
.youtubeBtn a:hover {
color: #c9110f;
transition: all .3s ease-in-out;
text-shadow: none;
}
.youtubeBtn i:active {
transform: scale(.9);
transition: all .3s ease-in-out;
}
.youtubeBtn span {
font-family: 'Lato';
font-weight: normal;
color: #fff;
display: block;
font-size: 12px;
float: right;
line-height: 20px;
padding-left: 5px;
}
@keyframes youtubeAnim {
0%,
100% {
color: #c9110f;
}
50% {
color: #ff0000;
}
}
/* footer */
</style>
</head>
<body>
<div class="search-box">
<button class="btn-search"><i class="fas fa-search"></i></button>
<input type="text" class="input-search" placeholder="Type to Search...">
</div>
<footer>
<p>
Created with <i class="fa fa-heart"></i> by
<a target="_blank" href="#">debasish Sahoo</a>
Follow me :
<a target="_blank" href="https://www.instagram.com/debasishsahoo/"><i class="fab fa-instagram"></i></a>
<a target="_blank" href="https://www.linkedin.com/in/debasish-sahoo/"><i class="fab fa-linkedin"></i></a>
<a target="_blank" href="https://codepen.io/debasishsahoo/"><i class="fab fa-codepen"></i></a>
<a target="_blank" href="https://dev.to/debasishsahoo"><i class="fab fa-dev"></i></a>
<a target="_blank" href="https://twitter.com/debasishsahoo"><i class="fab fa-twitter-square"></i></a>
</p>
</footer>
<div class="youtubeBtn">
<a target="_blank" href="https://www.youtube.com/debasishsahoo?sub_confirmation=1">
<span>Watch on YouTube</span>
<i class="fab fa-youtube"></i>
</a>
</div>
</body>
</html>