|
21 | 21 | try { |
22 | 22 | document.documentElement.dataset.theme = |
23 | 23 | localStorage.getItem("resume-theme") || "light"; |
| 24 | + const savedLayout = localStorage.getItem("resume-layout"); |
24 | 25 | document.documentElement.dataset.layout = |
25 | | - localStorage.getItem("resume-layout") || "modern"; |
| 26 | + savedLayout === "classic" ? "pdf" : savedLayout || "modern"; |
26 | 27 | } catch { |
27 | 28 | document.documentElement.dataset.theme = "light"; |
28 | 29 | document.documentElement.dataset.layout = "modern"; |
|
42 | 43 | <button |
43 | 44 | class="layout-toggle" |
44 | 45 | type="button" |
45 | | - aria-label="Switch to classic résumé layout" |
| 46 | + aria-label="View PDF résumé" |
46 | 47 | aria-pressed="false" |
47 | | - title="Switch résumé layout" |
| 48 | + title="View PDF résumé" |
48 | 49 | > |
49 | 50 | <span aria-hidden="true">CV</span> |
50 | 51 | </button> |
|
69 | 70 | </div> |
70 | 71 | </header> |
71 | 72 |
|
72 | | - <main class="resume-shell" id="resume-content"> |
| 73 | + <div class="resume-views" id="resume-content"> |
| 74 | + <main class="resume-shell" id="modern-resume"> |
73 | 75 | <header class="resume-hero"> |
74 | 76 | <div class="resume-monogram" aria-hidden="true">TC</div> |
75 | 77 | <div class="hero-copy"> |
@@ -401,6 +403,21 @@ <h3>Virtual Career Fair Platform</h3> |
401 | 403 | <a href="index.html">Return to portfolio ↑</a> |
402 | 404 | </footer> |
403 | 405 | </main> |
| 406 | + |
| 407 | + <section class="pdf-viewer" aria-label="PDF résumé viewer"> |
| 408 | + <iframe |
| 409 | + src="assets/Tharuka-Chathura-Resume.pdf#view=FitH" |
| 410 | + title="Tharuka Chathura ATS résumé PDF" |
| 411 | + ></iframe> |
| 412 | + <p class="pdf-fallback"> |
| 413 | + If the PDF does not appear, |
| 414 | + <a |
| 415 | + href="assets/Tharuka-Chathura-Resume.pdf" |
| 416 | + download="Tharuka-Chathura-Resume.pdf" |
| 417 | + >download the résumé</a>. |
| 418 | + </p> |
| 419 | + </section> |
| 420 | + </div> |
404 | 421 | <script src="resume.js"></script> |
405 | 422 | </body> |
406 | 423 | </html> |
0 commit comments