-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (73 loc) · 3.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<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=Acme&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<title>Frontend Mentor | Password generator app</title>
</head>
<body>
<h1>Password Generator</h1>
<div class="container">
<div class="password-output">
<div class="generatedPassword" id="generated-password"><span class="generatedPasswordPlaceHolder">Pa$$w0rD!</span>
</div>
<div id="copy-password">
<span class="copiedText" id="copied-text">COPIED</span>
<img id="img-copy" class="copy-icon" src="assets/images/icon-copy.svg" alt="">
</div>
</div>
<div class="main-section">
<div class="character-length">
<p>Character Length <span id="char-length-value">0</span></p>
<input type="range" id="char-length-slider" min="0" max="20" value="0">
</div>
<div class="checkboxes">
<div>
<input type="checkbox" id="uppercase">
<label>Include Uppercase Letters</label>
</div>
<div>
<input type="checkbox" id="lowercase">
<label>Include Lowercase Letters</label>
</div>
<div>
<input type="checkbox" id="numbers">
<label>Include Numbers</label>
</div>
<div>
<input type="checkbox" id="symbols">
<label>Include Symbols</label>
</div>
</div>
<div class="password-strength">
<div>
<h3>Strength</h3>
</div>
<div class="strengthLevel">
<div class="strengthLevelContainer">
<span id="strength-level-text"></span>
<div class="strengthLevels tooWeak" id="tooWeak"></div>
<div class="strengthLevels weak" id="weak"></div>
<div class="strengthLevels medium" id="medium"></div>
<div class="strengthLevels strong" id="strong"></div>
</div>
</div>
</div>
<div>
<button class="btn" id="generate-button">
Generate
<svg class="arrow-right" width="8" height="8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<path d="m5.106 12 6-6-6-6-1.265 1.265 3.841 3.84H.001v1.79h7.681l-3.841 3.84z"/>
</svg>
</button>
</div>
</div>
</div>
</body>
</html>