forked from dhairyagothi/100_days_100_web_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.html
85 lines (74 loc) · 3.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title>
<link rel="stylesheet" href="login.css" />
</head>
<body>
<div class="container">
<div class="left-section">
<button class="back-button" onclick="window.location.href='Login.html'">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-arrow-left">
<line x1="19" y1="12" x2="5" y2="12"></line>
<polyline points="12 19 5 12 12 5"></polyline>
</svg>
</button>
<h1 class="animated-heading">50 Days 50 Web Projects!<span class="blinking-cursor">|</span></h1>
<p class="description">
Thank you for joining us on this exciting journey of creativity and learning. Over the next 50 days, we
will embark on a web development adventure, creating 50 unique web projects together. Whether you're a
seasoned developer or just starting out, there's something here for everyone to explore, learn, and
build.
</p>
<form id="signupForm" class="login-form">
<input type="text" id="name" placeholder="Name" class="input-field">
<input type="text" id="username" placeholder="Username" class="input-field">
<input type="email" id="email" placeholder="Email" class="input-field">
<input type="password" id="password" placeholder="Password" class="input-field">
<button type="submit" class="submit-button">Sign up</button>
</form>
<p class="already-signed-up" style="margin-top: 10px;">
already signed up? <a href="login.html">Login</a>
</p>
</div>
<div class="right-section">
<img src="https://100-days-100-web-project.vercel.app/i1.jpg" alt="" class="transition-image" />
<img src="https://100-days-100-web-project.vercel.app/i2.jpg" alt="" class="transition-image" />
<img src=" https://100-days-100-web-project.vercel.app/im3.jpg" alt="" class="transition-image" />
<img src=" https://100-days-100-web-project.vercel.app/im4.jpg" alt="" class="transition-image" />
<img src=" https://100-days-100-web-project.vercel.app/im5.jpg" alt="" class="transition-image" />
</div>
</div>
<script>
const images = document.querySelectorAll('.transition-image');
let currentImageIndex = 0;
function showNextImage() {
images[currentImageIndex].style.opacity = 0;
currentImageIndex = (currentImageIndex + 1) % images.length;
images[currentImageIndex].style.opacity = 1;
}
setInterval(showNextImage, 3000);
document.getElementById('signupForm').addEventListener('submit', function (event) {
event.preventDefault();
const name = document.getElementById('name').value;
const username = document.getElementById('username').value;
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
// Replace this with actual validation and signup logic
if (name && username && email && password) {
// Store username in localStorage
localStorage.setItem("username", username);
// Assume the registration is successful
window.location.href = 'Login.html';
} else {
alert('Please fill in all fields.');
}
});
</script>
</body>
</html>