-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathyoutube.html
111 lines (109 loc) · 2.2 KB
/
youtube.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Form</title>
</head>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container{
background-image: url('../images/contact-bg.jpg');
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.card{
padding: 2rem;
text-align: center;
background-color: #39459b;
height: 600px;
width: 700px;
box-shadow: 0 0 10px 0 rgba(0,0,0,0.6);
border: 1rem solid #0d99d7;
}
.card h1{
font-size: 4rem;
color: #fff;
letter-spacing: 2px;
text-transform: uppercase;
}
.card p{
color: #fff;
font-size: 1.2rem;
margin-top: 1rem;
letter-spacing: 2px;
}
.input-field{
margin: 2.5rem;
position: relative;
}
.card input{
width: 100%;
background-color: transparent;
padding: 1rem;
border: none;
outline: none;
border-bottom: 2px solid #0d99d7;
color: #fff;
font-size: 1rem;
}
label{
text-transform: capitalize;
letter-spacing: 2px;
position: absolute;
top: 10px;
left: 0;
color: #93d1ec;
transition: all 0.3s ease-in-out;
}
.input-field:last-child .submit{
width: 200px;
border: 2px solid #fff;
color: #fff;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
}
input:focus{
border-bottom: 2px solid #fff;
}
input:focus~label,
input:valid~label{
transform: translateY(-20px);
}
</style>
<body>
<div class="container">
<div class="card">
<div class="card-body">
<form action="">
<h1>contact us</h1>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repudiandae tenetur vitae .</p>
<div class="input-field">
<input type="text" required="">
<label for="">Your name</label>
</div>
<div class="input-field">
<input type="text" required="">
<label for="">Your mail</label>
</div>
<div class="input-field">
<input type="text" required="">
<label for="">Your message</label>
</div>
<div class="input-field">
<input type="submit" class="submit" value="submit" required="">
</div>
</form>
</div>
</div>
</div>
</body>
</html>