-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle6.html.erb
115 lines (102 loc) · 2.83 KB
/
style6.html.erb
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Strength Display</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
padding: 0;
background: #283048; /* Dark gradient background */
font-family: 'Roboto Mono', monospace;
color: #ddd;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
}
.container {
padding: 20px;
background: #404b69; /* Subtle background for the container */
border-radius: 15px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
width: 90%;
max-width: 450px;
}
.title {
color: #FFD700; /* Golden text for a bit of flair */
margin-bottom: 30px;
}
.password-display {
background: #283048;
color: #FFFFFF;
margin: 10px 0;
padding: 15px;
border-radius: 10px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.password-display:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.strength-indicator {
width: 25px;
height: 25px;
border-radius: 50%;
margin-right: 10px;
}
.weak { background-color: #E57373; }
.medium { background-color: #FFEB3B; }
.strong { background-color: #81C784; }
.very-strong { background-color: #64B5F6; }
.password-value {
font-weight: 700;
}
.generate-button {
padding: 10px 20px;
background-color: #FFC107; /* A bright, inviting button */
color: #283048;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
margin-top: 20px;
}
.generate-button:hover {
background-color: #FFD54F;
transform: scale(1.05);
}
</style>
</head>
<body>
<div class="container">
<div class="title">Generate a Secure Password</div>
<div class="passwords-section">
<div class="password-display">
<div class="strength-indicator weak"></div>
<span class="password-value">Weak</span>
</div>
<div class="password-display">
<div class="strength-indicator medium"></div>
<span class="password-value">Medium</span>
</div>
<div class="password-display">
<div class="strength-indicator strong"></div>
<span class="password-value">Strong</span>
</div>
<div class="password-display">
<div class="strength-indicator very-strong"></div>
<span class="password-value">Very Strong</span>
</div>
</div>
<button class="generate-button">Generate Passwords</button>
</div>
</body>
</html>