-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (66 loc) · 3.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PW-Generator</title>
<link href="/dist/main.css" rel="stylesheet">
<!-- <script src="https://kit.fontawesome.com/434622864a.js" crossorigin="anonymous"></script> //REMOVE COMMENT FOR SITE -->
</head>
<!--min-w-[400px] //REMOVE FOR SITE //ADD m-h-screen-->
<body class="min-w-[400px] m-0 p-0 flex flex-col justify-between bg-color1 text-color2 box-border dark:bg-color7 dark:text-color1">
<!-- header -->
<header class="flex justify-between py-2 px-5 bg-color7 text-color1 dark:bg-color1 dark:text-color2">
<!-- <h1 class="font-medium" alt="logo for the password generator site"><i class="fa-solid fa-building-shield text-color1 dark:text-color2"></i>Password<span class="text-color3">Generator</span></h1> //REMOVE COMMENT FOR SITE-->
<h1 class="font-medium flex align-middle" alt="logo for the password generator site"><img src="images/logo-dark.svg" alt="logo for darkmode" class="w-5 hidden dark:block"><img src="images/logo-light.svg" alt="img for lightmode" class="w-5 dark:hidden">Password<span class="text-color3">Generator</span></h1>
<!-- <p class="toggle-dark" alt="light and dark mode toggle"><i class="fa-solid fa-circle-half-stroke dark:text-color2"></i></p>
//REMOVE COMMENT FOR SITE -->
<p class="toggle-dark" alt="toggle for light and dark mode"><img src="images/dark-icon.svg" alt="img for dark" class="w-5 hidden dark:block"><img src="images/light-icon.svg" alt="img for light" class="w-5 dark:hidden">
</p>
</header>
<!-- h-[90%] for site -->
<div class=" h-[90vh] flex flex-col justify-center items-center">
<div class="shadow-sm shadow-color7 dark:shadow-color1 p-2">
<h1 class="text-2xl font-bold text-color2 dark:text-color1">Generate a</h1>
<h2 class="text-2xl font-bold text-color3 dark:text-color5">random password</h2>
<p class="text-xs mt-2 text-color4 dark:font-medium">Never use an insecure password again.</p>
<!-- button1 -->
<div class="flex justify-between text-sm mt-4">
<label for="number">Number</label>
<input type="checkbox" class="accent-color6 dark:accent-color1" id="number" checked>
</div>
<!-- button2 -->
<div class="flex justify-between text-sm">
<label for="charater">Symbol</label>
<input type="checkbox" class="accent-color6 dark:accent-color1" id="symbol" checked>
</div>
<!-- button3 -->
<div class="flex justify-between text-sm">
<label for="alphabeth">Alphabeth</label>
<input type="checkbox" class="accent-color6 dark:accent-color1" id="alphabeth" checked>
</div>
<div class="flex justify-between mt-4">
<button id="pw-gen" class="text-xs text-white bg-color3 dark:bg-color5 font-bold dark:text-color2 px-2 py-1 rounded ">Generate passwords</button>
<select id="pw-length" class="text-xs text-white bg-color3 dark:bg-color5 font-bold dark:text-color2 p-1 rounded ">
<option value="10" selected>10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
</select>
</div>
<p id="pw-display" class="mt-2 mb-3 text-center font-bold "></p>
<hr class="border-color4 border-solid">
<div class="flex my-3 text-sm gap-x-4 justify-between w-full">
<button id="save-btn" class="bg-color2 dark:bg-color6 rounded text-color5 w-6/12 font-bold">SAVE</button>
<button id="clear-btn" class="bg-color2 dark:bg-color6 rounded text-color5 w-6/12 font-bold">CLEAR ALL</button>
</div>
<div id="storage-box" class="shadow-sm hidden shadow-color7 dark:shadow-color1 p-2">
</div>
</div>
</div>
<footer class="py-1 text-center bg-color7 text-color1 dark:bg-color1 dark:text-color2 font-medium text-base">Made by <a target="_blank" class="text-color3" href="https://github.com/f-lajoc" class="text-color1"> Lajoc_devs</a></footer>
<script src="js/script.js"></script>
</body>
</html>