Solid start at a resume generator. Should probably add an action to build the real thing so I can expose it
This commit is contained in:
260
template.ejs
Normal file
260
template.ejs
Normal file
@@ -0,0 +1,260 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><%= name %> - Resume</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
background-color: #fff;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.container {
|
||||
max-width: 900px;
|
||||
margin: 1rem auto;
|
||||
padding: 1rem;
|
||||
}
|
||||
header {
|
||||
text-align: center;
|
||||
border-bottom: 2px solid #e9ecef;
|
||||
padding-bottom: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
header h1 {
|
||||
margin: 0;
|
||||
font-size: 2.8rem;
|
||||
color: #212529;
|
||||
}
|
||||
.contact-info {
|
||||
margin-top: 0.5rem;
|
||||
color: #6c757d;
|
||||
}
|
||||
.contact-info a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.contact-info a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.contact-info span {
|
||||
margin: 0 0.75rem;
|
||||
}
|
||||
.links a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.links a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
header p.summary {
|
||||
margin-top: 1rem;
|
||||
font-size: 1.1rem;
|
||||
color: #495057;
|
||||
max-width: 750px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.8rem;
|
||||
color: #343a40;
|
||||
border-bottom: 2px solid #007bff;
|
||||
padding-bottom: 0.5rem;
|
||||
margin-top: 2.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.section {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
.technologies ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.technologies li {
|
||||
border: 1px solid #ddd;
|
||||
color: #495057;
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.job {
|
||||
margin-bottom: 2rem;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
.job:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.job-header {
|
||||
display: flex;
|
||||
}
|
||||
.job-header h3 {
|
||||
margin: 0;
|
||||
margin-left: 10px;
|
||||
font-size: 1.4rem;
|
||||
color: #212529;
|
||||
}
|
||||
.logo {
|
||||
max-height: 2rem;
|
||||
}
|
||||
.role {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.role-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.role-title h4 {
|
||||
margin: 0;
|
||||
font-size: 1.15rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.role-title .dates {
|
||||
font-style: italic;
|
||||
color: #6c757d;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.role ul {
|
||||
padding-left: 1.5rem;
|
||||
margin-top: 0.5rem;
|
||||
color: #495057;
|
||||
}
|
||||
.role ul li {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.education-details {
|
||||
padding: 1.5rem 0 1.5rem 1.5rem;
|
||||
}
|
||||
.education-details p {
|
||||
margin: 0.25rem 0;
|
||||
}
|
||||
.education-details .university {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
color: #343a40;
|
||||
}
|
||||
.education-details .degree {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.education-details .dates {
|
||||
color: #6c757d;
|
||||
font-style: italic;
|
||||
}
|
||||
.links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
}
|
||||
header h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
.contact-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
.contact-info span {
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
.role-title {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.role-title .dates {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1><%= name %></h1>
|
||||
<div class="contact-info">
|
||||
<a href="mailto:<%= email %>"><%= email %></a>
|
||||
<span>•</span>
|
||||
<span><%= phone %></span>
|
||||
</div>
|
||||
<p class="summary"><%= header %></p>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="section technologies">
|
||||
<h2>Core Technologies</h2>
|
||||
<ul>
|
||||
<% experience.technologies.forEach(function(tech) { %>
|
||||
<li><%= tech %></li>
|
||||
<% }); %>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="section experience">
|
||||
<h2>Professional Experience</h2>
|
||||
<% experience.positions.forEach(function(position) { %>
|
||||
<div class="job">
|
||||
<div class="job-header">
|
||||
<% if (position.logo.path.length > 0) { %>
|
||||
<a href="<%= position.website %>">
|
||||
<img class="logo" src="<%= position.logo.path %>" alt="<%= position.company %>" title="<%= position.company %>" />
|
||||
</a>
|
||||
<% } %>
|
||||
<% if (!position.logo.includesName) { %>
|
||||
<h3 class="job-name"><%= position.company %></h3>
|
||||
<% } %>
|
||||
</div>
|
||||
<% position.roles.forEach(function(role) { %>
|
||||
<div class="role">
|
||||
<div class="role-title">
|
||||
<h4><%= role.role %></h4>
|
||||
<span class="dates"><%= role.dates %></span>
|
||||
</div>
|
||||
<% if (role.bullets && role.bullets.join('').length > 0) { %>
|
||||
<ul>
|
||||
<% role.bullets.forEach(function(bullet) { %>
|
||||
<li><%= bullet %></li>
|
||||
<% }); %>
|
||||
</ul>
|
||||
<% } %>
|
||||
</div>
|
||||
<% }); %>
|
||||
</div>
|
||||
<% }); %>
|
||||
</section>
|
||||
|
||||
<section class="section education">
|
||||
<h2>Education</h2>
|
||||
<div class="education-details">
|
||||
<p class="university"><%= education.university %></p>
|
||||
<p class="location"><%= education.location %></p>
|
||||
<p class="degree"><%= education.degree %></p>
|
||||
<p class="dates"><%= education.dates %></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<% if (links.length > 0) { %>
|
||||
<section class="section links">
|
||||
<% links.forEach(function(link) { %>
|
||||
<a href="<%= link.href %>"><%= link.label %></a>
|
||||
<% }); %>
|
||||
</section>
|
||||
<% } %>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user