-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsk-perfil.html
More file actions
354 lines (314 loc) · 15 KB
/
Copy pathsk-perfil.html
File metadata and controls
354 lines (314 loc) · 15 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html lang="PT-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Skillink - Meu Perfil </title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css"
integrity="sha512-5Hs3dF2AEPkpNAR7UiOHba+lRSJNeM2ECkwxUIxC1Q/FLycGTbNapWXB4tP889k5T5Ju8fs4b1P5z/iB4nMfSQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="CSS/Style.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script src="https://www.w3schools.com/lib/w3.js"></script>
</head>
<body>
<header>
<div class="header">
<div class="header-left">
<a href="index.html" class="logo"><img src="IMG/Logo_SkillinkHT.png" alt="Skillink"></a>
<button class="button-menu"><img src="IMG/menu_white_36dp.svg"></button>
</div>
<div class="header-right w3-animate-top">
<a href="index.html"><i class="fas fa-home"></i>Home</a>
<a href="sk-vaga-empresa.html"><i class="fas fa-building"></i>Vagas Empresas</a>
<a href="sk-vaga-freela.html"><i class="fas fa-briefcase"></i>Vagas Freelancer</a>
<a href="sk-perfil.html"><i class="fas fa-user"></i>Perfil</a>
<a href="#" id="button-login" onclick="document.getElementById('Modal-Login-Cadastro').style.display='block'"
class="w3-button">Acessar</a>
</div>
</div>
</header>
<main class="container">
<div class="blob-outer-container">
<div class="blob-inner-container">
<div class="blob"></div>
</div>
</div>
<div class="barra-main">
<div class="search-container">
<input type="text" placeholder="Pesquise aqui...">
</div>
</div>
<div class="main-body-profile">
<div class="menu-profile">
<a href="sk-minhas-vagas.html" class="button-profile-menu"><i class="fa-solid fa-bookmark fa-2x"></i></i>
<p>Minhas Vagas</p>
</a>
<a href="sk-perfil.html" class="button-profile-menu"><i class="fa-solid fa-circle-user fa-2x"></i></i>
<p>Meu Perfil</p>
</a>
<a href="sk-mensagens.html" class="button-profile-menu"><i class="fa-solid fa-envelope fa-2x"></i>
<p>Mensagens</p>
</a>
</div>
<div id="Perfil" class="content-profile-body-perfil">
<div class="container-perfil">
<div class="header-container-perfil">
<img class="perfil-user-photo" src="img/icon-user.jpeg">
<h3>Nome Usuário</h3>
<h4>Cargo Usuário</h4>
</div>
<div class="body-container-perfil">
<section>
<div class="section-head">
<h3>Dados Pessoais</h3>
<button type="button" onclick="saveInfoPessoais(); alterarNomeUser();">Salvar</button>
</div>
<div class="section-body">
<form id="DadosPessoais">
<fieldset>
<label for="Pnome">Nome:</label>
<input type="text" id="Pnome" placeholder="Insira seu nome">
<label for="Pfone">Telefone:</label>
<input type="text" id="Pfone" maxlength="15" oninput="formatPhone(this)"
placeholder="(XX) xxxxx-xxxx">
<label for="academic-level">Nivel Academico:</label>
<select name="academic-level" id="academic-level">
<option value="fundamental-i">Ensino Fundamental I</option>
<option value="fundamental-ii">Ensino Fundamental II</option>
<option value="medio-regular">Ensino Médio Regular</option>
<option value="medio-tecnico">Ensino Médio Técnico</option>
<option value="tecnico">Curso Técnico</option>
<option value="graduacao-bacharelado">Graduação - Bacharelado</option>
<option value="graduacao-licenciatura">Graduação - Licenciatura</option>
<option value="graduacao-tecnologo">Graduação - Tecnólogo</option>
<option value="pos-lato-sensu">Pós-graduação Lato Sensu (Especialização, MBA)</option>
<option value="mestrado">Mestrado</option>
<option value="doutorado">Doutorado</option>
<option value="pos-doutorado">Pós-doutorado</option>
<option value="eja-medio">Educação de Jovens e Adultos - Ensino Médio</option>
</select>
<label for="Idade">Data de Nascimento</label>
<input type="date" id="Idade" name="Idade" placeholder="(DD-MM-AAAA)">
<label for="github">Perfil do GitHub:</label>
<input type="text" id="github" placeholder="github.com/username" oninput="formatGitHub(this)">
<label for="github">Perfil do BeHance:</label>
<input type="text" id="behance" placeholder="BeHance.net/username" oninput="formatBeHance(this)">
</fieldset>
</form>
</section>
</div>
<div class="body-container-perfil">
<div class="section-head">
<h3>Experiência Academica</h3>
<button type="button">Salvar</button>
</div>
<div id="containerACM" class="section-body">
<form>
<fieldset>
<label for="CTO-ACM">Centro Academico</label>
<input type="text" id="CTO-ACM" placeholder="Centro Academico">
<label for="PRD-ACM">Periodo</label>
<input type="text" id="PRD-ACM" placeholder="Periodo">
<label for="Curso-ACM">Curso</label>
<input type="text" id="Curso-ACM" placeholder="Curso">
<label for="CTG-ACM">Formação</label>
<select id="CTG-ACM" name="formacoes">
<option value="tecnico">Curso Técnico</option>
<option value="graduacao_bacharelado">Graduação - Bacharelado</option>
<option value="graduacao_tecnologica">Graduação - Tecnológica</option>
<option value="pos_graduacao">Pós-graduação</option>
<option value="mestrado">Mestrado</option>
<option value="doutorado">Doutorado</option>
<option value="cursos_livre">Cursos Livres</option>
</select>
</fieldset>
</form>
</div>
</div>
<button id="Add-ACM">Adicionar Experiência</button>
<div id="containerACMClone"> </div>
<div class="body-container-perfil">
<div class="section-head">
<h3>Experiência Profissional</h3>
<button type="button">Salvar</button>
</div>
<div id="containterEXP" class="section-body">
<section>
<form>
<fieldset>
<label for="EXPcargo">Cargo</label>
<input type="text" id="EXPcargo" placeholder="Cargo">
<label for="EXPperiodo">Periodo</label>
<input type="text" id="EXPperiodo" placeholder="Tempo">
<label for="EXPempresa">Empresa</label>
<input type="text" id="EXPempresa" placeholder="Nome Empresa">
<label for="EXPsobre">Sobre</label>
<textarea id="EXPsobre" rows="5" placeholder="Conte sobre sua experiência no cargo"></textarea>
</fieldset>
</form>
</section>
</div>
</div>
<button id="Add-EXP">Adicionar Experiência</button>
<div id="containerEXPClone"></div>
</div>
</div>
</div>
</div>
</main>
<div id="Modal-Login-Cadastro" class="w3-modal ">
<div class="w3-modal-content w3-animate-top w3-border-0">
<div class="Modalcontent w3-container w3-animate-top">
<div class="header-modal">
<h3>Conecte-se Conosco</h3>
<span onclick="document.getElementById('Modal-Login-Cadastro').style.display='none'"
class="exit-modal">×</span>
</div>
<div class="body-modal">
<div class="login">
<h4>LOGIN</h4>
<form>
<label for="Log-mail">E-mail:</label><br>
<input type="email" id="Log-mail" name="Log-mail" placeholder="E-mail">
<br>
<label for="Log-pass">Senha:</label><br>
<input type="password" id="Log-pass" name="Log-pass" placeholder="Senha">
<br>
</form>
<a href="sk-perfil.html"><button class="modal-acess-button"></a>Acesse</button></a>
</div>
<div class="cadastro">
<h4>CADASTRE-SE</h4>
<form>
<label for="Cad-nome">Nome</label><br>
<input type="text" id="Cad-nome" name="Cad-nome" placeholder="Nome">
<br>
<label for="Cad-mail">E-mail:</label><br>
<input type="email" id="Cad-mail" name="Cad-mail" placeholder="user@email.com">
<br>
<label for="Cad-pass">Senha:</label><br>
<input type="password" id="Cad-pass" name="Cad-pass" placeholder="Senha">
<br>
<label for="Log-mail">Confirme sua senha:</label><br>
<input type="password" id="Log-mail" name="Log-mail" placeholder="Confirme a sua senha">
</form>
<a href="sk-perfil.html"> <button class="modal-acess-button">Cadastre-se</button></a>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="footer">
<div class="footer-content">
<div class="column-footer">
<div class="icons-footer">
<h3>Conecte-se Conosco</h3>
<span><a href="#"><img class="footer-icons" src="IMG/google.png" alt="Google"></a></span>
<span><a href="#"><img class="footer-icons" src="IMG/instagram.png" alt="Instagram"></a></span>
<span><a href="#"><img class="footer-icons" src="IMG/github.png" alt="Github"></a></span>
</div>
</div>
<div class="column-footer">
<ol>
<ul>
<h3>Skillink</h3>
</ul>
<ul><a href="sk-sobrenos.html">Conheça a Skillink</a></ul>
<ul><a href="sk_pp.html" target="_blank">Politica de privacidade</a></ul>
<ul><a href="sk_termos.html" target="_blank">Termos de Uso</a></ul>
</ol>
</div>
<div class="column-footer">
<ol>
<ul>
<h3>Navegue</h3>
</ul>
<ul><a href="sk-vaga-freela.html">Vagas Freelancer</a></ul>
<ul><a href="sk-vaga-empresa.html">Vagas Empresas</a></ul>
<ul><a href="sk-perfil.html">Perfil</a></ul>
</ol>
</div>
</div>
</div>
</footer>
<script>
function saveInfoPessoais() {
const nome = document.getElementById("Pnome").value.trim();
const telefone = document.getElementById("Pfone").value.trim();
const nivelAcademico = document.getElementById("academic-level").value;
const dataNascimento = document.getElementById("Idade").value;
const github = document.getElementById("github").value.trim();
const behance = document.getElementById("behance").value.trim();
if (!nome) {
alert("Por favor, insira seu nome!");
return;
}
document.getElementById("Pnome").value = nome;
document.getElementById("Pfone").value = telefone || "(XX) xxxxx-xxxx";
document.getElementById("academic-level").value = nivelAcademico;
document.getElementById("Idade").value = dataNascimento || "";
document.getElementById("github").value = github || "github.com/username";
document.getElementById("behance").value = behance || "Behance.net/username";
alert("Informações salvas com sucesso!");
}
// Função para alterar nome do usuário no header
function alterarNomeUser() {
const nomeInput = document.getElementById("Pnome").value.trim();
const h3Element = document.querySelector(".header-container-perfil h3");
if (h3Element) {
h3Element.textContent = nomeInput || "Usuário";
}
}
// Funções para formatar telefone e URLs
function formatPhone(input) {
let value = input.value.replace(/\D/g, "");
if (value.length > 10) {
input.value = `(${value.slice(0, 2)}) ${value.slice(2, 7)}-${value.slice(7, 11)}`;
} else if (value.length > 5) {
input.value = `(${value.slice(0, 2)}) ${value.slice(2, 6)}-${value.slice(6)}`;
} else if (value.length > 2) {
input.value = `(${value.slice(0, 2)}) ${value.slice(2)}`;
}
}
function formatGitHub(input) {
input.value = `github.com/${input.value.replace("github.com/", "").replace(/[^a-zA-Z0-9-_]/g, "")}`;
}
function formatBeHance(input) {
input.value = `Behance.net/${input.value.replace("Behance.net/", "").replace(/[^a-zA-Z0-9-_]/g, "")}`;
}
// Função para clonar divs e adicionar botão de excluir
function cloneDivAndAddDeleteButton(buttonId, originalDivId, cloneContainerId) {
const cloneButton = document.getElementById(buttonId);
const originalDiv = document.getElementById(originalDivId);
const cloneContainer = document.getElementById(cloneContainerId);
cloneButton.addEventListener('click', () => {
// Clonar o div original
const clonedDiv = originalDiv.cloneNode(true);
clonedDiv.classList.add('cloned');
// Criar o botão de excluir
const deleteButton = document.createElement('button');
deleteButton.textContent = 'Excluir';
deleteButton.style.margin = '5px';
deleteButton.style.backgroundColor = '#F57955';
deleteButton.style.color = 'white';
deleteButton.style.border = 'none';
deleteButton.style.padding = '5px 10px';
deleteButton.style.cursor = 'pointer';
deleteButton.style.borderRadius = '15px';
deleteButton.style.width = '30%'
// Adicionar a funcionalidade de excluir
deleteButton.addEventListener('click', () => {
clonedDiv.remove();
});
clonedDiv.appendChild(deleteButton);
cloneContainer.appendChild(clonedDiv);
});
}
cloneDivAndAddDeleteButton('Add-EXP', 'containterEXP', 'containerEXPClone');
cloneDivAndAddDeleteButton('Add-ACM', 'containerACM', 'containerACMClone');
</script>
<script src="js/inter.js" ></script>
</body>
</html>