-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignup.html
170 lines (149 loc) · 4.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Signup - Online Code Editor</title>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="./src/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./src/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./src/images/favicon-16x16.png">
<!-- External Styles -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<style>
body {
font-family: 'Roboto Mono', monospace;
background-color: #f8f9fa;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.signup-container {
max-width: 500px;
width: 100%;
background: #fff;
padding: 30px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 8px;
}
.signup-container h1 {
text-align: center;
margin-bottom: 10px;
font-size: 2em;
color: #000;
}
.signup-container h1 i {
color: #007bff;
margin-right: 10px;
}
.signup-container h1 .code {
color: #28a745;
}
.signup-container h1 .editor {
color: #007bff;
}
.signup-container p {
text-align: center;
margin-bottom: 20px;
color: #6c757d;
font-size: 14px;
}
.form-group {
display: flex;
flex-direction: column;
position: relative;
margin-bottom: 20px;
}
.form-group i {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
color: #6c757d;
font-size: 1.2em;
}
.form-control {
padding: 10px 10px 10px 50px; /* Padding for icon spacing */
font-size: 16px;
border: none;
border-bottom: 2px solid #6c757d;
border-radius: 0;
background-color: transparent;
outline: none;
transition: border-color 0.3s;
}
.form-control::placeholder {
color: #adb5bd;
}
.form-control:focus {
border-color: #007bff;
box-shadow: none;
}
.btn-primary {
background-color: #28a745;
border: none;
font-size: 16px;
padding: 12px;
border-radius: 8px;
}
.btn-primary:hover {
background-color: #218838;
}
.terms-text {
text-align: center;
font-size: 12px;
margin-top: 10px;
color: #6c757d;
}
.terms-text a {
color: #007bff;
text-decoration: none;
}
.terms-text a:hover {
text-decoration: underline;
}
.login-link {
text-align: center;
margin-top: 15px;
font-size: 14px;
}
.login-link a {
color: #007bff;
text-decoration: none;
}
.login-link a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="signup-container">
<h1><i class="fas fa-code"></i><span class="code">Code</span> <span class="editor">Editor</span></h1>
<p>Create your account to access the online code editor.</p>
<form id="signupForm">
<div class="form-group">
<i class="fas fa-envelope"></i>
<input type="email" class="form-control" id="signupEmail" name="email" placeholder="Enter your email" required>
</div>
<div class="form-group">
<i class="fas fa-lock"></i>
<input type="password" class="form-control" id="signupPassword" name="password" placeholder="Create a password" required>
</div>
<button type="submit" class="btn btn-primary btn-block">
<i class="fas fa-user-check"></i> Sign Up
</button>
</form>
<div class="terms-text">
By signing up, you agree to our <a href="terms.html" target="_blank">Terms and Conditions</a>.
</div>
<div class="login-link">
Already have an account? <a href="login.html">Login</a>
</div>
</div>
<script type="module" src="./scripts/signup.js"></script>
</body>
</html>