-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
147 lines (125 loc) · 3.02 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Tag META define metadados sobre um documento HTML. Metadados são dados (informações) sobre dados -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="Gerador de senhas">
<link rel="stylesheet" href="style.css">
<title>Gerador de senha</title>
</head>
<body>
<img class="logo" src="c:\Users\jordanarego\Downloads\logo.png" alt="Gerador senha logo"/>
<div class="container-input">
<span>Tamanho <span id="valor"></span> caracteres</span>
<input id="slider" class="slider" type="range" min="5" max="25" value="15"/>
<button id="button" class="button-cta" onclick="generatePassword()">Gerar senha</button>
</div>
<div id="container-password" onclick="copyPassword()" class="container-password hide">
<span class="title">Sua senha gerada foi:</span>
<span id="password" class="password"></span>
<span class="tooltip">Clique na senha para copiar. 👆</span>
</div>
<script src="script.js"></script>
</body>
</html>
<style>*{
margin: 0 auto;
width: 100%;
box-sizing: border-box;
font-family: sans-serif;
}
body{
background-color: #18181B;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.logo{
max-width: 600px;
margin-bottom: 24px;
}
.container-input{
max-width: 480px;
margin: 14px 0;
}
.container-input span {
color: #FFF;
font-size: 22px;
}
.slider {
margin-top: 8px;
-webkit-appearance: none;
width: 100%;
height: 18px;
border-radius: 5px;
background: #DFDFDF;
outline: none;
opacity: 0.7;
}
.button-cta{
height: 40px;
margin-top: 40px;
background-color: #3EB72B;
border:0;
border-radius: 4px;
color: #FFF;
font-size: 20px;
font-weight: bold;
cursor: pointer;
}
.container-password{
max-width: 480px;
margin: 14px 0;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
}
.title{
text-align: center;
color: #FFF;
font-size: 28px;
margin-top: 24px;
margin-bottom: 8px;
}
.password{
height: 60px;
background-color: rgba(0,0,0,0.40);
border: 1px solid #313131;
display: flex;
justify-content: center;
align-items: center;
color: #FFF;
border-radius: 4px;
transition: transform 0.5s;
}
.password:hover{
transform: scale(1.05);
border-color: #FFF;
}
.hide{
display: none;
}
.tooltip{
color: #FFF;
position: relative;
top: 20px;
padding: 6px 8px;
font-size: 16px;
border-radius: 6px;
background: rgb(15, 15, 15);
opacity: 0;
visibility: hidden;
transition: all .5s ease-in-out;
text-align: center;
}
.container-password:hover .tooltip{
bottom: 50px;
visibility: visible;
opacity: 1;
}</style>