Skip to content
Merged
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
16 changes: 16 additions & 0 deletions assets/css/beautifuljekyll.css
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,24 @@ pre {
margin-top: 0.75rem;
}

.pdf-container {
width: min(87vw, 1000px);
margin: 2rem auto;
}

.pdf-container iframe {
display: block;
width: 100%;
height: clamp(700px, 90vh, 1400px);
border: none;
border-radius: 12px;
}

@media (max-width: 767px) {
:root {
--project-icon-width: 6.25rem;
}
.pdf-container {
display: none;
}
}
60 changes: 38 additions & 22 deletions resume.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,38 @@
---
layout: page
title: Resume
full-width: true
---

<hr />

<div style="flex-direction: row; margin-bottom: 100px; margin-top: 30px">
<p>
I am open for Software Engineer roles. You can reach out to me in the
<a href="/aboutme">About Me</a> section. My resume can be found below:
</p>
<div id="resume-download-section">
<span
id="resume-pdf-icon"
class="far fa-file-pdf"
style="margin-right: 4px"
></span>
<a
id="resume-download-link"
target="_blank"
href="/static/Aryan_Singh_Resume.pdf"
>Download/View Resume</a
>
<div class="container-md">
<div class="row justify-content-center">
<div class="col-xl-8 col-lg-10">
<hr />
<div style="flex-direction: row">
<p>
I am open for Software Engineer roles. You can reach out to me
<a href="mailto:singh@aryn.info">here</a>. My resume can be found
below:
</p>
<div id="resume-download-section">
<span
id="resume-pdf-icon"
class="far fa-file-pdf"
style="margin-right: 4px"
></span>
<a
id="resume-download-link"
target="_blank"
href="/static/Aryan_Singh_Resume.pdf"
>Download Resume</a
>
</div>
</div>
</div>
</div>
<div class="pdf-container">
<iframe src="/static/Aryan_Singh_Resume.pdf" loading="lazy" title="Resume">
</iframe>
</div>
</div>

Expand Down Expand Up @@ -53,8 +64,13 @@
fetch("/static/Aryan_Singh_Resume.pdf").then((data) => {
let resumeLastModifiedDate = new Date(data.headers.get("Last-Modified"));
resumeLastModifiedDate = resumeLastModifiedDate.toShortFormat();
document.querySelector(
"#resume-download-link"
).innerHTML += ` (Last updated on ${resumeLastModifiedDate})`;

const resumeLink = document.querySelector("#resume-download-link");

if (window.matchMedia("(max-width: 768px)").matches) {
resumeLink.innerHTML = `Download/View Resume (Last updated on ${resumeLastModifiedDate})`;
} else {
resumeLink.innerHTML = `Download Resume (Last updated on ${resumeLastModifiedDate})`;
}
});
</script>
Binary file modified static/Aryan_Singh_Resume.pdf
Binary file not shown.
Loading