forked from anuragverma108/SwapReads
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
8,963 additions
and
3,386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
body { | ||
font-family: 'Helvetica Neue', Arial, sans-serif; | ||
color: #333; | ||
margin: 0; | ||
padding: 0; | ||
background-image: url(/map.jpg); | ||
background-position: center; | ||
background-attachment: fixed; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.container { | ||
max-width: 500px; | ||
margin: 60px auto; | ||
padding: 30px; | ||
background-color: #bcb7b773; | ||
backdrop-filter: blur(5px); | ||
border: 1px solid #ccc; | ||
border-radius: 15px; | ||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.form-group { | ||
margin-bottom: 25px; | ||
} | ||
|
||
label { | ||
display: block; | ||
margin-bottom: 8px; | ||
font-weight: bold; | ||
} | ||
|
||
input[type="text"] { | ||
width: 100%; | ||
height: 45px; | ||
padding: 12px; | ||
font-size: 16px; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
box-sizing: border-box; | ||
transition: border-color 0.3s; | ||
} | ||
|
||
input[type="text"]:focus { | ||
border-color: #4CAF50; | ||
outline: none; | ||
} | ||
|
||
button { | ||
width: 100%; | ||
height: 45px; | ||
font-size: 16px; | ||
background-color: #4dad50d3; | ||
color: #fff; | ||
border: none; | ||
border-radius: 5px; | ||
transition: background-color 0.3s; | ||
} | ||
|
||
button:hover { | ||
background-color: #45a049; | ||
} | ||
|
||
.back-btn { | ||
background-color: #666666a9; | ||
margin-top: 10px; | ||
} | ||
|
||
.back-btn:hover { | ||
background-color: #555; | ||
} | ||
|
||
|
||
|
||
@media (max-width: 768px) { | ||
.container { | ||
margin: 30px auto; | ||
} | ||
} | ||
|
||
@media (max-width: 480px) { | ||
.container { | ||
padding: 15px; | ||
} | ||
|
||
input[type="text"] { | ||
height: 35px; | ||
} | ||
|
||
button { | ||
height: 35px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Edit Address</title> | ||
<link rel="stylesheet" href="/address.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<body> | ||
<div class="container"> | ||
<h2>Enter Address</h2> | ||
<form id="address-form"> | ||
<div class="form-group"> | ||
<label for="address">Address:</label> | ||
<input type="text" id="address" placeholder="Enter your address" maxlength="28"> | ||
</div> | ||
<button id="submit-btn">Submit</button> | ||
<button type="button" class="back-btn" onclick="history.back()">Back</button> | ||
</form> | ||
<div id="message" class="message"></div> | ||
</div> | ||
|
||
|
||
<script> | ||
const form = document.getElementById('address-form'); | ||
const addressInput = document.getElementById('address'); | ||
const submitBtn = document.getElementById('submit-btn'); | ||
const messageDiv = document.getElementById('message'); | ||
|
||
// Load the saved address from localStorage when the page loads | ||
window.onload = () => { | ||
const savedAddress = localStorage.getItem('address'); | ||
if (savedAddress) { | ||
addressInput.value = savedAddress; | ||
} | ||
}; | ||
|
||
submitBtn.addEventListener('click', (e) => { | ||
e.preventDefault(); | ||
|
||
const address = addressInput.value.trim(); | ||
|
||
if (address) { | ||
localStorage.setItem('address', address); | ||
messageDiv.textContent = 'Address saved successfully!'; | ||
messageDiv.style.color = 'green'; | ||
} else { | ||
messageDiv.textContent = 'Please enter an address!'; | ||
messageDiv.style.color = 'red'; | ||
} | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ body { | |
.logo { | ||
display: flex; | ||
align-items: center; | ||
font-weight: bold; | ||
} | ||
|
||
header { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.