-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup.html
More file actions
189 lines (171 loc) · 7.8 KB
/
signup.html
File metadata and controls
189 lines (171 loc) · 7.8 KB
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
187
188
189
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up - BeatWave13</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Flowbite CSS and JS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.css" rel="stylesheet" />
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
body {
background: linear-gradient(135deg, #1e1e2e, #16213e);
color: #ffffff;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.gradient-text {
background: linear-gradient(45deg, #00f260, #0575e6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.auth-bg {
background: rgba(31, 41, 55, 0.7);
backdrop-filter: blur(10px);
}
</style>
</head>
<body class="bg-gray-900">
<div class="w-full max-w-md auth-bg p-8 rounded-xl shadow-2xl">
<div class="text-center mb-8">
<h1 class="text-4xl font-bold gradient-text mb-4">BeatWave13</h1>
<h2 class="text-2xl font-semibold text-white">Create Your Account</h2>
</div>
<form id="signupForm" class="space-y-6">
<div>
<label for="username" class="block mb-2 text-sm font-medium text-gray-300">Username</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-user text-gray-400"></i>
</div>
<input
type="text"
id="username"
required
placeholder="Choose your username"
class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5"
>
</div>
</div>
<div>
<label for="email" class="block mb-2 text-sm font-medium text-gray-300">Email</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-envelope text-gray-400"></i>
</div>
<input
type="email"
id="email"
required
placeholder="Enter your email"
class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5"
>
</div>
</div>
<div>
<label for="password" class="block mb-2 text-sm font-medium text-gray-300">Password</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-lock text-gray-400"></i>
</div>
<input
type="password"
id="password"
required
placeholder="Create a strong password"
class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5"
>
<div class="absolute inset-y-0 right-0 pr-3 flex items-center">
<button type="button" id="togglePassword" class="text-gray-400 hover:text-white">
<i class="fas fa-eye"></i>
</button>
</div>
</div>
<p class="mt-2 text-xs text-gray-400">Password must be at least 8 characters long</p>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input
id="terms"
type="checkbox"
required
class="w-4 h-4 bg-gray-700 border border-gray-600 rounded focus:ring-3 focus:ring-blue-300"
>
</div>
<label for="terms" class="ml-3 text-sm font-medium text-gray-300">
I agree to the
<a href="#" class="text-blue-500 hover:underline">Terms and Conditions</a>
</label>
</div>
<button
type="submit"
class="w-full text-white bg-gradient-to-r from-blue-500 to-green-500 hover:from-blue-600 hover:to-green-600 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center"
>
Create Account
</button>
</form>
<div class="text-center mt-6">
<p class="text-sm text-gray-400">
Already have an account?
<a href="login.html" class="text-blue-500 hover:underline">Log In</a>
</p>
<div class="mt-4">
<a href="index.html" class="text-sm text-gray-300 hover:text-white">
<i class="fas fa-arrow-left mr-2"></i>Back to Home
</a>
</div>
</div>
<!-- <div class="mt-8 text-center">
<div class="flex justify-center space-x-4">
<button class="bg-red-600 text-white px-4 py-2 rounded-lg flex items-center">
<i class="fab fa-google mr-2"></i>Sign up with Google
</button>
<button class="bg-blue-800 text-white px-4 py-2 rounded-lg flex items-center">
<i class="fab fa-facebook mr-2"></i>Sign up with Facebook
</button>
</div>
</div> -->
</div>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- Flowbite JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.js"></script>
<script src="auth.js"></script>
<script>
$(document).ready(function() {
// Password visibility toggle
$('#togglePassword').on('click', function() {
const passwordField = $('#password');
const type = passwordField.attr('type') === 'password' ? 'text' : 'password';
passwordField.attr('type', type);
$(this).find('i').toggleClass('fa-eye fa-eye-slash');
});
// Form submission handling (placeholder)
$('#signupForm').on('submit', function(e) {
e.preventDefault();
// Basic client-side validation
const username = $('#username').val();
const email = $('#email').val();
const password = $('#password').val();
const termsChecked = $('#terms').is(':checked');
if (!termsChecked) {
alert('Please agree to the Terms and Conditions');
return;
}
if (password.length < 8) {
alert('Password must be at least 8 characters long');
return;
}
// Here you would typically send data to backend
console.log('Signup attempted:', { username, email });
handleSignUp(e);
});
});
</script>
</body>
</html>