Browse Source

Added PDF download

201809
John Shaver 3 years ago
parent
commit
e9e3b597c5
  1. BIN
      John-Shaver-Resume-2018.pdf
  2. 2
      index.html
  3. 8
      render-pdf.sh
  4. 8
      style.css

BIN
John-Shaver-Resume-2018.pdf

2
index.html

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

8
render-pdf.sh

@ -0,0 +1,8 @@
#! /bin/sh
npx http-server &
sleep 6;
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;
kill %1;
exit;

8
style.css

@ -443,6 +443,7 @@ svg.ts-logo {
.no-print {
display:none;
}
}
@ -459,4 +460,11 @@ svg.ts-logo {
.source-link a {
color: #DDD;
}
a.download-button {
position: absolute;
right: 7rem;
top: 0.75em;
font-size: 1.5rem;
}
Loading…
Cancel
Save