-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
84 lines (80 loc) · 5.02 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
<!DOCTYPE html>
<html lang="es">
<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>Encriptador</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.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=Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/index.css">
</head>
<body>
<main class="my-4 pb-5">
<div class="container-fluid">
<div class="row d-flex gap-3 justify-content-center mx-auto">
<div class="py-3">
<a href="#"><img id="logoAlura" class="img-fluid position-absolute ms-4" src="assets/img/logo.png" alt="logo de alura"></a>
<div class="divHeader text-center pb-2">
<h1>Challenge ONE</h1>
<p>Encriptador/Desencriptador de texto</p>
<div class="ms-4 my-2 form-switch">
<input class="form-check-input border-0 fs-3" type="checkbox" onclick="modoOscuro();"/>
</div>
<strong>Claro/Oscuro</strong>
</div>
</div>
<div class="div1 draw col-md-6 p-0">
<form action="" class="form-control">
<div class="div_palabra position-relative p-3">
<label for="palabra" class="form-label"></label>
<textarea type="text" class="form-control fs-4 w-100" name="palabra" id="palabra" onkeypress="return check(event)" placeholder="Ingresa el texto aquí.." rows="10"></textarea>
<small class="small bi bi-exclamation-circle"><em> Solo letras minúsculas y sin acentos</em></small>
</div>
<div class="divButtons pb-4 px-3">
<button id="btnEncryp" class="btn bg-gradient p-3 w-100" type="button" onclick="encriptar();"><i class="bi bi-envelope-dash-fill"> Encriptar</i></button>
<button id="btnDesencryp" class="btn bg-gradient p-3 w-100" type="button" onclick="desencriptar();"><i class="bi bi-envelope-open-fill"> Desencriptar</i></button>
</div>
</form>
</div>
<div class="div2 draw col-md-4">
<div class="position-relative px-3 text-center">
<div class="div_mensaje py-4">
<label for="mensaje" class="form-label"></label>
<textarea type="text" class="form-control fs-4 border-0 w-100" name="mensaje" id="mensaje" rows="10" readonly></textarea>
<button id="btnCopy"
class="btn btn-lg rounded-3 mt-5 mb-2"
type="button" onclick="copyText();"><i class="bi bi-clipboard2"> Copiar</i></button>
</div>
<div id="div_imagen" class="position-absolute top-0 mt-5 px-5">
<div class="d-flex gap-3 flex-wrap justify-content-center">
<img id="imgNoMensaje" src="assets/img/img_ningunMensaje.png" class="img-fluid" alt="no_hay_texto">
<h1 class="fs-2 fw-bold pt-3">Ningún mensaje fue encontrado</h1>
<p><i>Ingresa el texto que deseas encriptar o desencriptar</i></p>
</div>
</div>
</div>
</div>
</div>
</main>
<div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center mt-4 border-top border-2">
<div class="col-md-4 d-flex align-items-center">
<span class="mb-3 mb-md-0">© Gian Franco Crova 2023</span>
</div>
<ul class="nav col-md-4 justify-content-end list-unstyled">
<a class="item1 ms-3 fs-1" href="https://www.linkedin.com/in/gian-crova/" target="_blank" rel="noopener"><i class="bi bi-linkedin"></i></a>
<a class="item3 ms-3 fs-1" href="https://github.com/gfCrova" target="_blank" rel="noopener"><i class="bi bi-github"></i></a>
</ul>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous"></script>
<script src="src/index.js"></script>
</body>
</html>