diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 82356eb79a33..32e1104e3d77 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -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; + } } \ No newline at end of file diff --git a/resume.html b/resume.html index 3bd02a34ae87..11dba0b560b0 100644 --- a/resume.html +++ b/resume.html @@ -1,27 +1,38 @@ --- layout: page title: Resume +full-width: true --- -
- -
-

- I am open for Software Engineer roles. You can reach out to me in the - About Me section. My resume can be found below: -

-
- - Download/View Resume +
+
+
+
+
+

+ I am open for Software Engineer roles. You can reach out to me + here. My resume can be found + below: +

+ +
+
+
+
+
@@ -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})`; + } }); diff --git a/static/Aryan_Singh_Resume.pdf b/static/Aryan_Singh_Resume.pdf index 154f297b169c..2a57c415d36e 100644 Binary files a/static/Aryan_Singh_Resume.pdf and b/static/Aryan_Singh_Resume.pdf differ