1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-12-23 21:37:22 +00:00
fresh-themes/themes/modern/src/modern-html.html

251 lines
9.0 KiB
HTML
Raw Normal View History

2015-12-19 00:30:59 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2016-01-13 03:13:33 +00:00
{{! <!--
Set the document title to the candidate's name. We use RAW.name here,
instead of r.name, because RAW gives us the text *as entered by the user*.
The double bracket notation automatically encodes this value. If we wanted
the unencoded raw value, we'd use triple brackets as in
((( RAW.name ))).
--> }}
<title>{{ RAW.name }}</title>
2015-12-19 00:30:59 +00:00
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
2016-01-13 03:13:33 +00:00
{{! <!--
Link in the resume's stylesheet. We could use a <link> tag here as above,
or dump the styles into <style></style>, but there's a handy helper
available that allows us to do either, conditionally.
--> }}
2015-12-30 23:02:06 +00:00
{{{styleSheet "modern-html.css"}}}
2016-01-13 03:13:33 +00:00
{{! <!--
If the user passes "css embed" via the command line, any styles present
in "html.css" will be embedded into the document via the <style></style>
tag. OTOH, if the user passes "css link" via the command line, then
"html.css" will be referenced via a standard <link> tag. If no "css"
parameter is given, HackMyResume defaults to CSS embedding via <style>,
because even if it's not as "correct" as <link>, it helps produce a more
"standalone" resume with fewer external dependencies.
-->}}
2015-12-19 00:30:59 +00:00
</head>
<body>
<main id="main">
<div id="container">
<header>
2016-01-13 03:13:33 +00:00
{{! <!--
Display the candidate's name using "r" (the FRESH or JSON Resume
object). Keep in mind that "r" contains the MARKDOWNIFIED version
of the text in the user's FRESH or JRS resume because FRESH resume
themes support Markdown natively. If you want the un-Markdownified
text, you'd use RAW instead.
--> }}
2015-12-19 00:30:59 +00:00
<h1>{{{ r.name }}}</h1>
2016-01-13 03:13:33 +00:00
{{! <!--
Give some basic contact info. Here, the HAS helper is similar
to a normal IF, but provides a guaranteed-to-be-safe check against a
particular object path. That is, ((#if contact.email)) can error out
(throw an exception) if contact is null, depending on Handlebars
engine settings, but ((#has 'contact.email')) never will.
--> }}
2015-12-19 00:30:59 +00:00
<div id="contact">
2016-01-05 12:56:40 +00:00
{{#has r.contact.email}}<div class="email"><a href="mailto:{{{ RAW.contact.email }}}">{{ RAW.contact.email }}</a></div>{{/has}}
{{#has r.contact.phone}}<div class="phone">{{ RAW.contact.phone }}</div>{{/has}}
{{#has r.contact.website}}<div class="website"><a href="{{{ RAW.contact.website }}}">{{ RAW.contact.website }}</a></div>{{/has}}
2015-12-19 00:30:59 +00:00
</div>
</header>
2016-01-13 03:13:33 +00:00
{{!<!--
Now let's emit the candidate's summary, which is stored in r.info.brief.
Again we'll use the ((#has)) helper to make sure the candidate HAS a
summary, and if so, we'll render an HTML 5 section element containing
the Markdownified HTML version of it.
-->}}
{{#has 'info.brief'}}
2015-12-19 00:30:59 +00:00
<hr>
<section id="summary">
2016-01-13 03:13:33 +00:00
{{!<!--
Here we're rendering the title of the summary section, but we don't want
to hard code it to "About" or "Summary" because FRESH themes should not
assume English. The "sectionTitle" helper allows us to emit an English
section title of "About" by default, but provides a hook by which users
can override this section title if they want.
TL;DR Never write section titles explicitly. Always use the helper.
-->}}
<h2>{{{sectionTitle "info" "About"}}}</h2>
2015-12-19 00:30:59 +00:00
<span class="fa fa-lg fa-user"></span>
2016-01-13 03:13:33 +00:00
{{!<!--
Emit the actual summary here.
Note the use of triple brackets to tell Handlebars not to further encode
the value. The value in r.info.brief has already been encoded (when it was
converted to HTML) so there's no need to encode it further.
-->}}
2015-12-19 00:30:59 +00:00
{{{ r.info.brief }}}
</section>
2016-01-13 03:13:33 +00:00
{{/has}}
{{! <!--
Okay, let's create a custom SKILLS section with colored skill bars.
Since this is an official resume section, we want to wrap it in the
"section" block helper. This allows the section to be selectively
omitted from the resume if either a) the section is empty or b) the user
tells us to hide it.
2015-12-19 00:30:59 +00:00
2016-01-13 03:13:33 +00:00
Always wrap your sections with the "section"!
--> }}
2016-01-05 12:56:40 +00:00
{{#section 'skills' }}
2015-12-19 00:30:59 +00:00
<hr>
<section id="skills">
<header>
<h2>{{{sectionTitle "Skills"}}}</h2>
2015-12-19 00:30:59 +00:00
</header>
<span class="fa fa-lg fa-code"></span>
<ul class="list-unstyled">
{{#each r.skills.sets}}
<li class="card card-nested card-skills">
<div class="skill-level" rel="tooltip" title="{{ level }}" data-placement="left">
<div class="skill-progress {{toLower level }}"></div>
</div>
<div class="skill-info">
<strong>{{ name }}</strong>
<div class="space-top labels">
{{#if skills}}
{{#each skills}}
<span class="label label-keyword">{{ this }}</span>
{{/each}}
{{/if}}
</div>
</div>
</li>
{{/each}}
</ul>
</section>
2016-01-05 12:56:40 +00:00
{{/section}}
2015-12-19 00:30:59 +00:00
2016-01-13 03:13:33 +00:00
{{! <!--
Now let's render the EMPLOYMENT section.
We could do this manually with custom HTML, like we did with the SKILLS
section, but let's take advantage of some predefined partials instead.
FRESH provides global partials for all resume sections (employment, skills,
education, speaking, etc.). They're named like this:
section/skills
section/employment
section/service
section/recognition
etc..
So what we want to do is inject the "section/skills" global partial
and use it here in our theme. We can do that simply with:
((> section/skills ))
However, in this case we also want to override the heading icon used
in the global partial. So we also declare what's known as an INLINE
PARTIAL, using ((#*inline "icon-skills")), and set its content to the
icon we'd like to display for the SKILLS section. The global partial
will reference this template by name, so it allows us to selectively
override that part of the global partial.
--> }}
2016-01-11 14:31:13 +00:00
{{#*inline "icon-employment"}}<span class="fa fa-lg fa-building"></span>{{/inline}}
2016-01-13 02:29:30 +00:00
{{#*inline "body-employment" }}
<div>
<h3><em>{{ position }}</em>,
{{#if url }}
<a href="{{{ url }}}">{{ employer }}</a>
{{else}}
{{ employer }}
{{/if}}
</h3>
<span class="tenure">{{dateRange .}}</span>
{{#if keywords}}
{{#if start}}| {{/if}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
{{/if}}
<p>{{{ summary }}}</p>
{{> highlights }}
</div>
{{/inline}}
2016-01-12 15:33:19 +00:00
{{> section/employment _icon="icon-employment"}}
2015-12-19 00:30:59 +00:00
2016-01-13 03:13:33 +00:00
{{! <!--
Do the same thing (roughly) with the PROJECT section.
--> }}
2016-01-13 02:29:30 +00:00
{{#*inline "body-projects" }}
<div>
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
{{#if url}}
<a href="{{{ url }}}">{{ title }}</a>
{{else}}
{{ title }}
{{/if}}
</h3>
{{#if start}}<span class="tenure">{{dateRange .}}</span>{{/if}}
{{#if keywords}}
{{#if start}}| {{/if}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
{{/if}}
{{{ summary }}}
{{> highlights }}
</div>
{{/inline}}
{{#*inline "icon-projects"}}<span class="fa fa-lg fa-star"></span>{{/inline}}
2016-01-13 02:29:30 +00:00
2016-01-12 15:33:19 +00:00
{{> section/projects _icon="icon-projects"}}
2015-12-19 00:30:59 +00:00
2016-01-13 03:13:33 +00:00
{{! <!--
We'll override all section heading icons the same way, for the rest of the
resume, using the same inline template technique. Keep in mind that these
inline templates do not, by themselves, create any markup. They emit markup
only when referenced by another template. Which template? In this case, the
global partial for each section.
--> }}
2015-12-19 00:30:59 +00:00
2016-01-13 03:13:33 +00:00
{{#*inline "icon-education"}}<span class="fa fa-lg fa-mortar-board"></span>{{/inline}}
{{#*inline "icon-service"}}<span class="fa fa-lg fa-child"></span>{{/inline}}
{{#*inline "icon-samples"}}<span class="fa fa-lg fa-share"></span>{{/inline}}
{{#*inline "icon-writing"}}<span class="fa fa-lg fa-pencil"></span>{{/inline}}
{{#*inline "icon-recognition"}}<span class="fa fa-lg fa-trophy"></span>{{/inline}}
{{#*inline "icon-speaking"}}<span class="fa fa-lg fa-users"></span>{{/inline}}
2016-01-12 12:27:41 +00:00
{{#*inline "icon-testimonials"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
{{#*inline "icon-references"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
2016-01-13 03:13:33 +00:00
{{! <!--
Use the predefined global partials for the rest of the resume sections as-is.
Note: we can still customize the style of these via CSS. But we'll use the
default markup.
--> }}
{{> section/education _icon="icon-education"}}
{{> section/service _icon="icon-service"}}
{{> section/samples _icon="icon-samples"}}
{{> section/writing _icon="icon-writing"}}
{{> section/recognition _icon="icon-recognition"}}
{{> section/speaking _icon="icon-speaking"}}
{{> section/testimonials _icon="icon-testimonials"}}
2016-01-12 15:33:19 +00:00
{{> section/references _icon="icon-references"}}
2015-12-19 00:30:59 +00:00
</div>
</main>
</body>
</html>