-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
228 lines (201 loc) · 7.13 KB
/
index.html
File metadata and controls
228 lines (201 loc) · 7.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Daksh Hande - Personal Portfolio</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f8f8f8;
color: #333;
}
header {
background-color: #1e90ff;
color: #fff;
text-align: center;
padding: 20px 0;
}
h1 {
margin: 0;
font-size: 24px;
}
nav {
background-color: #333;
color: #fff;
padding: 10px 0;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav a {
text-decoration: none;
color: #fff;
font-weight: bold;
}
section {
max-width: 800px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.user-profile {
background-color: #f4f4f4;
padding: 10px;
border-radius: 8px;
margin-bottom: 20px;
}
footer {
text-align: center;
background-color: #333;
color: #fff;
padding: 10px 0;
}
footer p {
margin: 0;
font-size: 14px;
}
footer span {
font-size: 12px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown button {
background-color: #333;
color: #fff;
font-size: 16px;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
border-radius: 5px;
}
.dropdown-content button {
color: #333;
padding: 12px 16px;
text-decoration: none;
display: block;
background-color: #fff;
border: none;
width: 100%;
text-align: left;
cursor: pointer;
}
.dropdown-content button:hover {
background-color: #ddd;
}
.show {
display: block;
}
</style>
</head>
<body>
<header>
<h1>Welcome to my website!</h1>
</header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Me</a></li>
<li><a href="help.html">Help</a></li>
<li><a href="skills.html">Skills</a></li>
<li><a href="game.html">Games</a></li>
<li><a href="Blogs.html">Blogs</a></li>
<li><a href="Consent.html">Consent</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="register.html">Register</a></li>
</ul>
</nav>
<section>
<div class="user-profile" id="userProfile">
<!-- User Profile Section -->
</div>
<h2>About Me</h2>
<p>Hello, I'm Daksh Hande, a commerce student currently in class 12th. Graduating in 2023-24 with my final exams on March 4, 2024. I'm passionate about chess, holding one trophy and numerous certificates, with a FIDE rating of 1060 in rapid chess. I've also dabbled in programming, completing a core Python course and working on various Python projects. Aspiring to become a cabin crew member, my ultimate goal is to settle permanently in the U.S. after gaining experience in the aviation industry.</p>
</section>
<footer>
<p>Feel free to reach out at <a href="https://mail.google.com/mail/mu/mp/903/#">handedaksh@gmail.com</a></p>
<span>© 2024 Daksh Hande. All Rights Reserved.</span>
</footer>
<div class="dropdown" id="dropdownMenu">
<button onclick="toggleDropdown()">☰</button>
<div class="dropdown-content">
<button id="editProfileBtn" style="display: none;">Edit Profile</button>
<button id="deleteAccountBtn" style="display: none;">Delete Account</button>
</div>
</div>
<script src="quiz.js"></script>
<script>
// Fetch user profile data from URL parameters
const urlParams = new URLSearchParams(window.location.search);
const userName = urlParams.get('name');
const userEmail = urlParams.get('email');
const userBio = urlParams.get('bio');
if (userName && userEmail) {
const userProfileElement = document.getElementById('userProfile');
userProfileElement.innerHTML = `
<h2>User Profile</h2>
<p>Name: ${userName}</p>
<p>Email: ${userEmail}</p>
${userBio ? `<p>Bio: ${userBio}</p>` : ''}
`;
// Show edit and delete buttons
const editProfileBtn = document.getElementById('editProfileBtn');
const deleteAccountBtn = document.getElementById('deleteAccountBtn');
editProfileBtn.style.display = 'block';
deleteAccountBtn.style.display = 'block';
// Add functionality to delete account (you can customize this)
editProfileBtn.addEventListener('click', () => {
window.location.href = 'edit_profile.html'; // Change this URL based on your file structure
});
// Add functionality to delete account (you can customize this)
deleteAccountBtn.addEventListener('click', () => {
const confirmDelete = confirm('Are you sure you want to delete your account?');
if (confirmDelete) {
// Perform account deletion logic
alert('Account deleted successfully!');
window.location.href = 'index.html'; // Redirect to home page after deletion
}
});
}
// Toggle dropdown menu
function toggleDropdown() {
const dropdownContent = document.getElementById('dropdownMenu');
dropdownContent.classList.toggle('show');
}
// Close the dropdown if the user clicks outside of it
window.onclick = function (event) {
if (!event.target.matches('.dropdown button')) {
const dropdowns = document.getElementsByClassName('dropdown-content');
for (let i = 0; i < dropdowns.length; i++) {
const openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
};
</script>
</body>
</html>