-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSign-up.html
128 lines (112 loc) · 4.04 KB
/
Sign-up.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Community Crime Mapping</title>
<!-- Link to CSS files -->
<link rel="stylesheet" href="styles.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<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=Roboto+Flex:opsz,[email protected],400;8..144,500&display=swap"
rel="stylesheet"
/>
</head>
<body class="page2">
<!--Header Code Here-->
<nav class="navbar">
<div class="container">
<div class="logo">
<img src="img/WhatsApp Image 2023-11-27 at 5.03.58 PM.jpeg" alt="Logo">
</div>
<div class="nav-links">
<a href="http://127.0.0.1:5500/index.html">Home</a>
<a href="http://127.0.0.1:5500/map.html">Map</a>
<a href="http://127.0.0.1:5500/about.html">About</a>
<a href="http://127.0.0.1:5500/contact.html">Contact</a>
<a href="http://127.0.0.1:5500/safety.html">Safety Measures</a>
<a href="http://127.0.0.1:5500/report.html">Report</a>
<a href="http://127.0.0.1:5500/Sign-up.html">Sign-up</a>
</div>
</div>
</nav>
<!--Main Body Code Here-->
<div class="signup-form-container">
<p>Sign Up</p>
<form id="signup-form">
<div class="form-group">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required />
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" name="password" required />
</div>
<div class="form-group">
<button type="submit">Sign Up</button>
</div>
</form>
<div
id="success-message"
style="display: none; color: #4caf50; margin-top: 20px"
>
<span style="font-size: 108px; margin: 0 auto">✔</span>
<br />
<p style="text-align: center">You have successfully signed up!</p>
</div>
</div>
<script>
document
.getElementById("signup-form")
.addEventListener("submit", function (event) {
event.preventDefault();
const formData = new FormData(event.target);
const formDataObj = Object.fromEntries(formData.entries());
console.log(formDataObj);
});
</script>
<script>
document
.getElementById("signup-form")
.addEventListener("submit", function (event) {
event.preventDefault();
simulateFormSubmission();
});
function simulateFormSubmission() {
const successMessage = document.getElementById("success-message");
const signUpForm = document.getElementById("signup-form");
successMessage.style.display = "grid";
successMessage.style.alignItems = "center";
signUpForm.style.display = "none";
}
</script>
<script src="gradient-hover.js"></script>
<!--Footer Code Here-->
<footer class="footer">
<div class="container">
<p>© 2023 Community Crime Mapping</p>
</div>
</footer>
<!--JavaScript -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
</body>
</html>