Skip to content

Commit

Permalink
feat: initial support for awards section
Browse files Browse the repository at this point in the history
  • Loading branch information
NuclearRedeye committed Jun 13, 2024
1 parent 481bfa0 commit b2eafdf
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 14 deletions.
56 changes: 45 additions & 11 deletions src/partials/awards.hbs
Original file line number Diff line number Diff line change
@@ -1,19 +1,53 @@
{{#if resume.awards.length}}
<div class="container awards-container">
{{> section-heading value="Awards"}}
<section class="awards">
{{> section-heading icon="fa-trophy" value="Awards"}}

{{#each resume.awards}}
<section class="item">
{{> section-header name=this.title }}
<section class="award">
<div class="column">
<div class="line"></div>
<div class="row wide inherit-height">
<div class="column fill between inherit-height">
{{#if title}}
<h3 class="bold">
{{#if url}}
<a href="{{url}}" target="_blank">{{title}}</a>
{{else}}
{{title}}
{{/if}}
</h3>
{{/if}}

{{#if awarder}}
<h5 class="awarder">{{awarder}}</h5>
{{/if}}
{{#if awarder}}
<h5>{{awarder}}</h5>
{{/if}}

{{#if summary}}
<p class="summary">{{summary}}</p>
{{/if}}
{{#if this.keywords.length}}
<div class="row wrap">
{{#each this.keywords}}
<h6 class="chip">{{.}}</h6>
{{/each}}
</div>
{{/if}}
</div>

<div class="column end fit">
{{#if date}}
<h6>
<i class="fa fa-calendar"></i>
<span>{{formatDate date}}</span>
</h6>
{{/if}}
</div>
</div>

{{#if summary}}
{{#each (split summary) }}
<p>{{this}}</p>
{{/each}}
{{/if}}
</div>
</section>
{{/each}}
</div>
</section>
{{/if}}
4 changes: 1 addition & 3 deletions src/resume.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@
{{> publications }}
{{> volunteer }}
{{> education }}
{{> awards }}
{{> references }}
{{> meta }}
<!--
{{> awards }}
-->
</main>
</body>

Expand Down

0 comments on commit b2eafdf

Please sign in to comment.