Skip to content

Commit 297bc2a

Browse files
arjun7965claude
andauthored
refactor: replace inline styles with CSS classes and auto-update copyright year (#18)
- Extract inline style attributes from timeline cards into .rm-body, .rm-role, and .rm-stint CSS classes - Auto-update copyright year via JS on all pages Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c16db32 commit 297bc2a

File tree

5 files changed

+27
-19
lines changed

5 files changed

+27
-19
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<footer>
8383
<div class="footer-content">
8484
<div class="copyright footer-copyright">
85-
&copy; 2026 Arjun Vinod. All rights reserved.
85+
&copy; <span class="copyright-year">2026</span> Arjun Vinod. All rights reserved.
8686
</div>
8787
<div class="footer-right">
8888
<div class="footer-links">

books.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ <h3 class="book-title">The Deficit Myth: Modern Monetary Theory and the Birth of
221221
<footer>
222222
<div class="footer-content">
223223
<div class="copyright footer-copyright">
224-
© 2026 Arjun Vinod. All rights reserved.
224+
&copy; <span class="copyright-year">2026</span> Arjun Vinod. All rights reserved.
225225
</div>
226226
<div class="footer-right">
227227
<div class="footer-links">

css/styles.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,13 +523,16 @@ footer {
523523
color: var(--color-accent);
524524
}
525525

526-
.rm-desc {
527-
margin: 0;
528-
color: var(--text-secondary);
529-
line-height: 1.8;
526+
.rm-desc {
527+
margin: 0;
528+
color: var(--text-secondary);
529+
line-height: 1.8;
530530
font-size: 0.9375rem;
531531
font-weight: 400;
532532
}
533+
.rm-body { margin-top: 0.75rem; }
534+
.rm-role { font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem; }
535+
.rm-stint { margin-bottom: 0.75rem; }
533536
/* Slightly tighter spacing on small screens */
534537
@media (max-width: 720px) {
535538
.roadmap { gap: 2rem; }

index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ <h3 class="lane-title"><svg class="icon" viewBox="0 0 512 512" aria-hidden="true
115115
<span class="dot" aria-hidden="true"></span>
116116
<article class="rm-card">
117117
<h4 class="rm-title"><a href="https://www.asteralabs.com/" target="_blank" rel="noopener noreferrer">Astera Labs</a></h4>
118-
<div style="margin-top: 0.75rem;">
119-
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem;">Firmware Engineer, Technical Lead</div>
118+
<div class="rm-body">
119+
<div class="rm-role">Firmware Engineer, Technical Lead</div>
120120
<div class="rm-meta">February 2023 – Present</div>
121121
<p class="rm-desc">Developing cutting-edge firmware solutions for high-speed connectivity and data center infrastructure.</p>
122122
</div>
@@ -127,14 +127,14 @@ <h4 class="rm-title"><a href="https://www.asteralabs.com/" target="_blank" rel="
127127
<span class="dot" aria-hidden="true"></span>
128128
<article class="rm-card">
129129
<h4 class="rm-title"><a href="https://www.qualcomm.com/products/internet-of-things/networking/wi-fi-networks" target="_blank" rel="noopener noreferrer">Qualcomm Atheros</a></h4>
130-
<div style="margin-top: 0.75rem;">
131-
<div style="margin-bottom: 0.75rem;">
132-
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem;">Senior Embedded Software Engineer</div>
130+
<div class="rm-body">
131+
<div class="rm-stint">
132+
<div class="rm-role">Senior Embedded Software Engineer</div>
133133
<div class="rm-meta">November 2021 – February 2023</div>
134134
<p class="rm-desc">Developed embedded software for enterprise WiFi platforms. Implemented advanced TX power control features for Qualcomm's WiFi chipsets.</p>
135135
</div>
136136
<div>
137-
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem;">Embedded Software Engineer</div>
137+
<div class="rm-role">Embedded Software Engineer</div>
138138
<div class="rm-meta">January 2020 – November 2021</div>
139139
<p class="rm-desc">Contributed to WiFi physical layer firmware development and implemented automated test framework for regression testing.</p>
140140
</div>
@@ -146,8 +146,8 @@ <h4 class="rm-title"><a href="https://www.qualcomm.com/products/internet-of-thin
146146
<span class="dot" aria-hidden="true"></span>
147147
<article class="rm-card">
148148
<h4 class="rm-title"><a href="https://www.greensightag.com/" target="_blank" rel="noopener noreferrer">GreenSight Agronomics</a></h4>
149-
<div style="margin-top: 0.75rem;">
150-
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem;">Embedded Software Engineer</div>
149+
<div class="rm-body">
150+
<div class="rm-role">Embedded Software Engineer</div>
151151
<div class="rm-meta">January 2018 – December 2019</div>
152152
<p class="rm-desc">Built embedded systems for autonomous agricultural drones. Developed sensor integration, flight control software for precision agriculture applications.</p>
153153
</div>
@@ -164,8 +164,8 @@ <h3 class="lane-title"><svg class="icon" viewBox="0 0 640 512" aria-hidden="true
164164
<span class="dot" aria-hidden="true"></span>
165165
<article class="rm-card">
166166
<h4 class="rm-title"><a href="https://ecs.syracuse.edu/" target="_blank" rel="noopener noreferrer">Syracuse University</a></h4>
167-
<div style="margin-top: 0.75rem;">
168-
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem;">Master of Science (MS), Computer Engineering</div>
167+
<div class="rm-body">
168+
<div class="rm-role">Master of Science (MS), Computer Engineering</div>
169169
</div>
170170
</article>
171171
</div>
@@ -174,8 +174,8 @@ <h4 class="rm-title"><a href="https://ecs.syracuse.edu/" target="_blank" rel="no
174174
<span class="dot" aria-hidden="true"></span>
175175
<article class="rm-card">
176176
<h4 class="rm-title"><a href="https://kcgcollege.ac.in/" target="_blank" rel="noopener noreferrer">KCG College of Technology, Anna University</a></h4>
177-
<div style="margin-top: 0.75rem;">
178-
<div style="font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem;">Bachelor of Engineering (B.E.), Electrical, Electronics and Communications Engineering</div>
177+
<div class="rm-body">
178+
<div class="rm-role">Bachelor of Engineering (B.E.), Electrical, Electronics and Communications Engineering</div>
179179
</div>
180180
</article>
181181
</div>
@@ -187,7 +187,7 @@ <h4 class="rm-title"><a href="https://kcgcollege.ac.in/" target="_blank" rel="no
187187
<footer>
188188
<div class="footer-content">
189189
<div class="copyright footer-copyright">
190-
© 2026 Arjun Vinod. All rights reserved.
190+
&copy; <span class="copyright-year">2026</span> Arjun Vinod. All rights reserved.
191191
</div>
192192
<div class="footer-right">
193193
<div class="footer-links">

js/theme.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,9 @@ window.addEventListener('DOMContentLoaded', () => {
5757
btn.setAttribute('aria-checked', theme === 'dark' ? 'true' : 'false');
5858
btn.addEventListener('click', toggleTheme);
5959
}
60+
61+
// Auto-update copyright year
62+
document.querySelectorAll('.copyright-year').forEach(el => {
63+
el.textContent = new Date().getFullYear();
64+
});
6065
});

0 commit comments

Comments
 (0)