-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
51 lines (45 loc) · 2.07 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Password Generator</title>
<!-- Google Fonts -->
<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@400;500&family=Karla:wght@800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="index.css">
<script defer src="index.js"></script>
</head>
<body>
<main>
<h1 class="title">Generate a <span class="accent-text">random password</span></h1>
<p class="subtitle">Never use an insecure password again.</p>
<div class="controls">
<div>
<label for="password-length">Length: (8-20)</label>
<div class="length-control">
<button id="decrement">-</button>
<input type="number" id="password-length" min="8" max="20" inputmode="numeric">
<button id="increment">+</button>
</div>
</div>
<button id="generate">
<svg width="14" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.3.046A1 1 0 0 1 9 1v5h4a1 1 0 0 1 .82 1.573l-7 10A1 1 0 0 1 5 17v-5H1a1 1 0 0 1-.82-1.573l7-10A1 1 0 0 1 8.3.047Z" fill="#fff"/>
</svg>
<span>Generate passwords</span>
</button>
</div>
<div class="passwords">
<ul class="password-list">
<li><button class="password hidden">nfJjy!dDvR&ial</button></li>
<li><button class="password hidden">eg<xWij@veiPUwK</button></li>
<li><button class="password hidden">QYY?kiYVLY)LjLi</button></li>
<li><button class="password hidden">NcR^pIDfUZ?vY+M</button></li>
</ul>
</div>
</main>
<div id="pop-up" class="pop-up">Password copied to clipboard</div>
</body>
</html>