-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
170 lines (151 loc) · 6.5 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <div class="logo"> -->
<!-- <img src="./assets/images/svg/logo-color.svg" alt="My Blog Logo" class="blog-logo"> -->
<!-- </div> -->
<title>My Blog</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="./assets/images/svg/logo-color.svg" sizes="any">
<!-- Theme change -->
<div class="light-dark" align="right">
<button class="btn-light-dark" title="Toggle light/dark mode"> </button>
</div>
<!-- Sidebar Toggle Button -->
<button class="sidebar-toggle" id="sidebar-toggle">☰</button>
<!-- Sidebar -->
<div class="sidebar" id="sidebar">
<!-- <div class="sidebar-logo"> -->
<!-- <img src="./assets/images/svg/logo-color.svg" alt="Sidebar Logo" class="sidebar-logo"> -->
<!-- </div> -->
<ul class="sidebar-nav">
<li class="heading">Menu</li>
<li class="bullet"><a href="index.html">Home</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>
<img src="https://raw.githubusercontent.com/trinib/trinib/82213791fa9ff58d3ca768ddd6de2489ec23ffca/images/footer.svg"
alt="Banner Image"
style="width: 100%; display: block; margin: 0 auto; border-radius: 8px;">
</section>
<section class="blog-posts">
<article>
<h2>My First Blog Post</h2>
<p class="date">January 15, 2025</p>
<p>This is the content of the first blog post. Stay tuned for more!</p>
</article>
</section>
<section class="blog-posts">
<article>
<h2>Thermodynamics and Cloud Physics Notes</h2>
<p class="date">January 16, 2025</p>
<p>
Click the link below to access my notes on Thermodynamics and Cloud Physics:
</p>
<p>
<a href="./assets/pdfs/Thermo-Notes.pdf" target="_blank">
View Thermodynamics and Cloud Physics Notes
</a>
<!-- <br /> -->
<!-- <a href="https://github.com/Harshit-Dhanwalkar/College-Notes/blob/main/Thermodynamics-and-Cloud-Physics/Notes.pdf" target="_blank"> -->
<!-- GitHub Backup Link -->
<!-- </a> -->
</p>
</article>
</section>
<section class="blog-posts">
<article>
<h2>Numerical Weather Prediction Notes</h2>
<p class="date">January 16, 2025</p>
<p>
Click the link below to access my notes on Numerical Weather Prediction:
</p>
<p>
<a href="./assets/pdfs/NWP-Notes.pdf" target="_blank">
View Numerical Weather Prediction Notes
</a>
<!-- <br /> -->
<!-- <a href="https://github.com/Harshit-Dhanwalkar/College-Notes/blob/main/Numerical-Weather-Prediction/Notes.pdf" target="_blank"> -->
<!-- GitHub Backup Link -->
<!-- </a> -->
</p>
</article>
</section>
<section class="blog-posts">
<article>
<h2>Boundary Layer Meteorology Notes</h2>
<p class="date">January 16, 2025</p>
<p>
Click the link below to access my notes on Boundary Layer Meteorology:
</p>
<p>
<a href="./assets/pdfs/BLM-Notes.pdf" target="_blank">
View Thermodynamics and Cloud Physics Notes
</a>
<!-- <br /> -->
<!-- <a href="https://github.com/Harshit-Dhanwalkar/College-Notes/blob/main/Boundary-Layer-Meteorology/Notes.pdf" target="_blank"> -->
<!-- GitHub Backup Link -->
<!-- </a> -->
</p>
</article>
</section>
</div>
<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 themeToggleButton = document.querySelector('.btn-light-dark');
const body = document.body;
if (localStorage.getItem('dark-mode') === 'enabled') {
body.classList.add('dark-mode');
}
themeToggleButton.addEventListener('click', () => {
body.classList.toggle('dark-mode');
if (body.classList.contains('dark-mode')) {
localStorage.setItem('dark-mode', 'enabled');
} else {
localStorage.setItem('dark-mode', 'disabled');
}
});
// 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>
<footer>
<!-- <div class="footer-logo"> -->
<!-- <img src="./assets/images/svg/logo-color.svg" alt="Footer Logo" style="width: 40px; height: auto;"> -->
<!-- </div> -->
<p>© 2025 My Blog | All Rights Reserved</p>
</footer>
</body>
</html>