-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (52 loc) · 2.96 KB
/
index.html
File metadata and controls
55 lines (52 loc) · 2.96 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
<!DOCTYPE html>
<html lang="es-PE">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Encriptador</title>
<meta name="description" content="Proyecto de Alura Laram - Oracle One" />
<meta name="author" content="Jhon Marco Achata Limachi" />
<script src="https://cdn.tailwindcss.com"></script>
<script defer src="https://app.embed.im/snow.js"></script>
</head>
<body class="h-screen flex flex-col bg-slate-900">
<header class="p-5">
<img src="./images/logoc.svg" alt="Alura Logo" />
</header>
<main class="container m-auto flex flex-col md:flex-row md:w-10/12 grow w-11/12 gap-3 md:gap-0">
<div class="w-full grow md:px-10 px-0 flex flex-col gap-4">
<textarea class="w-full border resize-none grow p-2 text-2xl shadow-md" name="message" id="message"
placeholder="Ingrese en texto aquí..." onkeyup="this.value=this.value.toLocaleLowerCase();"></textarea>
<div class="flex gap-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5">
<path fill-rule="evenodd" class="text-red-500"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z"
clip-rule="evenodd" />
</svg>
<small class="text-red-400">Solo letras minúsculas y sin acentos</small>
</div>
<div class="w-full flex flex-col md:flex-row space-between gap-x-4 gap-y-4 md:gap-y-0">
<button
class="encriptar w-full md:w-1/2 border py-2 px-8 rounded-xl bg-indigo-600 text-white">Encriptar</button>
<button
class="desencriptar w-full md:w-1/2 border-2 text-indigo-100 border-indigo-300 py-2 px-8 rounded-xl">Desencriptar</button>
</div>
</div>
<div class="w-full md:w-2/6 border p-1 bg-white shadow-md">
<div class="result flex flex-col h-full gap-4 hidden">
<p class="text-slate-600 grow"></p>
<button
class="w-full border-2 border-indigo-300 hover:bg-indigo-700 hover:text-white text-indigo-700 py-2 px-8 rounded-xl copy">Copiar</button>
</div>
<div class="not-found">
<img src="./images/muneco.svg" class="hidden md:block" alt="muñeco" />
<h4 class="text-xl text-center font-bold">Ningún mensaje fue encontrado</h4>
<p class="text-slate-600 text-center text-xs">Ingresa el texto que deseas encriptar o desencriptar.</p>
</div>
</div>
</main>
<footer class="mt-20 p-5 text-center text-white">Hecho por <a href="https://linkedin.com/in/jhonachata"
target="_blank" class="font-semibold text-blue-400">@jhonachata</a></footer>
<script src="./main.js"></script>
</body>
</html>