-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
130 lines (109 loc) · 4.46 KB
/
signup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ICYCO - SIGN-UP</title>
<link rel="stylesheet" href="styles/styles.css">
<link rel="stylesheet" href="styles/style2.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<!-- Preloader -->
<div id="preloader">
<img src="images/logo.png" alt="Preloader" class="preloader-icon">
<p class="loading-text">Loading...</p>
</div>
<!-- scroll progress -->
<div class="scroll-progress"></div>
<a href="./index.html">
<div id="logo">
<img src="https://github.com/DharshiBalasubramaniyam/ice-cream-parlour-website/blob/master/images/logo.png?raw=true"
width="15%"></img>
</div>
</a>
<h1 style="text-align: center; margin-bottom: 20px;">Sign up to IcyCo</h1>
<form>
<div id="name-fields">
<div id="first-name-field">
<input type="text" class="input-field" placeholder="First name">
</div>
<div id="last-name-field">
<input type="text" class="input-field" placeholder="Last name">
</div>
</div>
<div class="input-fields">
<input type="email" class="input-field" placeholder="Email">
</div>
<div class="input-fields">
<div class="password-container">
<input type="password" class="input-field" id="password-input-field" placeholder="Password">
<i style="margin-top: 5px;" class="fa-solid fa-eye-slash" id="toggle-password"></i>
</div>
<!-- Password strength meter -->
<div id="password-strength-meter">
<div id="strength-bar"></div>
<p id="password-strength-text"></p>
</div>
</div>
<div class="signin-btn">
<button>Continue</button>
</div>
</form>
<div class="terms">
<br>
By clicking Continue or registering through a third party you accept the Icyco
<a href="#">Terms of Use and acknowledge the Privacy Statement and Cookie Policy</a>
</div>
<div id="line-container">
<span>Already have an account?</span><a href="./login.html" class="register-now-link">Login</a>
<div class="sep-container" style="margin-top: 5px;">
<div class="sep-line"></div>
<div><p>or</p></div>
<div class="sep-line"></div>
</div>
</div>
<div class="social-link-2">
<a href=""><img src="images/social-icons/google.png" width="25px" height="25px"></a>
<a href=""><img src="images/social-icons/Facebook.svg" width="25px" height="25px"></a>
<a href=""><img src="images/social-icons/github.png" width="25px" height="25px"></a>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js"></script>
<script src="script/login.js"></script>
<script src="./script/nav.js"></script>
<script src="./script/topscrollindicator.js"></script>
<script>
const passwordInput = document.getElementById("password-input-field");
const strengthText = document.getElementById("password-strength-text");
const strengthBar = document.getElementById("strength-bar");
passwordInput.addEventListener("input", function () {
const password = passwordInput.value;
const result = zxcvbn(password);
const strength = result.score;
// Update strength bar and text
strengthBar.style.width = `${(strength + 1) * 20}%`;
const strengthLevels = ["Very Weak", "Weak", "Okay", "Good", "Strong"];
strengthText.textContent = strengthLevels[strength];
// Color the strength bar based on strength
const colors = ["#ff4d4d", "#ff944d", "#ffd24d", "#d2ff4d", "#4dff88"];
strengthBar.style.backgroundColor = colors[strength];
});
</script>
<style>
#password-strength-meter {
margin-top: 10px;
}
#strength-bar {
height: 8px;
width: 0;
background-color: #ff4d4d;
transition: width 0.3s ease;
}
#password-strength-text {
margin-top: 5px;
font-size: 14px;
color: #666;
}
</style>
</body>
</html>