-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathformulario.html
More file actions
135 lines (135 loc) · 4.72 KB
/
formulario.html
File metadata and controls
135 lines (135 loc) · 4.72 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
<!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>Formulário | GN</title>
<style>
body{
font-family: Arial, Helvetica, sans-serif;
background-image: linear-gradient(to right, rgb(20, 147, 220), rgb(17, 54, 71));
}
.box{
color: white;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
background-color: rgba(0, 0, 0, 0.6);
padding: 15px;
border-radius: 15px;
width: 20%;
}
fieldset{
border: 3px solid dodgerblue;
}
legend{
border: 1px solid dodgerblue;
padding: 10px;
text-align: center;
background-color: dodgerblue;
border-radius: 8px;
}
.inputBox{
position: relative;
}
.inputUser{
background: none;
border: none;
border-bottom: 1px solid white;
outline: none;
color: white;
font-size: 15px;
width: 100%;
letter-spacing: 2px;
}
.labelInput{
position: absolute;
top: 0px;
left: 0px;
pointer-events: none;
transition: .5s;
}
.inputUser:focus ~ .labelInput,
.inputUser:valid ~ .labelInput{
top: -20px;
font-size: 12px;
color: dodgerblue;
}
#data_nascimento{
border: none;
padding: 8px;
border-radius: 10px;
outline: none;
font-size: 15px;
}
#submit{
background-image: linear-gradient(to right,rgb(0, 92, 197), rgb(90, 20, 220));
width: 100%;
border: none;
padding: 15px;
color: white;
font-size: 15px;
cursor: pointer;
border-radius: 10px;
}
#submit:hover{
background-image: linear-gradient(to right,rgb(0, 80, 172), rgb(80, 19, 195));
}
</style>
</head>
<body>
<div class="box">
<form action="">
<fieldset>
<legend><b>Fórmulário de Clientes</b></legend>
<br>
<div class="inputBox">
<input type="text" name="nome" id="nome" class="inputUser" required>
<label for="nome" class="labelInput">Nome completo</label>
</div>
<br><br>
<div class="inputBox">
<input type="text" name="email" id="email" class="inputUser" required>
<label for="email" class="labelInput">Email</label>
</div>
<br><br>
<div class="inputBox">
<input type="tel" name="telefone" id="telefone" class="inputUser" required>
<label for="telefone" class="labelInput">Telefone</label>
</div>
<p>Sexo:</p>
<input type="radio" id="feminino" name="genero" value="feminino" required>
<label for="feminino">Feminino</label>
<br>
<input type="radio" id="masculino" name="genero" value="masculino" required>
<label for="masculino">Masculino</label>
<br>
<input type="radio" id="outro" name="genero" value="outro" required>
<label for="outro">Outro</label>
<br><br>
<label for="data_nascimento"><b>Data de Nascimento:</b></label>
<input type="date" name="data_nascimento" id="data_nascimento" required>
<br><br><br>
<div class="inputBox">
<input type="text" name="cidade" id="cidade" class="inputUser" required>
<label for="cidade" class="labelInput">Cidade</label>
</div>
<br><br>
<div class="inputBox">
<input type="text" name="estado" id="estado" class="inputUser" required>
<label for="estado" class="labelInput">Estado</label>
</div>
<br><br>
<div class="inputBox">
<input type="text" name="endereco" id="endereco" class="inputUser" required>
<label for="endereco" class="labelInput">Endereço</label>
</div>
<br><br>
<input type="submit" name="submit" id="submit">
</fieldset>
</form>
</div>
</body>
</html>