Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit a003b4a

Browse files
author
Dipankar
committed
Refactor HTML structure for improved readability and consistency
1 parent 6d862b7 commit a003b4a

File tree

2 files changed

+18
-33
lines changed

2 files changed

+18
-33
lines changed

images/favicon.webp

129 KB
Binary file not shown.

index.html

+18-33
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta
6-
name="viewport"
7-
content="width=device-width, initial-scale=1.0"
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<!-- favicon -->
7+
<link
8+
rel="icon"
9+
type="image/webp"
10+
href="/images/favicon.webp"
811
/>
912
<title>UberCoders</title>
10-
<link rel="stylesheet" href="/styles/style.css"/>
13+
<link rel="stylesheet" href="/styles/style.css" />
1114
<script src="https://www.gstatic.com/firebasejs/9.16.0/firebase-app.js"></script>
1215
<script src="https://www.gstatic.com/firebasejs/9.16.0/firebase-auth.js"></script>
1316
</head>
@@ -17,9 +20,7 @@ <h1>Welcome to UberCoders</h1>
1720
<div id="signup-form">
1821
<form>
1922
<div class="form-group">
20-
<label for="signup-username"
21-
>Username</label
22-
>
23+
<label for="signup-username">Username</label>
2324
<input
2425
type="text"
2526
id="signup-username"
@@ -28,9 +29,7 @@ <h1>Welcome to UberCoders</h1>
2829
/>
2930
</div>
3031
<div class="form-group">
31-
<label for="signup-email"
32-
>Email</label
33-
>
32+
<label for="signup-email">Email</label>
3433
<input
3534
type="email"
3635
id="signup-email"
@@ -39,23 +38,17 @@ <h1>Welcome to UberCoders</h1>
3938
/>
4039
</div>
4140
<div class="form-group">
42-
<label for="signup-password"
43-
>Password</label
44-
>
41+
<label for="signup-password">Password</label>
4542
<input
4643
type="password"
4744
id="signup-password"
4845
placeholder="Enter your password"
4946
required
5047
/>
5148
</div>
52-
<button type="submit" class="button">
53-
Sign Up
54-
</button>
49+
<button type="submit" class="button">Sign Up</button>
5550
</form>
56-
<span
57-
class="toggle-link"
58-
onclick="toggleForm()"
51+
<span class="toggle-link" onclick="toggleForm()"
5952
>Already have an account? Log In</span
6053
>
6154
</div>
@@ -71,34 +64,26 @@ <h1>Welcome to UberCoders</h1>
7164
/>
7265
</div>
7366
<div class="form-group">
74-
<label for="login-password"
75-
>Password</label
76-
>
67+
<label for="login-password">Password</label>
7768
<input
7869
type="password"
7970
id="login-password"
8071
placeholder="Enter your password"
8172
required
8273
/>
8374
</div>
84-
<button type="submit" class="button">
85-
Log In
86-
</button>
75+
<button type="submit" class="button">Log In</button>
8776
</form>
88-
<span
89-
class="toggle-link"
90-
onclick="toggleForm()"
77+
<span class="toggle-link" onclick="toggleForm()"
9178
>Don't have an account? Sign Up</span
9279
>
9380
</div>
9481
</div>
9582

9683
<script>
9784
function toggleForm() {
98-
const signupForm =
99-
document.getElementById("signup-form");
100-
const loginForm =
101-
document.getElementById("login-form");
85+
const signupForm = document.getElementById("signup-form");
86+
const loginForm = document.getElementById("login-form");
10287

10388
if (signupForm.style.display === "none") {
10489
signupForm.style.display = "block";
@@ -109,6 +94,6 @@ <h1>Welcome to UberCoders</h1>
10994
}
11095
}
11196
</script>
112-
<script type="module" src="script/index.js" defer></script>
97+
<script type="module" src="script/index.js" defer></script>
11398
</body>
11499
</html>

0 commit comments

Comments
 (0)