Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions public/resume/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
<body>
<iframe id="resumeFrame" title="Resume PDF"></iframe>
<script>
const allowedFiles = new Set(['James DeRaja Resume.pdf']);
const allowedFiles = new Set(['James De Raja Resume.pdf']);

const params = new URLSearchParams(window.location.search);
const file = params.get('file') || 'James DeRaja Resume.pdf';
const selectedFile = allowedFiles.has(file) ? file : 'James DeRaja Resume.pdf';
const file = params.get('file') || 'James De Raja Resume.pdf';
const selectedFile = allowedFiles.has(file) ? file : 'James De Raja Resume.pdf';

const resumeName = selectedFile.replace(/\.pdf$/i, '');
document.title = resumeName;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Footer() {
<SmartLink href="mailto:jamesderaja@gmail.com" className="transition hover:text-neon">Email</SmartLink>
<SmartLink href="https://www.linkedin.com/in/james-de-raja/" className="transition hover:text-neon">LinkedIn</SmartLink>
<SmartLink href="https://github.com/JamesDeRaja" className="transition hover:text-neon">GitHub</SmartLink>
<SmartLink href="/resume/viewer.html?file=James%20DeRaja%20Resume.pdf" className="transition hover:text-neon">Resume</SmartLink>
<SmartLink href="/resume/viewer.html?file=James%20De%20Raja%20Resume.pdf" className="transition hover:text-neon">Resume</SmartLink>
</div>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ export default function Navbar() {
{/* Actions */}
<div className="flex items-center gap-2">
<SmartLink
href="/resume/viewer.html?file=James%20DeRaja%20Resume.pdf"
href="/resume/viewer.html?file=James%20De%20Raja%20Resume.pdf"
className="btn-primary hidden rounded-lg px-4 py-2 text-sm font-medium sm:inline-flex"
>
View Resume
</SmartLink>
<a
href="/resume/James%20DeRaja%20Resume.pdf"
href="/resume/James%20De%20Raja%20Resume.pdf"
download
className="rounded-lg border border-white/10 p-2 text-slate-400 transition hover:border-neon/30 hover:text-neon"
aria-label="Download resume PDF"
Expand Down
4 changes: 2 additions & 2 deletions src/sections/ContactBentoSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ export default function ContactBentoSection() {
</p>
<div className="mt-6 space-y-4">
<a
href="/resume/James%20DeRaja%20Resume.pdf"
href="/resume/James%20De%20Raja%20Resume.pdf"
download
className="btn-primary group flex h-12 w-full items-center justify-center gap-2 rounded-xl px-4 text-sm font-semibold"
>
<Download size={15} />
Download Resume
</a>
<SmartLink
href="/resume/viewer.html?file=James%20DeRaja%20Resume.pdf"
href="/resume/viewer.html?file=James%20De%20Raja%20Resume.pdf"
className="inline-flex h-12 w-full items-center justify-center gap-2 rounded-xl border border-white/[0.12] bg-white/[0.02] px-4 text-sm font-medium text-indigo-300 transition-all hover:border-indigo-300/40 hover:text-indigo-200"
>
<FileText size={14} />
Expand Down
2 changes: 1 addition & 1 deletion src/sections/HeroBentoSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default function HeroBentoSection() {
<ArrowRight size={14} className="transition group-hover:translate-x-1" />
</a>
<SmartLink
href="/resume/viewer.html?file=James%20DeRaja%20Resume.pdf"
href="/resume/viewer.html?file=James%20De%20Raja%20Resume.pdf"
className="btn-secondary inline-flex items-center gap-2 rounded-xl px-5 py-2.5 text-sm font-medium"
>
<FileText size={14} />
Expand Down