Skip to content

Commit d893a6f

Browse files
committed
first commit
1 parent ccf8c46 commit d893a6f

File tree

1 file changed

+122
-0
lines changed

1 file changed

+122
-0
lines changed

signupform.html

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Signup Form</title>
7+
<style>
8+
body {
9+
margin: 0;
10+
display: flex;
11+
justify-content: center;
12+
align-items: center;
13+
min-height: 100vh;
14+
background-color: #f0f0f0; /* Light grey background */
15+
}
16+
h2{
17+
text-align: center;
18+
}
19+
20+
.glass-container {
21+
background: rgba(255, 255, 255, 0.2); /* Glassmorphism effect */
22+
border-radius: 10px;
23+
padding: 20px;
24+
width: 300px;
25+
height: 350px;
26+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
27+
text-align: center;
28+
}
29+
30+
label {
31+
display: block;
32+
margin-bottom: 5px;
33+
color: #333;
34+
text-align: left;
35+
}
36+
37+
input {
38+
width: 100%;
39+
padding: 10px 1px 10px 8px;
40+
border-color: #961414 ;
41+
42+
margin-bottom: 15px;
43+
border: none;
44+
border-radius: 5px;
45+
background: rgba(255, 255, 255, 0.8);
46+
transition: border-color 0.3s ease; /* Transition effect on border color change */
47+
}
48+
input:hover {
49+
border-color: rgba(219, 52, 66, 0.8); /* Change border color on hover */
50+
}
51+
input:focus {
52+
53+
box-shadow:0 0 0 0.25rem rgba(96, 77, 10, 0.4); /* Add a subtle box shadow on focus */
54+
}
55+
56+
button {
57+
58+
padding: 10px;
59+
border: none;
60+
border-radius: 5px;
61+
background: #3498db;
62+
color: #fff;
63+
cursor: pointer;
64+
font-weight: bold;
65+
font-size: medium;
66+
/* cursor: not-allowed; */
67+
}
68+
button:hover{
69+
opacity: .7;
70+
background-color: #9c9999;
71+
}
72+
73+
button.loading {
74+
background: #bdc3c7; /* Grey out when loading */
75+
cursor: not-allowed;
76+
}
77+
78+
/* #loading {
79+
display: none;
80+
text-align: center;
81+
} */
82+
</style>
83+
</head>
84+
<body>
85+
<div class="glass-container">
86+
<h2>Signup</h2>
87+
<form id="signupForm">
88+
<label for="username">Username</label>
89+
<input type="text" id="username" placeholder="Enter your username" required>
90+
91+
<label for="email">Email</label>
92+
<input type="email" id="email" placeholder="Enter your email" required>
93+
94+
<label for="password">Password</label>
95+
<input type="password" id="password" placeholder="Enter your password" required>
96+
97+
<button type="button" onclick="submitForm() ">Signup</button>
98+
<!-- <div id="loading">Loading...</div> -->
99+
</form>
100+
</div>
101+
102+
<script>
103+
function submitForm() {
104+
var form = document.getElementById("signupForm");
105+
// var loading = document.getElementById("loading");
106+
var button = document.querySelector("button");
107+
108+
// loading.style.display = "block";
109+
button.innerText = "Loading...";
110+
button.classList.add("loading");
111+
112+
setTimeout(function() {
113+
form.reset();
114+
115+
button.innerText = "Signup";
116+
button.classList.remove("loading");
117+
118+
}, 1000); // Simulating a 2-second signup process
119+
}
120+
</script>
121+
</body>
122+
</html>

0 commit comments

Comments
 (0)