-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (91 loc) · 4.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign-up-form</title>
<link rel="stylesheet" href="./styles.css">
<!-- Material You icons -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
<script src="./build/script.js" defer></script>
<!-- Using a CDN -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@24.6.0/build/css/intlTelInput.css">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@24.6.0/build/js/intlTelInput.min.js" defer></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const input = document.querySelector("#phone-number");
if (input) {
window.intlTelInput(input, {
initialCountry: "us",
loadUtilsOnInit: "./node_modules/intl-tel-input/build/js/utils.js" // Correct path for utils.js
});
}
});
</script>
<div class="left-side">
<p class="photo-attribution">
Photo by <a href="https://unsplash.com/@haliewestphoto?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Halie West</a> on
<a href="https://unsplash.com/photos/green-leaf-plant-in-close-up-photography-25xggax4bSA?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>
</p>
</div>
<div class="right-side">
<div class="sign-up-text-container">
<h1>This is not a real online service!
You know you need something like this in your life to help you realize your deepest dreams.
Sign up <em>now</em> to get started.
</h1>
<p>You <em>know</em> you want to.</p>
<p class="end-of-sign-up-pitch">Let's do this!</p>
</div>
<form action="" method="post">
<fieldset>
<legend>Contact information</legend>
<div class="input-row">
<div class="input-field">
<label for="first-name">First Name</label>
<input type="text" id="first-name" name="first-name" required>
</div>
<div class="input-field">
<label for="last-name">Last Name</label>
<input type="text" id="last-name" name="last-name" required>
</div>
</div>
<div class="input-row">
<div class="input-field">
<label for="email">Email:</label>
<input type="email" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" required>
</div>
<div class="input-field">
<label for="phone-number">Phone Number</label>
<input type="tel" id="phone-number" name="phone-number" placeholder="101-101-1234" required>
</div>
</div>
</fieldset>
<fieldset>
<legend>Passwords</legend>
<div class="input-row">
<div class="input-field">
<label for="password">Password</label>
<div class="password-wrapper">
<input type="password" id="password" name="password" class="password-input" required maxlength="10">
<span class="toggle-password-visibility" onclick="togglePasswordVisibility()">
<span id = "toggle-icon" class="material-symbols-outlined">visibility_off</span>
</span>
</div>
<p id="password-matching-warning"></p>
</div>
<div class="input-field">
<label for="confirm-password">Confirm Password</label>
<input type="password" id="confirm-password" name="confirm-password" class="password-input" required
onblur="validatePasswordEqualsConfirmPassword()">
</div>
</div>
</fieldset>
</form>
<button type="button" class="create-account-btn">Create Account</button>
<p class="log-in">Already have an account? <a href="">Log in</p>
</div>
</body>
</html>