1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-11-22 16:20:11 +00:00

Theme: Compact: Update PDF format from HTML.

This commit is contained in:
devlinjd 2015-11-05 11:21:17 -05:00
parent 05a875b837
commit e23a1ed0a4
2 changed files with 49 additions and 13 deletions

View File

@ -5,6 +5,19 @@ html, body, main, section, header, ul, p, h1, h2, h3 {
display: block; display: block;
} }
a {
color: #0064BD;
text-decoration: none;
}
a:visited {
color: #7B0796;
}
a:hover {
text-decoration: underline;
}
h2 { h2 {
text-transform: uppercase; text-transform: uppercase;
} }
@ -52,6 +65,7 @@ main > header {
main > header > h1 { main > header > h1 {
float: left; float: left;
font-size: 1.5em;
} }
#contact { #contact {
float: right; float: right;

View File

@ -58,18 +58,41 @@
<header> <header>
<h2>Employment</h2><hr> <h2>Employment</h2><hr>
</header> </header>
{% r.work.forEach( function( proj, idx, ar) { %} {% r.work.forEach( function( proj, idx, ar) { %}
<h3><em>{{ proj.position }}</em>, {{ proj.company }} <span class="tenure">{{ proj.startDate }} &mdash; {{ proj.endDate }}<span></h3> {% if( idx < 4 ) { %}
<p style="clear: both;">{{ proj.summary|md }}</p> <h3><em>{{ proj.position }}</em>, {{ proj.company }} <span class="tenure">{{ proj.startDate }} &mdash; {{ proj.endDate }}<span></h3>
{% if( proj.highlights ) { %} <p style="clear: both;">{{ proj.summary|md }}</p>
{% if( proj.highlights ) { %}
<ul>
{% proj.highlights.forEach( function( high, idx, ar) { %}
<li>{{ high|mdin }}</li>
{% }); %}
</ul>
{% } %}
{% } else { %}
{% if( idx === 4 ) { %}
<h3>Previously... <span class="tenure">{{ r.work[ r.work.length - 1 ].safeStartDate.format('YYYY') }} &mdash; {{ proj.safeEndDate.format('YYYY') }}<span></h3>
<p style="clear: both;">Prior to {{ r.work[ 3 ].company }}, I worked on a range of projects for companies large and small.</p>
<ul> <ul>
{% proj.highlights.forEach( function( high, idx, ar) { %} {% } %}
<li>{{ high|md }}</li>
{% }); %}
<li>{{ proj.position }}, {{ proj.company }}</li>
{% if( idx === ar.length - 1 ) { %}
</ul> </ul>
{% } %}
{% } %} {% } %}
{% }); %} {% }); %}
</section> </section>
{% } %} {% } %}
@ -81,7 +104,7 @@
<h2>Education</h2><hr> <h2>Education</h2><hr>
</header> </header>
{% r.education.forEach( function( edu, idx, ar) { %} {% r.education.forEach( function( edu, idx, ar) { %}
<h3>{{ edu.institution }} <span class="tenure">{{ edu.startDate }} &mdash; {{ edu.endDate }}<span></h3> <h3>{{ edu.institution }} <span class="tenure">{{ edu.safeStartDate.format('YYYY') }} &mdash; {{ edu.safeEndDate.format('YYYY') }}<span></h3>
<p style="clear: both;">{{ edu.area|md }}</p> <p style="clear: both;">{{ edu.area|md }}</p>
{% }); %} {% }); %}
@ -94,7 +117,7 @@
<h2>Volunteer</h2><hr> <h2>Volunteer</h2><hr>
</header> </header>
{% r.volunteer.forEach( function( vol, idx, ar ) { %} {% r.volunteer.forEach( function( vol, idx, ar ) { %}
<h3>{{ vol.organization }} <span class="tenure">{{ vol.startDate }} &mdash; {{ vol.endDate }}<span></h3> <h3>{{ vol.organization }} <span class="tenure">{{ vol.safeStartDate.format('YYYY') }} &mdash; {{ vol.safeEndDate.format('YYYY') }}<span></h3>
<p style="clear: both;">{{ vol.summary|md }}</p> <p style="clear: both;">{{ vol.summary|md }}</p>
{% if( vol.highlights ) { %} {% if( vol.highlights ) { %}
<ul> <ul>
@ -108,7 +131,7 @@
</section> </section>
{% } %} {% } %}
{% if( r.publications ) { %} {% if( r.publications && r.publications.length ) { %}
<section id="publications"> <section id="publications">
<header> <header>
<h2>Publications</h2><hr> <h2>Publications</h2><hr>
@ -121,8 +144,8 @@
{% } else { %} {% } else { %}
<span class="res-label">{{ pub.name }}</span>,&nbsp;{{ pub.publisher }} <span class="res-label">{{ pub.name }}</span>,&nbsp;{{ pub.publisher }}
{% } %} {% } %}
<span class="tenure">{{ pub.safeReleaseDate.format('YYYY') }}</span>
</h4> </h4>
<span class="tenure">Published on: {{ pub.releaseDate }}</span>
{{ pub.summary|md }} {{ pub.summary|md }}
@ -130,15 +153,14 @@
</section> </section>
{% } %} {% } %}
{% if( r.awards ) { %} {% if( r.awards && r.awards.length ) { %}
<section id="awards"> <section id="awards">
<header> <header>
<h2>Awards</h2><hr> <h2>Awards</h2><hr>
</header> </header>
<span class="fa fa-lg fa-trophy"></span> <span class="fa fa-lg fa-trophy"></span>
{% r.awards.forEach( function( award, idx, ar) { %} {% r.awards.forEach( function( award, idx, ar) { %}
<h4><span class="res-label">{{ award.title }}</span>, {{ award.awarder }}</h4> <h4><span class="res-label">{{ award.title }}</span>, {{ award.awarder }} <span class="tenure">{{ award.safeDate.format('YYYY') }}</span></h4>
<span class="tenure">{{ award.date }}</span>
{{ award.summary|md }} {{ award.summary|md }}
{% }); %} {% }); %}
</section> </section>