Added PDF download
This commit is contained in:
parent
360b2e4475
commit
e9e3b597c5
4 changed files with 17 additions and 1 deletions
BIN
John-Shaver-Resume-2018.pdf
Normal file
BIN
John-Shaver-Resume-2018.pdf
Normal file
Binary file not shown.
|
@ -30,7 +30,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
<section id="main">
|
<section id="main">
|
||||||
<header id="title">
|
<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>
|
<span class="subtitle">Full-Stack Engineer and Devops Enthusiast</span>
|
||||||
</header>
|
</header>
|
||||||
<section class="main-block">
|
<section class="main-block">
|
||||||
|
|
8
render-pdf.sh
Executable file
8
render-pdf.sh
Executable file
|
@ -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;
|
||||||
|
|
|
@ -443,6 +443,7 @@ svg.ts-logo {
|
||||||
.no-print {
|
.no-print {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -460,3 +461,10 @@ svg.ts-logo {
|
||||||
.source-link a {
|
.source-link a {
|
||||||
color: #DDD;
|
color: #DDD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.download-button {
|
||||||
|
position: absolute;
|
||||||
|
right: 7rem;
|
||||||
|
top: 0.75em;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
Loading…
Reference in a new issue