-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.html
186 lines (163 loc) · 6.51 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Skill Master - Signup Page</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
}
body {
background: linear-gradient(to right, #005b96, #ffffff);
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.container {
width: 90%;
max-width: 500px;
display: flex;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
position: relative;
}
.form-container {
width: 100%;
padding: 20px;
background: #fff;
transition: transform 0.5s ease-in-out;
}
.sign-in {
position: absolute;
left: 0;
transition: transform 0.5s ease-in-out;
}
.sign-up {
transform: translateX(100%);
}
.container.active .sign-in {
transform: translateX(-100%);
}
.container.active .sign-up {
transform: translateX(0);
}
h1 {
margin-bottom: 20px;
font-size: 24px;
color: #333;
}
.social-icons {
margin: 20px 0;
text-align: center;
}
.social-icons .icon {
margin: 0 10px;
font-size: 18px;
color: #333;
transition: color 0.3s ease;
}
.social-icons .icon:hover {
color: #005b96;
}
input {
width: calc(100% - 20px);
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
}
button {
width: 100%;
padding: 10px;
background-color: #005b96;
border: none;
color: #fff;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #00447b;
}
a {
color: #005b96;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
p {
text-align: center;
margin-top: 10px;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container" id="container">
<!-- Sign Up Form -->
<div class="form-container sign-up">
<form id="signup-form">
<h1>Create Your Skill Master Account</h1>
<div class="social-icons">
<a href="https://accounts.google.com" class="icon" aria-label="Sign up with Google" target="_blank"><i class="fa-brands fa-google"></i></a>
<a href="https://www.facebook.com/login" class="icon" aria-label="Sign up with Facebook" target="_blank"><i class="fa-brands fa-facebook-f"></i></a>
<a href="https://twitter.com/login" class="icon" aria-label="Sign up with Twitter" target="_blank"><i class="fa-brands fa-twitter"></i></a>
<a href="https://www.linkedin.com/login" class="icon" aria-label="Sign up with LinkedIn" target="_blank"><i class="fa-brands fa-linkedin-in"></i></a>
</div>
<span>or use your email for registration</span>
<input type="email" placeholder="Email" required>
<input type="text" placeholder="Username" required>
<input type="password" placeholder="Password" required>
<button type="submit">Sign Up</button>
<p>Already have an account? <a href="#" id="show-login">Sign In</a></p>
</form>
</div>
<!-- Sign In Form -->
<div class="form-container sign-in">
<form id="login-form">
<h1>Welcome Back to Skill Master</h1>
<div class="social-icons">
<a href="https://accounts.google.com" class="icon" aria-label="Sign in with Google" target="_blank"><i class="fa-brands fa-google"></i></a>
<a href="https://www.facebook.com/login" class="icon" aria-label="Sign in with Facebook" target="_blank"><i class="fa-brands fa-facebook-f"></i></a>
<a href="https://twitter.com/login" class="icon" aria-label="Sign in with Twitter" target="_blank"><i class="fa-brands fa-twitter"></i></a>
<a href="https://www.linkedin.com/login" class="icon" aria-label="Sign in with LinkedIn" target="_blank"><i class="fa-brands fa-linkedin-in"></i></a>
</div>
<span>or use your email and password</span>
<input type="email" placeholder="Email" required>
<input type="password" placeholder="Password" required>
<a href="#">Forgot Your Password?</a>
<button type="submit">Sign In</button>
<p>Don't have an account? <a href="#" id="show-signup">Sign Up</a></p>
</form>
</div>
</div>
<script>
document.getElementById('show-login').addEventListener('click', function() {
document.getElementById('container').classList.remove('active');
});
document.getElementById('show-signup').addEventListener('click', function() {
document.getElementById('container').classList.add('active');
});
// Redirect to the home page after form submission
document.getElementById('signup-form').addEventListener('submit', function(e) {
e.preventDefault(); // Prevent the default form submission
window.location.href = 'home.html'; // Change 'home.html' to your actual home page
});
document.getElementById('login-form').addEventListener('submit', function(e) {
e.preventDefault(); // Prevent the default form submission
window.location.href = 'home.html'; // Change 'home.html' to your actual home page
});
</script>
</body>
</html>