Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Certificates #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,17 @@ function render(resumeObject) {
}
}

if (resumeObject.certificates && resumeObject.certificates.length) {
if (resumeObject.certificates[0].name) {
resumeObject.certificatesBool = true;
_.each(resumeObject.certificates, function(a){
a.year = (a.date || "").substr(0,4);
a.day = (a.date || "").substr(8,2);
a.month = getMonth(a.date || "");
});
}
}

if (resumeObject.publications && resumeObject.publications.length) {
if (resumeObject.publications[0].name) {
resumeObject.publicationsBool = true;
Expand Down
3 changes: 3 additions & 0 deletions print.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ a[href]:after {
blockquote,
#education,
#awards,
#certificates,
.contact-item,
.publication,
.skills,
Expand Down Expand Up @@ -46,11 +47,13 @@ blockquote,
margin-bottom: -20px;
}
#awards:before,
#certificates:before,
#education:before {
background: none;
}

#awards .description,
#certificates .description,
#education .description,
.job .details {
border: 1px solid #eee;
Expand Down
24 changes: 23 additions & 1 deletion resume.template
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
{{#awardsBool}}
<!-- AWARDS -->
<div class="box">
<h2><i class="fas fa-certificate ico"></i> Awards</h2>
<h2><i class="fas fa-award ico"></i> Awards</h2>
<ul id="awards" class="clearfix">
{{#awards}}
<li>
Expand All @@ -110,6 +110,28 @@
</ul>
</div>
{{/awardsBool}}
{{#certificatesBool}}
<!-- CERTIFICATES -->
<div class="box">
<h2><i class="fas fa-certificate ico"></i> Certificates</h2>
<ul id="certificates" class="clearfix">
{{#certificates}}
<li>
<div class="year pull-left">{{month}} {{year}}</div>
<div class="description pull-right">
<h3>{{issuer}}</h3>
<p><i class="fas fa-book-open ico"></i> {{name}}</p>
{{#url}}
<div class="address">
<a href="{{url}}" target= "_blank"><i class="fas fa-globe ico"></i> {{url}}</a>
</div>
{{/url}}
</div>
</li>
{{/certificates}}
</ul>
</div>
{{/certificatesBool}}
{{#volunteerBool}}
<!-- VOLUNTEER -->
<div class="box">
Expand Down
10 changes: 9 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,16 @@ blockquote {
}

#awards,
#education{
#certificates,
#education {
margin-top: 20px;
margin-bottom: 0;
position: relative;
padding: 1em 0;
list-style: none;
}
#awards:before,
#certificates:before,
#education:before {
width: 5px;
height: 100%;
Expand All @@ -106,13 +108,15 @@ blockquote {
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 );
}
#awards li,
#certificates li,
#education li{
width: 100%;
z-index: 2;
position: relative;
float: left;
}
#awards .year,
#certificates .year,
#education .year{
width: 14%;
background: #fff;
Expand All @@ -121,6 +125,7 @@ blockquote {
display: inline-block;
}
#awards .description,
#certificates .description,
#education .description{
width: 83%;
display: inline-block;
Expand All @@ -132,6 +137,7 @@ blockquote {
border-right: 1px solid #ccc;
}
#awards .description:after,
#certificates .description:after,
#education .description:after {
content: '';
position: absolute;
Expand All @@ -146,13 +152,15 @@ blockquote {
pointer-events: none;
}
#awards .description h3,
#certificates .description h3,
#education .description h3{
font-size: 1.2em;
margin: 0;
padding: 0;
font-weight: 700;
}
#awards .description p,
#certificates .description p,
#education .description p{
margin-top: 5px;
padding: 0;
Expand Down