Skip to content

Commit e1d0764

Browse files
committed
Adjustments
1 parent d940208 commit e1d0764

File tree

8 files changed

+853
-442
lines changed

8 files changed

+853
-442
lines changed

Pages/about.html

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<link rel="icon" href="Assets/Favi.png" type="image/png"> <meta charset="UTF-8">
5-
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins:wght@500&display=swap" rel="stylesheet">
6-
<link rel="stylesheet" href="../style.css">
4+
<link rel="icon" href="Assets/Favi.png" type="image/png" />
75
<meta charset="UTF-8" />
8-
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6+
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins:wght@500&display=swap" rel="stylesheet" />
7+
<link rel="stylesheet" href="../style.css" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<title>Home | Muqtasid Khan Portfolio</title>
1010
</head>
1111

1212
<body>
1313
<div class="page-container">
1414
<nav>
1515
<div class="logo">Muqtasid Khan</div>
16-
<ul>
16+
17+
<!-- Hamburger toggle button -->
18+
<div class="nav-toggle" id="nav-toggle" aria-label="Toggle menu" aria-expanded="false" role="button" tabindex="0">
19+
<span></span>
20+
<span></span>
21+
<span></span>
22+
</div>
23+
24+
<ul id="nav-menu">
1725
<li><a href="../index.html">Home</a></li>
1826
<li><a href="about.html">About Me</a></li>
1927
<li><a href="projects.html">Projects</a></li>
@@ -26,29 +34,28 @@
2634
<section class="hero">
2735
<div class="hero-image">
2836
<div class="circular-img floating">
29-
<img src="../Pages/Assets/MK2.jpg" alt="Muqtasid Khan">
37+
<img src="../Pages/Assets/MK2.jpg" alt="Muqtasid Khan" />
3038
</div>
3139
</div>
3240
<div class="hero-content">
3341
<div class="floating">
3442
<h4 style="text-align: left; font-family: 'Playfair Display', serif;">Solving for Mr. X</h4>
3543
<h1 class="floating" style="font-family: 'Poppins', sans-serif;">Where X = Me</h1>
36-
<p class="floating">Hello! I'm Muqtasid Khan, and in the equation of life, I'm the X you're solving for. A dedicated BS Mathematics student at Bahauddin Zakariya University's CASPAM, I'm passionate about the elegance and power of mathematics.
44+
<p class="floating">
45+
Hello! I'm Muqtasid Khan, and in the equation of life, I'm the X you're solving for. A dedicated BS Mathematics student at Bahauddin Zakariya University's CASPAM, I'm passionate about the elegance and power of mathematics.
3746

3847
Beyond my studies, I actively contribute to the university community through my involvement in ZCBS and ZPVC CASPAM Chapters, and I founded Elite Sprout 🌱, an academy that provides quality instruction to students from KG to FSc level.
39-
40-
I am committed to education, serving my community, and believe in the power of knowledge to transform lives.</p>
48+
49+
I am committed to education, serving my community, and believe in the power of knowledge to transform lives.
50+
</p>
4151
<a href="Assets/Muqtasid Khan CV 2.pdf" target="_blank" download class="resume-button">
4252
📄 View / Download Resume
4353
</a>
4454

4555
<a href="skills.html" class="btn">My Skills</a>
46-
4756
</div>
4857
</div>
4958
</section>
50-
51-
5259
</main>
5360

5461
<footer>
@@ -57,20 +64,38 @@ <h1 class="floating" style="font-family: 'Poppins', sans-serif;">Where X = Me</h
5764
</div>
5865
</footer>
5966
</div>
67+
6068
<script>
6169
function adjustForScreenSize() {
6270
const width = window.innerWidth;
63-
71+
6472
if (width < 768) {
6573
document.body.classList.add('mobile');
6674
} else {
6775
document.body.classList.remove('mobile');
76+
document.getElementById('nav-menu').classList.remove('active');
77+
document.getElementById('nav-toggle').setAttribute('aria-expanded', 'false');
6878
}
6979
}
70-
80+
81+
const navToggle = document.getElementById('nav-toggle');
82+
const navMenu = document.getElementById('nav-menu');
83+
84+
navToggle.addEventListener('click', () => {
85+
navMenu.classList.toggle('active');
86+
const expanded = navToggle.getAttribute('aria-expanded') === 'true';
87+
navToggle.setAttribute('aria-expanded', String(!expanded));
88+
});
89+
90+
navToggle.addEventListener('keydown', (e) => {
91+
if (e.key === 'Enter' || e.key === ' ') {
92+
e.preventDefault();
93+
navToggle.click();
94+
}
95+
});
96+
7197
window.addEventListener('load', adjustForScreenSize);
7298
window.addEventListener('resize', adjustForScreenSize);
7399
</script>
74-
75100
</body>
76101
</html>

0 commit comments

Comments
 (0)