mirror of
https://github.com/JuanCanham/fresh-themes.git
synced 2024-11-22 08:10:10 +00:00
Positive: Refactor w/ partials.
This commit is contained in:
parent
e589888935
commit
1bac9924e5
@ -61,6 +61,11 @@
|
|||||||
{{#*inline "icon-speaking"}}<span class="fa fa-lg fa-users"></span>{{/inline}}
|
{{#*inline "icon-speaking"}}<span class="fa fa-lg fa-users"></span>{{/inline}}
|
||||||
{{> section/speaking }}
|
{{> section/speaking }}
|
||||||
|
|
||||||
|
{{#*inline "icon-testimonials"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
|
{{> section/testimonials }}
|
||||||
|
|
||||||
|
{{#*inline "icon-references"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
|
{{> section/references }}
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
@ -33,6 +33,9 @@ h2 {
|
|||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
|
margin-top: 0;
|
||||||
|
width: 66%;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
@ -52,6 +55,10 @@ td:last-child {
|
|||||||
text-align: justify; /* HTML justification sucks, but in this case... */
|
text-align: justify; /* HTML justification sucks, but in this case... */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
@ -62,12 +69,21 @@ section {
|
|||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
section > div {
|
||||||
margin-left: 2em;
|
margin-top: 1em;
|
||||||
|
overflow: hidden; /* Clear floated children */
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
section > div p {
|
||||||
margin-top: 1em;
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
section > header {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-left: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, li {
|
p, li {
|
||||||
@ -88,12 +104,11 @@ main > header {
|
|||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
main > header > h1 {
|
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
main > header > h1, .label {
|
h1, h2, .label {
|
||||||
font-size: 2.5em;
|
font-size: 2.5em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
@ -105,11 +120,13 @@ main > header > h1, .label {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 > span.fa {
|
header > span.fa {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
top: 10px;
|
||||||
|
font-size: 30px;
|
||||||
transform: translateX(-110%);
|
transform: translateX(-110%);
|
||||||
color: #DADADA;
|
color: #DADADA;
|
||||||
}
|
}
|
||||||
|
@ -21,182 +21,52 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
{{#has "info.brief"}}
|
{{#has "info.brief"}}
|
||||||
<section id="summary">
|
<section id="summary">
|
||||||
{{{ r.info.brief }}}
|
{{{ r.info.brief }}}
|
||||||
</section>
|
</section>
|
||||||
{{/has}}
|
{{/has}}
|
||||||
|
|
||||||
|
|
||||||
{{#section "skills"}}
|
{{!<!--
|
||||||
<section id="skills">
|
Use predefined global partials for the other sections.
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-code"></span> Skills</h2>
|
|
||||||
</header>
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>{{{sectionTitle "Skills"}}}</th>
|
|
||||||
<th>Keywords</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#each r.skills.sets}}
|
|
||||||
<tr>
|
|
||||||
<td style="width: 33%;">{{{ name }}}</td>
|
|
||||||
<td class="keywords">{{#each skills}}{{{ this }}} {{/each}}</td>
|
|
||||||
</tr>
|
|
||||||
{{/each}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
The "inline" bit before each section allows us to pass a custom heading
|
||||||
|
icon into the global partial. For this theme, we're using Font Awesome.
|
||||||
|
-->}}
|
||||||
|
|
||||||
|
{{#*inline "icon-skills"}}<span class="fa fa-lg fa-star"></span>{{/inline}}
|
||||||
|
{{> section/skills }}
|
||||||
|
|
||||||
{{#section "employment"}}
|
{{#*inline "icon-employment"}}<span class="fa fa-lg fa-building"></span>{{/inline}}
|
||||||
<section id="employment">
|
{{> section/employment }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{#each r.employment.history }}
|
{{#*inline "icon-projects"}}<span class="fa fa-lg fa-star"></span>{{/inline}}
|
||||||
<h3><em>{{ position }}</em>,
|
{{> section/projects }}
|
||||||
{{#if url }}
|
|
||||||
<a href="{{ url }}">{{{ employer }}}</a>
|
|
||||||
{{else}}
|
|
||||||
{{{ employer }}}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}<span></h3>
|
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
|
||||||
{{#if highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
</section>
|
{{#*inline "icon-education"}}<span class="fa fa-lg fa-mortar-board"></span>{{/inline}}
|
||||||
{{/section}}
|
{{> section/education }}
|
||||||
|
|
||||||
{{#section 'projects'}}
|
{{#*inline "icon-service"}}<span class="fa fa-lg fa-child"></span>{{/inline}}
|
||||||
<hr>
|
{{> section/service }}
|
||||||
<section id="projects">
|
|
||||||
<header>
|
|
||||||
<h3>{{{sectionTitle "Projects"}}}</h3>
|
|
||||||
</header>
|
|
||||||
<span class="fa fa-lg fa-building"></span>
|
|
||||||
{{#each r.projects}}
|
|
||||||
{{#if url}}
|
|
||||||
<h4><span class="res-label">{{ role }}</span>, <a href="{{{ url }}}">{{ title }}</a></h4>
|
|
||||||
{{else}}
|
|
||||||
<h4><span class="res-label">{{ role }}</span>, <span class="defunct">{{ title }}</span></h4>
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }}—{{formatDate safe.end 'YYYY-MM' }}</span>
|
|
||||||
{{{ summary }}}
|
|
||||||
{{#if proj.highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
</section>
|
{{#*inline "icon-samples"}}<span class="fa fa-lg fa-share"></span>{{/inline}}
|
||||||
{{/section}}
|
{{> section/samples }}
|
||||||
|
|
||||||
{{#section 'samples'}}
|
{{#*inline "icon-writing"}}<span class="fa fa-lg fa-pencil"></span>{{/inline}}
|
||||||
<hr>
|
{{> section/writing }}
|
||||||
<section id="samples">
|
|
||||||
<header>
|
|
||||||
<h3>{{{sectionTitle "Samples"}}}</h3>
|
|
||||||
</header>
|
|
||||||
<span class="fa fa-lg fa-building"></span>
|
|
||||||
{{#each r.samples}}
|
|
||||||
{{#if url}}
|
|
||||||
<h4><span class="res-label">{{ role }}</span>, <a href="{{{ url }}}">{{ title }}</a></h4>
|
|
||||||
{{else}}
|
|
||||||
<h4><span class="res-label">{{ role }}</span>, <span class="defunct">{{ title }}</span></h4>
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }}—{{formatDate safe.end 'YYYY-MM' }}</span>
|
|
||||||
{{{ summary }}}
|
|
||||||
{{#if proj.highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
</section>
|
{{#*inline "icon-recognition"}}<span class="fa fa-lg fa-trophy"></span>{{/inline}}
|
||||||
{{/section}}
|
{{> section/recognition }}
|
||||||
|
|
||||||
{{#section "education"}}
|
{{#*inline "icon-speaking"}}<span class="fa fa-lg fa-users"></span>{{/inline}}
|
||||||
<section id="education">
|
{{> section/speaking }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-mortar-board"></span> {{{sectionTitle "Education"}}}</h2>
|
|
||||||
</header>
|
|
||||||
{{#each r.education.history}}
|
|
||||||
<h3>{{{ institution }}} <span class="tenure">{{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}<span></h3>
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
</section>
|
{{#*inline "icon-testimonials"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
{{/section}}
|
{{> section/testimonials }}
|
||||||
|
|
||||||
{{#section "service"}}
|
{{#*inline "icon-references"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
<section id="volunteer">
|
{{> section/references }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-child" style="vertical-align: top;"></span> {{{sectionTitle "Service"}}}</h2>
|
|
||||||
</header>
|
|
||||||
{{#each r.service.history}}
|
|
||||||
<h3><em>{{{ position }}}</em>,
|
|
||||||
{{#if url}}
|
|
||||||
<a href="{{ url }}">{{{ organization }}}</a>
|
|
||||||
{{else}}
|
|
||||||
{{{ organization }}}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}<span></h3>
|
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
|
||||||
{{#if highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
{{#section "writing"}}
|
|
||||||
<section id="publications">
|
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-book"></span> {{{sectionTitle "Writing"}}}</h2>
|
|
||||||
</header>
|
|
||||||
{{#each r.writing }}
|
|
||||||
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
|
|
||||||
{{{ publisher.name }}} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3>
|
|
||||||
{{# if summary}}{{{ summary }}}{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
{{#section "recognition"}}
|
|
||||||
<section id="awards">
|
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-trophy"></span> {{{"sectionTitle" "recognition" "Awards"}}}</h2>
|
|
||||||
</header>
|
|
||||||
{{#each r.recognition}}
|
|
||||||
<h4><span class="res-label">{{{ title }}}</span>, {{{ from }}} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h4>
|
|
||||||
{{{ summary }}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user