From 501ca1ae4d2f9c5f7e8c89f0bd241350bedfd636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 1 Sep 2023 03:05:33 +0200 Subject: [PATCH] feat(projects): display project type and keywords (#18) --- components/projects.js | 8 +++++++- test/__snapshots__/index.test.js.snap | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/components/projects.js b/components/projects.js index 058abf2..e429649 100644 --- a/components/projects.js +++ b/components/projects.js @@ -12,7 +12,7 @@ export default function Projects(projects = []) {

Projects

- ${projects.map(({ description, entity, highlights = [], name, startDate, endDate, roles = [], url }) => html` + ${projects.map(({ description, entity, highlights = [], keywords = [], name, startDate, endDate, roles = [], type, url }) => html`

${Link(url, name)}

@@ -22,6 +22,7 @@ export default function Projects(projects = []) { ${entity && html`at ${entity}`}
${Duration(startDate, endDate)}
+ ${type && html`
${type}
`} ${description && markdown(description)} @@ -30,6 +31,11 @@ export default function Projects(projects = []) { ${highlights.map(highlight => html`
  • ${markdown(highlight)}
  • `)} `} + ${keywords.length > 0 && html` + + `} `)} diff --git a/test/__snapshots__/index.test.js.snap b/test/__snapshots__/index.test.js.snap index 490f812..f1837b4 100644 --- a/test/__snapshots__/index.test.js.snap +++ b/test/__snapshots__/index.test.js.snap @@ -162,6 +162,7 @@ exports[`renders a resume 1`] = ` at Smoogle
    +
    application

    A mapping engine that misguides you

    @@ -170,6 +171,11 @@ exports[`renders a resume 1`] = `
  • Won award at AIHacks 2016

  • Built by all women team of newbie programmers

  • Using modern technologies such as GoogleMaps, Chrome Extension and Javascript

  • + + +