Skip to content

Commit

Permalink
template redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorii Bushmanov authored and Grigorii Bushmanov committed Nov 10, 2023
1 parent fd617ca commit 8b2312b
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function render(resumeObject) {

resumeObject.css = fs.readFileSync(__dirname + "/style.css", "utf-8");
resumeObject.printcss = fs.readFileSync(__dirname + "/print.css", "utf-8");
var theme = fs.readFileSync(__dirname + '/resume.template', 'utf8');
var theme = fs.readFileSync(__dirname + '/resume.template.html', 'utf8');
var resumeHTML = Mustache.render(theme, resumeObject);


Expand Down
142 changes: 71 additions & 71 deletions resume.template → resume.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,77 +94,6 @@ <h2><i class= "fas fa-suitcase ico"></i> Work Experience</h2>
{{/work}}
</div>
{{/workBool}}
{{#awardsBool}}
<!-- AWARDS -->
<div class="box">
<h2><i class="fas fa-certificate ico"></i> Awards</h2>
<ul id="awards" class="clearfix">
{{#awards}}
<li>
<div class="year pull-left">{{month}} {{year}}</div>
<div class="description pull-right">
<h3>{{awarder}}</h3>
<p><i class="fas fa-trophy ico"></i> {{title}}</p>
<p>{{{summary}}}</p>
</div>
</li>
{{/awards}}
</ul>
</div>
{{/awardsBool}}
{{#volunteerBool}}
<!-- VOLUNTEER -->
<div class="box">
<h2><i class= "fas fa-users ico"></i> Volunteer</h2>
{{#volunteer}}
<div class="job clearfix">
<div class="row">
<div class="details">
<div class="where">{{organization}}</div>
{{#url}}
<div class="address">
<a href="{{url}}" target= "_blank"><i class="fas fa-globe ico"></i> {{url}}</a>
</div>
{{/url}}
<div class="year">{{startDateMonth}}{{startDateYear}} – {{endDateMonth}}{{endDateYear}}, {{workExperience}}</div>
</div>
</div>
<div class="row">
<div class="job-details col-xs-11">
<div class="profession">{{position}}</div>
<div class="description">
{{{summary}}}
{{#boolHighlights}}
<div class="highlights">Highlights</div>
<ul class="list-group">
{{#highlights}}
<li class="list-group-item">{{{.}}}</li>
{{/highlights}}
</ul>
{{/boolHighlights}}
</div>
</div>
</div>
</div>
{{/volunteer}}
</div>
{{/volunteerBool}}
{{#projectsBool}}
<!-- PROJECTS -->
<div class="box">
<h2><i class= "fas fa-code-branch ico"></i> Projects</h2>
<ul class="list-group">
{{#projects}}
<li class="list-group-item">
<span style="font-weight:bold">{{name}}</span>: {{description}}
<div class="address">
<a href="{{url}}" target="_blank">{{url}}</a>
</div>
</li>
{{/projects}}
</ul>
</div>
{{/projectsBool}}
</div>
<div class="col-xs-12 col-sm-5">
<!-- CONTACT -->
Expand Down Expand Up @@ -259,6 +188,77 @@ <h2><i class="fas fa-tasks ico"></i> Skills</h2>
{{/skills}}
</div>
{{/skillsBool}}
{{#projectsBool}}
<!-- PROJECTS -->
<div class="box">
<h2><i class= "fas fa-code-branch ico"></i> Projects</h2>
<ul class="list-group">
{{#projects}}
<li class="list-group-item">
<span style="font-weight:bold">{{name}}</span>: {{description}}
<div class="address">
<a href="{{url}}" target="_blank">{{url}}</a>
</div>
</li>
{{/projects}}
</ul>
</div>
{{/projectsBool}}
{{#volunteerBool}}
<!-- VOLUNTEER -->
<div class="box">
<h2><i class= "fas fa-users ico"></i> Volunteer</h2>
{{#volunteer}}
<div class="job clearfix">
<div class="row">
<div class="details">
<div class="where">{{organization}}</div>
{{#url}}
<div class="address">
<a href="{{url}}" target= "_blank"><i class="fas fa-globe ico"></i> {{url}}</a>
</div>
{{/url}}
<div class="year">{{startDateMonth}}{{startDateYear}} – {{endDateMonth}}{{endDateYear}}, {{workExperience}}</div>
</div>
</div>
<div class="row">
<div class="job-details col-xs-11">
<div class="profession">{{position}}</div>
<div class="description">
{{{summary}}}
{{#boolHighlights}}
<div class="highlights">Highlights</div>
<ul class="list-group">
{{#highlights}}
<li class="list-group-item">{{{.}}}</li>
{{/highlights}}
</ul>
{{/boolHighlights}}
</div>
</div>
</div>
</div>
{{/volunteer}}
</div>
{{/volunteerBool}}
{{#awardsBool}}
<!-- AWARDS -->
<div class="box">
<h2><i class="fas fa-certificate ico"></i> Awards</h2>
<ul id="awards" class="clearfix">
{{#awards}}
<li>
<div class="year pull-left">{{month}} {{year}}</div>
<div class="description pull-right">
<h3>{{awarder}}</h3>
<p><i class="fas fa-trophy ico"></i> {{title}}</p>
<p>{{{summary}}}</p>
</div>
</li>
{{/awards}}
</ul>
</div>
{{/awardsBool}}
{{#publicationsBool}}
<!-- PUBLICATIONS -->
<div class="box">
Expand Down

0 comments on commit 8b2312b

Please sign in to comment.