-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
176 lines (160 loc) · 6.73 KB
/
about.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>About Me</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Theme change -->
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
<!-- <em>Dark/Light mode</em> -->
</div>
<!-- Sidebar Toggle Button -->
<button class="sidebar-toggle" id="sidebar-toggle">☰</button>
<!-- Sidebar -->
<div class="sidebar" id="sidebar">
<ul class="sidebar-nav">
<li class="heading">Menu</li>
<li class="bullet"><a href="index.html">Home</a></li>
<li class="bullet"><a href="gallery.html">Gallery</a></li>
<li class="bullet"><a href="about.html">About</a></li>
<li class="bullet"><a href="contact.html">Contact</a></li>
</ul>
</div>
<!-- Main Content -->
<div class="main-content">
<header>
<div class="logo">
<h1>My Blog</h1>
</div>
</header>
<section>
<h2>About Me</h2>
<p>
Hello! My name is Harshit, and I am the author of this blog. I am
currently pursuing a Master's degree in Earth System Science, with a
strong focus on interdisciplinary research in environmental sciences.
In addition to my academic work, I am passionate about programming and
have self-taught proficiency in Python, C++, LaTeX, MATLAB, and Rust.
</p>
<p>
This blog serves as a platform for sharing my insights, research, and
thoughts on a variety of topics. I invite you to explore my content,
and feel free to reach out through the
<a href="contact.html">contact page</a> if you'd like to connect or
collaborate!
</p>
</section>
</div>
<!-- Social Media Icons at Bottom -->
<div class="socials-bottom">
<a target="_blank" href="https://x.com/Harshitpmd/" title="X.com">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-twitter-x"
viewBox="0 0 16 16"
>
<path
d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"
/>
</svg>
</a>
<a
target="_blank"
href="https://www.linkedin.com/in/harshit-dhanwalkar/"
title="LinkedIn"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-linkedin"
viewBox="0 0 16 16"
>
<path
d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z"
/>
</svg>
</a>
<a
target="_blank"
href="https://www.reddit.com/user/TylerDurden0118/"
title="LinkedIn"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-reddit"
viewBox="0 0 16 16"
>
<path
d="M6.167 8a.83.83 0 0 0-.83.83c0 .459.372.84.83.831a.831.831 0 0 0 0-1.661m1.843 3.647c.315 0 1.403-.038 1.976-.611a.23.23 0 0 0 0-.306.213.213 0 0 0-.306 0c-.353.363-1.126.487-1.67.487-.545 0-1.308-.124-1.671-.487a.213.213 0 0 0-.306 0 .213.213 0 0 0 0 .306c.564.563 1.652.61 1.977.61zm.992-2.807c0 .458.373.83.831.83s.83-.381.83-.83a.831.831 0 0 0-1.66 0z"
/>
<path
d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.828-1.165c-.315 0-.602.124-.812.325-.801-.573-1.9-.945-3.121-.993l.534-2.501 1.738.372a.83.83 0 1 0 .83-.869.83.83 0 0 0-.744.468l-1.938-.41a.2.2 0 0 0-.153.028.2.2 0 0 0-.086.134l-.592 2.788c-1.24.038-2.358.41-3.17.992-.21-.2-.496-.324-.81-.324a1.163 1.163 0 0 0-.478 2.224q-.03.17-.029.353c0 1.795 2.091 3.256 4.669 3.256s4.668-1.451 4.668-3.256c0-.114-.01-.238-.029-.353.401-.181.688-.592.688-1.069 0-.65-.525-1.165-1.165-1.165"
/>
</svg>
</a>
</div>
<footer>
<p>© 2025 My Blog | All Rights Reserved</p>
</footer>
<script>
// Sidebar Toggle
const sidebarToggleButton = document.getElementById("sidebar-toggle");
const sidebar = document.getElementById("sidebar");
sidebarToggleButton.addEventListener("click", () => {
sidebar.classList.toggle("open");
});
// Light/Dark Theme Toggle
const toggleSwitch = document.querySelector(
'.theme-switch input[type="checkbox"]',
);
// Check for the saved theme preference in localStorage
if (localStorage.getItem("theme") === "dark") {
document.documentElement.setAttribute("data-theme", "dark");
toggleSwitch.checked = true;
} else {
document.documentElement.setAttribute("data-theme", "light");
toggleSwitch.checked = false;
}
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute("data-theme", "dark");
localStorage.setItem("theme", "dark");
} else {
document.documentElement.setAttribute("data-theme", "light");
localStorage.setItem("theme", "light");
}
}
toggleSwitch.addEventListener("change", switchTheme, false);
// Function to calculate shadow direction based on cursor position
function updateShadow(e) {
const sections = document.querySelectorAll("section");
sections.forEach((section) => {
const rect = section.getBoundingClientRect();
const offsetX = e.clientX - rect.left - rect.width / 2;
const offsetY = e.clientY - rect.top - rect.height / 2;
const shadowX = (offsetX / 10).toFixed(1);
const shadowY = (offsetY / 10).toFixed(1);
// Update the shadow of each section dynamically
section.style.boxShadow = `${shadowX}px ${shadowY}px 15px rgba(0, 0, 0, 0.2)`;
});
}
// Add event listener to track mouse movement
document.addEventListener("mousemove", updateShadow);
</script>
</body>
</html>