Browse Source

Added PDF download

201809
John Shaver 11 months ago
parent
commit
e9e3b597c5
4 changed files with 17 additions and 1 deletions
  1. BIN
      John-Shaver-Resume-2018.pdf
  2. 1
    1
      index.html
  3. 8
    0
      render-pdf.sh
  4. 8
    0
      style.css

BIN
John-Shaver-Resume-2018.pdf View File


+ 1
- 1
index.html View File

@@ -30,7 +30,7 @@
30 30
     </svg>
31 31
     <section id="main">
32 32
       <header id="title">
33
-        <h1>John Shaver</h1>
33
+        <h1>John Shaver</h1><a class="download-button no-print" href="John-Shaver-Resume-2018.pdf"><i class="fas fa-file-download"></i></a>
34 34
         <span class="subtitle">Full-Stack Engineer and Devops Enthusiast</span>
35 35
       </header>
36 36
       <section class="main-block">

+ 8
- 0
render-pdf.sh View File

@@ -0,0 +1,8 @@
1
+#! /bin/sh
2
+
3
+npx http-server &
4
+sleep 6;
5
+chromium --headless --disable-gpu  --run-all-compositor-stages-before-draw --print-to-pdf="./John-Shaver-Resume-2018.pdf" http://localhost:8080/ --virtual-time-budget=10000;
6
+kill %1;
7
+exit;
8
+

+ 8
- 0
style.css View File

@@ -443,6 +443,7 @@ svg.ts-logo {
443 443
   .no-print {
444 444
     display:none;
445 445
   }
446
+  
446 447
 }
447 448
 
448 449
 
@@ -459,4 +460,11 @@ svg.ts-logo {
459 460
 
460 461
 .source-link a {
461 462
     color: #DDD;
463
+}
464
+
465
+a.download-button {
466
+    position: absolute;
467
+    right: 7rem;
468
+    top: 0.75em;
469
+    font-size: 1.5rem;
462 470
 }

Loading…
Cancel
Save