-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (63 loc) · 3.26 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
<!DOCTYPE html>
<html lang="pt-br">
<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">
<meta property="og:url" content="https://www.figma.com/file/tvFEYhVfZTjdJ5P24RGV21/Alura-Challenge---Desafio-1---L%C3%B3gica">
<title>Encriptador | Desafio Alura</title>
<link rel="stylesheet" href="reset.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div>
<a href="#"><img src="img/logo.png" alt="Logo da Alura"></a>
</div>
</header>
<main>
<section>
<textarea class="text-cript" cols="10" rows="15" placeholder="Digite seu texto" spellcheck="false" autofocus required></textarea>
<div class="container-warning">
<!-- Put the h6::before "img/exclamation.png" here -->
<img src="svg/exclamation.svg" alt="Ponto de Exclamação">
<h6>Apenas letras minúsculas e sem acento.</h6>
</div>
<div class="container-btn">
<button class="btn-cript" onclick="cript()"><span>Criptografar</span></button>
<button class="btn-descript" onclick="descript()"><span>Descriptografar</span></button>
</div>
</section>
<section>
<!-- Semantical = "without a text to encrypt" -->
<div class="container-withoutMsg">
<img src="img/character.png" alt="Personagem segurando uma Lupa">
<div>
<h2>Nenhuma mensagem <br> encontrada</h2>
<h4>Digite um texto que você deseja <br> criptografar ou descriptografar.</h4>
</div>
</div>
<!-- Remove "btn-copy" & "text-descript" when "container-withoutMsg" appear -->
<textarea class="text-descript" cols="10" rows="15" spellcheck="false" readonly></textarea>
<button class="btn-copy" type="button" onclick="copy()">
<i id="copy" class="fa-solid fa-copy"></i>
<i id="check" class="fa-solid fa-check fa-bounce"></i>
<span>Copiar</span>
</button>
</section>
</main>
<footer>
<div>
<h6>Desenvolvido por Victor Ferreira | </h6>
<!-- Put "h6::after" LinkedIn & GitHub icons here -->
<a href="https://www.linkedin.com/in/victor-ferreira-dev" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-linkedin-in"></i></a>
<a href="https://github.com/victor-ferreira-dev" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-github"></i></a>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>