raw resume formatting, more fields and stuff

This commit is contained in:
MeowcaTheoRange 2024-10-09 11:50:35 -05:00
parent 1dc62ce4d7
commit 5c061b90ef
2 changed files with 58 additions and 33 deletions

View file

@ -572,13 +572,21 @@ app.get('/resume', async (req, res) => {
return res.render('resumeEntry', { badError: true }); return res.render('resumeEntry', { badError: true });
} }
console.log(unencryptedOrgs) if (req.query.raw && process.env.NODE_ENV === "development")
return res.json({
pd: unencryptedPD,
jobs: unencryptedJobs,
education: unencryptedEducation,
orgs: unencryptedOrgs,
// desc: unencryptedDesc
});
res.render('resume', { res.render('resume', {
pd: unencryptedPD, pd: unencryptedPD,
jobs: unencryptedJobs, jobs: unencryptedJobs,
education: unencryptedEducation, education: unencryptedEducation,
orgs: unencryptedOrgs orgs: unencryptedOrgs,
// desc: unencryptedDesc
}); });
}); });

View file

@ -6,6 +6,7 @@
@media print { @media print {
:root { :root {
--color: #FF4000; --color: #FF4000;
font-size: 11pt;
} }
body { body {
@ -19,6 +20,10 @@
border-left: 4px solid var(--color); border-left: 4px solid var(--color);
} }
section {
page-break-inside: avoid;
}
a { a {
color: black; color: black;
text-decoration: none; text-decoration: none;
@ -32,6 +37,10 @@
margin-top: -0.5em; margin-top: -0.5em;
} }
h3 {
margin-bottom: -0.5rem;
}
p.address, p.address,
p.pd { p.pd {
margin-left: 1rem; margin-left: 1rem;
@ -59,12 +68,15 @@
Hint: Use <kbd>CTRL</kbd> <kbd>P</kbd> to print this page and get a more readable layout. Hint: Use <kbd>CTRL</kbd> <kbd>P</kbd> to print this page and get a more readable layout.
</span> </span>
</p> </p>
<!-- <h2>About me</h2>
<p style="white-space: pre-line;">< desc %></p> -->
<section>
<h2>Organizations / Volunteering</h2> <h2>Organizations / Volunteering</h2>
<ul> <ul>
<% orgs.forEach((org) => { %> <% orgs.forEach((org) => { %>
<li> <li>
<h3><a href="<%= org.url %>" target="_blank"><%= org.name %></a></h3> <h3><a href="<%= org.url %>" target="_blank"><%= org.name %></a></h3>
<p> <p class="position">
<% if (org.main && org.main.url) { %> <% if (org.main && org.main.url) { %>
<a href="<%= org.main.url %>" target="_blank"><%= org.main.title %></a> <a href="<%= org.main.url %>" target="_blank"><%= org.main.title %></a>
<% } else if (org.main) { %> <% } else if (org.main) { %>
@ -77,21 +89,24 @@
</a> </a>
</span> </span>
<% } %> <% } %>
<% if (org.main.date) { %><br />
<span style="opacity: 0.5;">Done <%= org.main.date %></span>
<% } else if (org.main.start) { %><br />
<span style="opacity: 0.5;"><%= org.main.start %> - <%= org.main.end || "Present" %></span>
<% } %>
</p> </p>
<p><%= org.description %></p>
<ul> <ul>
<% org.involvement.forEach((period) => { %> <% org.involvement.forEach((period) => { %>
<li> <li>
<h4><%= period.description %></h4> <p><%= period.description %>
<p> <% if (period.supervisor) { %><br />
<% if (period.supervisor) { %>
<span style="opacity: 0.5;">Supervised by <%= period.supervisor %></span> <span style="opacity: 0.5;">Supervised by <%= period.supervisor %></span>
<% } %> <% } %>
</p> <% if (period.date) { %><br />
<p> <span style="opacity: 0.5;">Done <%= period.date %></span>
<% if (period.date) { %> <% } else if (period.start) { %><br />
<span>Done <%= period.date %></span> <span style="opacity: 0.5;"><%= period.start %> - <%= period.end || "Present" %></span>
<% } else if (period.start) { %>
<%= period.start %> - <%= period.end || "Present" %>
<% } %> <% } %>
</p> </p>
</li> </li>
@ -100,58 +115,60 @@
</li> </li>
<% }); %> <% }); %>
</ul> </ul>
</section>
<section>
<h2>Education</h2> <h2>Education</h2>
<ul> <ul>
<% education.forEach((school) => { %> <% education.forEach((school) => { %>
<li> <li>
<h3><a href="<%= school.url %>" target="_blank"><%= school.name %></a></h3> <h3><a href="<%= school.url %>" target="_blank"><%= school.name %></a></h3>
<p> <!-- <p class="inlineaddress">
<span style="opacity: 0.5;" class="address"> <span style="opacity: 0.5;" class="address">
<%= school.address.street_address %>, < school.address.street_address %>,
<%= school.address.city %>, < school.address.city %>,
<%= school.address.state %> < school.address.state %>
<%= school.address.postal %> < school.address.postal %>
</span> </span>
</p> </p> -->
<p> <p style="opacity: 0.5;">
<%= school.start || "???" %> - <%= school.end || "Present" %><br /> <%= school.start || "???" %> - <%= school.end || "Present" %><br />
<span style="opacity: 0.5;">Learned <%= school.experience.join(", ") %></span> <!-- <span>Learned < school.experience.join(", ") %></span> -->
</p> </p>
</li> </li>
<% }); %> <% }); %>
</ul> </ul>
</section>
<section>
<h2>Experience</h2> <h2>Experience</h2>
<ul> <ul>
<% jobs.forEach((job) => { %> <% jobs.forEach((job) => { %>
<li> <li>
<h3><a href="<%= job.url %>" target="_blank"><%= job.name %></a></h3> <h3><a href="<%= job.url %>" target="_blank"><%= job.name %></a></h3>
<p> <!-- <p class="inlineaddress">
<span style="opacity: 0.5;" class="address"> <span style="opacity: 0.5;" class="address">
<%= job.address.street_address %>, < job.address.street_address %>,
<%= job.address.city %>, < job.address.city %>,
<%= job.address.state %> < job.address.state %>
<%= job.address.postal %> < job.address.postal %>
</span> </span>
</p> </p> -->
<ul> <ul>
<% job.involvement.forEach((period) => { %> <% job.involvement.forEach((period) => { %>
<li> <li>
<h4><%= period.description %></h4> <p><%= period.description %><br />
<p> <span style="opacity: 0.5;">Supervised by <%= period.supervisor %></span><br />
<span style="opacity: 0.5;">Supervised by <%= period.supervisor %></span> <span style="opacity: 0.5;"><%= period.start || "???" %> - <%= period.end || "Present" %></span>
</p>
<p>
<%= period.start || "???" %> - <%= period.end || "Present" %>
</p> </p>
</li> </li>
<% }); %> <% }); %>
</ul> </ul>
<p> <p>
<span style="opacity: 0.5;">Learned <%= job.experience.join(", ") %></span> <!-- <span style="opacity: 0.5;">Learned < job.experience.join(", ") %></span> -->
</p> </p>
</li> </li>
<% }); %> <% }); %>
</ul> </ul>
</section>
</main> </main>
<%- include("../components/footer.ejs") %> <%- include("../components/footer.ejs") %>
<%- include("../components/post-main.ejs") %> <%- include("../components/post-main.ejs") %>