-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (87 loc) · 2.55 KB
/
index.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
<!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>Teste</title>
<style>
.content {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
flex-direction: column;
}
.content form {
width: 450px;
padding: 30px;
border-radius: 10px;
border: 1px solid #ccc;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
box-shadow: 3px 5px 5px #CCC;
}
.content form input {
width: 100%;
font-size: 14px;
margin: 5px 0;
padding: 5px;
}
.content form .btn-send {
padding: 10px 30px;
background: rgb(1, 180, 1);
color: #FFF;
border: none;
border-radius: 10px;
margin-top: 10px;
cursor: pointer;
}
.content form .btn-send:hover {
background: rgb(1, 143, 1);
}
.content .resultado-ok {
width: 450px;
padding: 10px 30px;
background: #8de401;
border-radius: 10px;
color: #000;
margin-top: 25px;
display: none;
}
.content .resultado-erro {
width: 450px;
padding: 10px 30px;
background: #e40101;
border-radius: 10px;
color: #FFF;
margin-top: 25px;
display: none;
}
</style>
</head>
<body>
<div class="content">
<form>
<input type="text" placeholder="digite a origem.." class="origem" />
<input type="text" placeholder="digite o destino.." class="destino" />
<button class="btn-send" type="button" onclick="calculaValor()">
Consultar
</button>
</form>
<div class="resultado-ok">
Valor do orçamento: <br>
<span class="valor"></span>
</div>
<div class="resultado-erro">
Tivemos um erro ao solicitar o orçamento, favor entre em contato com nosso whats...
</div>
</div>
<script async
src="https://maps.googleapis.com/maps/api/js?key=GOOGLE_API_KEY&libraries=places">
</script>
<script src="./index.js"></script>
</body>
</html>