Compare commits

..

3 commits

Author SHA1 Message Date
e9b4fc55d6 Missed some styles on previous commit. 2018-10-22 16:03:11 -07:00
bb2efa4b27 changed download/print buttons. 2018-10-22 15:51:38 -07:00
e9e3b597c5 Added PDF download 2018-10-22 14:29:49 -07:00
4 changed files with 32 additions and 0 deletions

BIN
John-Shaver-Resume-2018.pdf Normal file

Binary file not shown.

View file

@ -190,6 +190,10 @@
</section> </section>
</section> </section>
<aside id="sidebar"> <aside id="sidebar">
<div class="control-buttons no-print">
<a class="print-button" target="_blank" href="John-Shaver-Resume-2018.pdf"><i class="fas fa-print"></i></a>
<a class="download-button no-print" href="John-Shaver-Resume-2018.pdf" download><i class="fas fa-file-download"></i></a>
</div>
<div class="side-block" id="contact"> <div class="side-block" id="contact">
<h1> <h1>
Contact Info Contact Info

8
render-pdf.sh Executable file
View 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;

View file

@ -443,6 +443,7 @@ svg.ts-logo {
.no-print { .no-print {
display:none; display:none;
} }
} }
@ -460,3 +461,22 @@ svg.ts-logo {
.source-link a { .source-link a {
color: #DDD; color: #DDD;
} }
.control-buttons {
position: absolute;
padding: 0.15em 0.2em;
left: 0;
top: 0;
margin: 0.8em;
font-size: 2.1rem;
border: dashed #28582fed 0.1em;
}
.control-buttons a {
margin: 0.2em;
}
.control-buttons a {
color: #28582fed;
margin: 0.2em;
}