-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathsignup.html
138 lines (117 loc) · 4.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up Page</title>
<style>
/* General reset and box-sizing */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: black;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.signup-container {
background-color: white;
padding: 30px;
border: 5px solid #c253b7;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
width: 400px;
font-family: 'Helvetica Neue', sans-serif;
}
h2 {
text-align: center;
font-family: 'Georgia', serif;
font-size: 24px;
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
}
label {
font-family: 'Georgia', serif;
font-size: 14px;
margin-bottom: 5px;
color: #333;
}
input[type="text"],
input[type="email"],
input[type="password"] {
padding: 10px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
margin-bottom: 15px;
}
button {
background-color: #6F4FFF;
color: white;
padding: 10px;
font-family: 'Arial', sans-serif;
font-size: 16px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #4cae4c;
}
.login-text {
text-align: center;
margin-top: 15px;
font-size: 14px;
}
.login-text a {
color: #007bff;
text-decoration: none;
}
.login-text a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div style="display: flex; flex-direction: column; align-items: center; margin: 20px;">
<h1 style="color: white; font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans'; margin-bottom: 20px;">Welcome to <span style="color: #c253b7; font-weight: bolder; font-size: xx-large; margin-bottom: 20px;">Giphy</span></h1>
<div class="signup-container">
<h2>Sign Up</h2>
<form id="signupForm">
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="Enter your username" required>
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter your password" required>
<button type="submit" style="background: #c253b7;">Sign Up</button>
</form>
<div class="login-text">
Already have an account? <a href="login.html">Login</a>
</div>
</div>
</div>
<script>
document.getElementById("signupForm").addEventListener("submit", function(event){
event.preventDefault();
let username = document.getElementById("username").value;
let email = document.getElementById("email").value;
let password = document.getElementById("password").value;
if(username && email && password) {
alert("Signed up successfully!");
// Here, you could add code to send data to a server, etc.
} else {
alert("Please fill in all fields.");
}
});
</script>
</body>
</html>