-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathcontact.html
More file actions
192 lines (183 loc) · 3.34 KB
/
contact.html
File metadata and controls
192 lines (183 loc) · 3.34 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<link rel="stylesheet" type="text/css" href="contact.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<style>
/* Hello! Welcome
Made By : Harikrushn Kanani;
*/
body
{
margin: 0;
padding: 0;
font-family: sans-serif;
background:url(wave.png);
background-repeat: no-repeat;
background-size: cover;
}
.box
{
width: 400px;
position: absolute;
top:50%;
left: 65%;
transform: translate(-50%,-50%);
background:#fff;
padding: 40px;
box-sizing: border-box;
border:2px solid rgba(0,0,0,.1);
border-radius: 20px;
box-shadow: 0 5px 10px rgba(0,0,0,.2);
}
.box h2
{
justify-content: center;
text-align: center;
align-items: center;
/*margin:0 0 40px;
padding: 0;*/
color:#f7497d;
text-transform: uppercase;
}
.box input
{
padding: 10px 0;
margin-bottom: 30px;
}
.box textarea
{
height: 80px;
padding: 10px 0;
margin-bottom: 40px;
}
.box input,
.box textarea
{
width: 100%;
box-sizing: border-box;
box-shadow: none;
outline: none;
border:none;
border-bottom: 2px solid #999;
}
.box textarea
{
margin-bottom: 20px;
max-width: 100%;
}
.box input[type="submit"]
{
background-color: #f7497d;
border-bottom: none;
cursor: pointer;
margin-bottom: 0;
text-transform: uppercase;
}
.box form div
{
position: relative;
}
.box form div label
{
position: absolute;
top:10px;
left: 0;
pointer-events: none;
transition: .5s;
color:#999;
}
/* CHANGE HERE */
.handle-label
{
top:-20px !important;
left: 0 !important;
color:#f7497d;
font-size: 16px;
}
.box input:focus,
.box textarea:focus,
.box input:valid,
.box textarea:valid
{
border-bottom: 2px solid #f7497d;
}
.box .img img
{
margin-top: -1%;
margin-left: 34%;
left:100px;
height: 100px;
}
.image img
{
height: 500px;
width:500px;
display: flex;
margin-left: 10%;
margin-top: 8%;
}
.btn
{
display: block;
width: 100%;
height: 50px;
border-radius: 25px;
outline: none;
border:none;
background-image: linear-gradient(to right, #f7497d, #32be8f, #38d39f, #f7497d);
background-size: 200%;
border-bottom: none;
font-size: 1.2rem;
color: #000;
font-family: sans-serif;
text-transform: uppercase;
margin: 1rem 0;
cursor: pointer;
transition: .5s;
}
.btn:hover{
background-position: right;
}
input:invalid {
border-color: rgb(255, 0, 43);
}
</style>
<!-- GIVE ID'S TO LABEL AND CALLED FUNCTION onfocus AT INPUTS -->
<body>
<div class="image">
<img src="Contact Us/bg.svg">
</div>
<div class="box">
<div class="img">
<img src="Contact Us/avatar.svg">
</div>
<h2>Contact Us</h2>
<form>
<div class='container'>
<div>
<input onfocus="nameFocus()" type="text" name="" required="" >
<label id="name">Your lovely name</label>
</div>
<div>
<input onfocus="emailFocus()" type="email" name="" required="">
<label id="email">Your Email</label>
</div>
<div>
<input onfocus="subjectFocus()" type="text" name="" required="">
<label id="subject">Subject</label>
</div>
<div>
<textarea onfocus="messageFocus()" required=""></textarea>
<label id="message">Mesasge</label>
</div>
<!-- <a href="#">Submit</a> -->
<input type="submit" name="" value="submit" class="btn">
</div>
</form>
</div>
</body>
<script src="contact.js"></script>
</html>