-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (85 loc) · 2.31 KB
/
index.html
File metadata and controls
100 lines (85 loc) · 2.31 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
<!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>Form Contato</title>
</head>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #146C94;
}
form {
background-color: white;
max-width: 500px;
width: 70%;
padding: 20px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
form h3 {
text-align: center;
color: #146C94;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
form input[type=text],
form input[type=password] {
width: 100%;
height: 45%;
border: 1px solid #ccc;
padding-left: 10px;
margin: 10px 0;
}
form input[type=submit] {
width: 100%;
height: 40px;
cursor: pointer;
background-color: #146C94;
color: white;
border: 0;
border-radius: 20px;
transition: 1s;
}
form input[type=submit]:hover {
background-color: #0b3c53;
}
form input [type=password]:focus {
outline: 0;
}
form input [type=text]:focus {
outline: 0;
}
</style>
<body>
<form action="">
<h3>Entrar em contato</h3>
<input id="email" type="text" name="email" placeholder="Seu e-mail..." />
<input id="password" type="password" name="senha" placeholder="Sua senha..." />
<input type="submit" name="acao" value="Enviar" id="" />
</form>
<script>
var email = document.getElementById('email');
var password = document.getElementById('password');
email.addEventListener('focus', () => {
email.style.borderColor = '#0b3c53';
});
email.addEventListener('blur', () => {
email.style.borderColor = '#ccc';
});
password.addEventListener('focus', () => {
password.style.borderColor = '#0b3c53';
});
password.addEventListener('blur', () => {
password.style.borderColor = '#ccc';
});
</script>
</body>
</html>