-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (112 loc) · 4.53 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
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulário de Cadastro - Módulo 10</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" origem cruzada>
<link href='https://fonts.googleapis.com/css?family=Roboto:wght@400;700&display=swap' rel='folha de estilo'>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css" />
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<cabeçalho>
<h1>Adquira seu veículo agora mesmo! </h1>
</cabeçalho>
<div id="carrossel-imagens">
<img src="slide1.png" alt="Carro da Porsche">
<img src="fotobmw.png" alt="Carro da BMW">
<img src="slide3.png" alt="Carro da Ford" >
</Div>
<div class="contêiner">
<h2>Insira seus dados para finalização da compra</h2>
<id do formulário="formulário">
<div class="form-campo">
<label for="nome">Nome completo</label>
<input type="text" id="nome" name="nome" placeholder="John Doe">
</div>
<div class="form-campo">
<label for="email">E-mail</label>
<input type="email" id="email" name="email" placeholder="[email protected]">
</Div>
<div class="form-campo">
<label for="telefone">Telefone</label>
<input type="tel" id="telefone" name="telefone">
</Div>
<div class="form-campo">
<label for="cpf">CPF</label>
<input type="text" id="cpf" name="cpf">
</Div>
<div class="form-campo">
<label for="endereco">Endereço completo</label>
<input type="text" id="endereco" name="endereco" placeholder="Rua, número, bairro, cidade, estado">
</Div>
<div class="form-campo">
<rótulo para="cep">CEP</label>
<input type="text" id="cep" name="cep">
</Div>
<button type="submit">Enviar</button>
</forma>
</Div>
<script src="jquery.mask.min.js"></script>
<script src="jquery.validate.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js"></script>
<script src="./js/messages_pt_BR.min.js"></script>
<script src="main.js"></script>
<script>
$(document).ready(function() {
$("#carrossel-imagens").slick({
dots: true,
infinite: true,
speed: 300,
slidesToShow: 1,
slidesToScroll: 1
});
})
$("#formulario").validate({
rules: {
nome: "required",
email: {
required: true,
email: true
},
telefone: {
required: true,
phoneUS: true
},
cpf: {
required: true,
cpf: true
},
endereco: "required",
cep: {
required: true,
cep: true
}
},
messages: {
nome: "Por favor, preencha o nome completo.",
email: "Por favor, preencha um endereço de e-mail válido.",
telefone: "Por favor, preencha um telefone válido.",
cpf: "Por favor, preencha um CPF válido.",
endereco: "Por favor, preencha o endereço completo.",
cep: "Por favor, preencha um CEP válido."
}
});
jQuery(function($) {
$.mask.definitions['~'] = '[+-]';
$('#telefone').mask('(99) 9999-9999');
$('#cep').mask('99999-999');
$('#cpf').mask('999.999.999-99');
});
$('.carousel').carousel({
interval: 2000
});
</script>
</body>
</Html>