-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
63 lines (62 loc) · 4.18 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">
<title>Password Generator</title>
<link rel="shortcut icon" href="./image/lock-closed.ico" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="flex flex-col h-screen min-h-[600px] justify-center text-slate-400 bg-gray-700 overflow-hidden">
<main class="flex justify-center items-center">
<div id="app" class="flex flex-col items-center md:flex-row lg:gap-20 justify-between gap-10">
<div class="flex flex-col gap-y-3 justify-center items-center bg-gray-800 h-[220px] md:w-[280px] md:h-[280px] rounded-md drop-shadow-lg">
<input id="password" placeholder="Password" type="password" class="w-4/5 h-8 p-1 placeholder:italic placeholder:text-slate-400 rounded shadow bg-gray-700 focus-visible:outline-none">
<button id="encode" class="px-6 py-2 bg-gray-700 rounded-md duration-200 hover:bg-gray-600 hover:text-slate-300">Encode</button>
</div>
<div class="flex flex-col items-center justify-center">
<button id="encode" data-bs-toggle="modal" data-bs-target="#menu" class="px-6 py-2 bg-gray-800 rounded-md duration-200 hover:bg-gray-600 hover:text-slate-300">Configurations</button>
<img src="./image/arrow.svg" alt="->" class="w-20 rotate-90 lg:rotate-0">
</div>
<div class="flex flex-col gap-y-3 justify-center items-center bg-gray-800 h-[200px] md:w-[280px] md:h-[280px] rounded-md drop-shadow-lg">
<input id="result" placeholder="Encoded" type="password" class="w-4/5 h-8 p-1 placeholder:italic placeholder:text-slate-400 rounded shadow bg-gray-700 focus-visible:outline-none pointer-events-none">
<button id="copy" class="px-6 py-2 bg-gray-700 rounded-md duration-200 hover:bg-gray-600 hover:text-slate-300">Copy</button>
</div>
</div>
</main>
<!-- Modal -->
<div class="modal fade" id="menu" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content bg-gray-700">
<div class="modal-header">
<h1 class="modal-title fs-5" id="staticBackdropLabel">Configurações</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="w-50 mx-auto">
<div class="form-check form-switch justify-self-start">
<input class="form-check-input" type="checkbox" role="switch" id="base64">
<label class="form-check-label" for="flexSwitchCheckDefault">Base64 Encode</label>
</div>
<div class="form-check form-switch justify-self-start">
<input class="form-check-input" type="checkbox" role="switch" id="special_characters">
<label class="form-check-label" for="flexSwitchCheckDefault">Special characters</label>
</div>
<div class="form-check form-switch justify-self-start">
<input class="form-check-input" type="checkbox" role="switch" id="capital_letters">
<label class="form-check-label" for="flexSwitchCheckDefault">Capital Letters</label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" id="save" class="px-6 py-2 bg-gray-800 rounded-md duration-200 hover:bg-gray-600 hover:text-slate-300" data-bs-dismiss="modal">Save</button>
</div>
</div>
</div>
</div>
</body>
<script src="./js/script.js"></script>
</html>