Skip to content

Commit ab449e2

Browse files
added back to home button on login.html and signup.html pages (#534)
1 parent 588e798 commit ab449e2

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

login.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h2>Login</h2>
2222
</form>
2323
<p class="form-link">Don't have an account? <a href="signup.html">Sign up</a></p>
2424
</div>
25+
<button class="back-button" onclick="window.location.href='index.html'"> ← Back To Home</button>
2526
<script src="scripts/auth.js"></script>
2627
</body>
2728
</html>

signup.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ <h2>Sign up</h2>
2626
</form>
2727
<p class="form-link">Already have an account? <a href="login.html">Login</a></p>
2828
</div>
29+
<button class="back-button signup" onclick="window.location.href='index.html'"> ← Back To Home</button>
2930
<script src="scripts/auth.js"></script>
3031
</body>
3132
</html>

styles/login.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,25 @@ body {
106106
text-decoration: underline;
107107
color: #f0f0f0;
108108
}
109+
.back-button {
110+
position: absolute;
111+
bottom:60px;
112+
background-color: rgba(255, 255, 255, 0.1);
113+
border: none;
114+
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
115+
color: #fff;
116+
padding: 10px;
117+
border-radius: 6px;
118+
cursor: pointer;
119+
font-size: 1rem;
120+
121+
}
122+
.signup {
123+
bottom:35px; /* Adjusted for better positioning */
124+
}
125+
.back-button:hover {
126+
background-color: rgba(255, 255, 255, 0.2);
127+
}
109128

110129
/* --- Media Query for Mobile Devices --- */
111130
@media (max-width: 600px) {
@@ -140,4 +159,5 @@ body {
140159
padding: 12px; /* Reduces button padding */
141160
font-size: 1rem; /* Smaller font size for button text */
142161
}
162+
143163
}

0 commit comments

Comments
 (0)