draftme / templates /resume.html
dokster's picture
Upload 105 files
7d2fea2 verified
Raw
History Blame Contribute Delete
9.98 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ resume.contact.name }} - Resume</title>
<style>
@page {
size: letter;
margin: 0.5in 0.5in 0.4in 0.5in;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Times New Roman", Times, Georgia, serif;
font-size: 10.5pt;
line-height: 1.25;
color: #000;
}
a {
color: #000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Header */
.header {
text-align: center;
margin-bottom: 8pt;
}
.name {
font-size: 22pt;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2pt;
margin-bottom: 4pt;
}
.contact-line {
font-size: 10pt;
}
.contact-line .sep {
margin: 0 6pt;
color: #666;
}
/* Sections */
.section {
margin-top: 10pt;
}
.section-title {
font-weight: bold;
text-transform: uppercase;
font-size: 10.5pt;
letter-spacing: 1pt;
border-bottom: 1pt solid #000;
padding-bottom: 2pt;
margin-bottom: 6pt;
}
.section-content {
padding-left: 0;
}
/* Summary */
.summary {
text-align: justify;
line-height: 1.3;
}
/* Experience/Education entries */
.entry {
margin-bottom: 8pt;
}
.entry-header {
display: table;
width: 100%;
margin-bottom: 2pt;
}
.entry-main {
display: table-cell;
width: 75%;
vertical-align: top;
}
.entry-date {
display: table-cell;
width: 25%;
text-align: right;
vertical-align: top;
white-space: nowrap;
}
.company, .institution {
font-weight: bold;
}
.title, .degree {
font-style: italic;
}
.location {
color: #444;
}
.bullets {
list-style: none;
margin: 0;
padding: 0;
}
.bullets li {
position: relative;
padding-left: 12pt;
margin-bottom: 1pt;
text-align: justify;
line-height: 1.25;
}
.bullets li::before {
content: "\2022";
position: absolute;
left: 0;
color: #000;
}
/* Skills */
.skills-list {
text-align: justify;
line-height: 1.3;
}
/* Projects */
.project {
margin-bottom: 4pt;
}
.project-name {
font-weight: bold;
}
/* Simple list */
.simple-list {
list-style: none;
margin: 0;
padding: 0;
}
.simple-list li {
position: relative;
padding-left: 12pt;
margin-bottom: 1pt;
}
.simple-list li::before {
content: "\2022";
position: absolute;
left: 0;
}
</style>
</head>
<body>
<!-- Header -->
<div class="header">
<div class="name">{{ resume.contact.name }}</div>
<div class="contact-line">
{% set contact_parts = [] %}
{% if resume.contact.email %}
{% set _ = contact_parts.append('<a href="mailto:' ~ resume.contact.email ~ '">' ~ resume.contact.email ~ '</a>') %}
{% endif %}
{% if resume.contact.phone %}
{% set _ = contact_parts.append(resume.contact.phone) %}
{% endif %}
{% if resume.contact.location %}
{% set _ = contact_parts.append(resume.contact.location) %}
{% endif %}
{% if resume.contact.linkedin %}
{% set url = resume.contact.linkedin if resume.contact.linkedin.startswith('http') else 'https://' ~ resume.contact.linkedin %}
{% set _ = contact_parts.append('<a href="' ~ url ~ '">LinkedIn</a>') %}
{% endif %}
{% if resume.contact.github %}
{% set url = resume.contact.github if resume.contact.github.startswith('http') else 'https://' ~ resume.contact.github %}
{% set _ = contact_parts.append('<a href="' ~ url ~ '">GitHub</a>') %}
{% endif %}
{% if resume.contact.website %}
{% set url = resume.contact.website if resume.contact.website.startswith('http') else 'https://' ~ resume.contact.website %}
{% set _ = contact_parts.append('<a href="' ~ url ~ '">Website</a>') %}
{% endif %}
{{ contact_parts | join('<span class="sep">|</span>') | safe }}
</div>
</div>
<!-- Summary -->
{% if resume.summary %}
<div class="section">
<div class="section-title">Summary</div>
<div class="section-content summary">
{{ resume.summary }}
</div>
</div>
{% endif %}
<!-- Experience -->
{% if resume.experience %}
<div class="section">
<div class="section-title">Experience</div>
<div class="section-content">
{% for exp in resume.experience %}
<div class="entry">
<div class="entry-header">
<div class="entry-main">
<span class="company">{{ exp.company }}</span>{% if exp.location %}, <span class="location">{{ exp.location }}</span>{% endif %}
<br><span class="title">{{ exp.title }}</span>
</div>
<div class="entry-date">{{ exp.start_date }} - {{ exp.end_date or 'Present' }}</div>
</div>
{% if exp.bullets %}
<ul class="bullets">
{% for bullet in exp.bullets %}
<li>{{ bullet }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
<!-- Education -->
{% if resume.education %}
<div class="section">
<div class="section-title">Education</div>
<div class="section-content">
{% for edu in resume.education %}
<div class="entry">
<div class="entry-header">
<div class="entry-main">
<span class="institution">{{ edu.institution }}</span>{% if edu.location %}, <span class="location">{{ edu.location }}</span>{% endif %}
<br><span class="degree">{{ edu.degree }}</span>
</div>
<div class="entry-date">
{% if edu.start_date or edu.end_date %}
{% if edu.start_date %}{{ edu.start_date }}{% endif %}
{% if edu.start_date and edu.end_date %} - {% endif %}
{% if edu.end_date %}{{ edu.end_date }}{% endif %}
{% endif %}
</div>
</div>
{% if edu.details %}
<ul class="bullets">
{% for detail in edu.details %}
<li>{{ detail }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
<!-- Skills -->
{% if resume.skills %}
<div class="section">
<div class="section-title">Skills</div>
<div class="section-content skills-list">
{{ resume.skills | join(', ') }}
</div>
</div>
{% endif %}
<!-- Projects -->
{% if resume.projects %}
<div class="section">
<div class="section-title">Projects</div>
<div class="section-content">
{% for proj in resume.projects %}
<div class="project">
<span class="project-name">
{% if proj.url %}
{% set url = proj.url if proj.url.startswith('http') else 'https://' ~ proj.url %}
<a href="{{ url }}">{{ proj.name }}</a>
{% else %}
{{ proj.name }}
{% endif %}
</span>
{% if proj.description %} - {{ proj.description }}{% endif %}
{% if proj.bullets %}
<ul class="bullets">
{% for bullet in proj.bullets %}
<li>{{ bullet }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
<!-- Certifications -->
{% if resume.certifications %}
<div class="section">
<div class="section-title">Certifications</div>
<div class="section-content">
<ul class="simple-list">
{% for cert in resume.certifications %}
<li>{{ cert }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
<!-- Publications -->
{% if resume.publications %}
<div class="section">
<div class="section-title">Publications</div>
<div class="section-content">
<ul class="simple-list">
{% for pub in resume.publications %}
<li>{{ pub }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</body>
</html>