Skip to content

Commit

Permalink
Merge branch 'anuragverma108:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dipak2005 authored Nov 2, 2024
2 parents 888a53a + 6287869 commit 5b34637
Show file tree
Hide file tree
Showing 27 changed files with 4,301 additions and 2,233 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
├── LICENSE
├── Mystical-fantaies.html
├── README.md
├── address.css
├── address.html
├── assets/
│ ├── GSSoC-Ext.png
│ ├── JSON/
Expand Down Expand Up @@ -403,6 +405,7 @@
├── audiobook.html
├── bank.jpg
├── biographies.html
├── book.jpg
├── books.html
├── chat.css
├── chat.html
Expand Down Expand Up @@ -445,6 +448,7 @@
├── logout.css
├── logout.js
├── lol.html
├── map.jpg
├── mindful-living.html
├── modals(privacy policy).css
├── models/
Expand Down Expand Up @@ -494,7 +498,10 @@
├── up-arrow (1).png
├── upi.jpg
├── vanilla-tilt.js
└── vedio.mp4
├── vedio.mp4
├── wishlist.css
├── wishlist.html
└── wishlist.js
```
<!-- END_STRUCTURE -->

Expand Down
94 changes: 94 additions & 0 deletions address.css
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;
}
}
59 changes: 59 additions & 0 deletions address.html
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>
1 change: 1 addition & 0 deletions assets/css/aboutus.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ body {
.logo {
display: flex;
align-items: center;
font-weight: bold;
}

header {
Expand Down
4 changes: 1 addition & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2253,11 +2253,9 @@ footer {

.description {

color: hsl(208deg 18.91% 37.88%);
font-weight: bold;
color: hsl(206, 11%, 29%);
text-align: justify;
max-width: 600px;

margin: 0 auto;

}
Expand Down
Loading

0 comments on commit 5b34637

Please sign in to comment.