-
{CompanyHeader(company)}
+
{CompanyHeader(company)}
{getPeriod(company)}
@@ -177,7 +190,10 @@ function EmploymentHistory(resume: ResumeObject) {
{CompanySubHeader(company)}
+
{projects}
+
+
)
})}
@@ -188,7 +204,7 @@ function EmploymentHistory(resume: ResumeObject) {
function getPeriod(company: EmploymentRecord) {
const start = DateTime.unsafeMake(company.start);
- const end = DateTime.unsafeMake(company.end);
+ const end = company.end ? DateTime.unsafeMake(company.end) : DateTime.unsafeNow();
const period_ms = DateTime.distance(start, end);
const msInYear = 365.25 * 24 * 60 * 60 * 1000;
@@ -206,9 +222,11 @@ function getPeriod(company: EmploymentRecord) {
const t2 = DateTime.format(end, { month: "short", year: "numeric" });
let duration = `${months} mos`;
- if (years) duration = `${years} yr ${duration}`
+ if (years) duration = `${years} yr ${duration}`;
+
+ const tail = company.end ?
{t2} · {duration} :
now
- return
{t1} - {t2} · {duration};
+ return
{t1} - {tail};
}
diff --git a/src/cv-maker/static/resume-schema.json b/src/cv-maker/static/resume-schema.json
index f1cfe8f..8a0bea8 100644
--- a/src/cv-maker/static/resume-schema.json
+++ b/src/cv-maker/static/resume-schema.json
@@ -165,7 +165,6 @@
"companyDescription",
"website",
"start",
- "end",
"location",
"projects"
],
diff --git a/src/cv-maker/style.css b/src/cv-maker/style.css
index 7f05f30..2e10d0b 100644
--- a/src/cv-maker/style.css
+++ b/src/cv-maker/style.css
@@ -38,11 +38,6 @@ separator-dot {
color: #ccc;
}
-div.company a:first-child {
- text-decoration: none;
- color: steelblue;
-}
-
div#profiles {
display: flex;
gap: 5px;
@@ -64,17 +59,6 @@ div#summary {
margin-bottom: 15px;
}
-span.stack-item {
- background-color: #dfeaf1;
- padding: 5px;
- margin: 2px;
- font-size: 0.7rem;
-}
-
-div#location {
- font-size: smaller;
- padding-bottom: 5px;
-}
.section-header {
display: flex;