From 749b54c79446249cf8b6cb3b3b1c410a373069b3 Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Thu, 30 Jan 2020 14:31:31 -0700 Subject: [PATCH 1/2] feat: add author icon to resource card --- src/assets/images/author.svg | 1 + src/components/01-atoms/01-icons/icons.config.js | 3 +++ src/components/02-molecules/01-card/card--resource.njk | 2 +- src/components/02-molecules/01-card/card.njk | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 src/assets/images/author.svg diff --git a/src/assets/images/author.svg b/src/assets/images/author.svg new file mode 100644 index 00000000..35a984eb --- /dev/null +++ b/src/assets/images/author.svg @@ -0,0 +1 @@ + diff --git a/src/components/01-atoms/01-icons/icons.config.js b/src/components/01-atoms/01-icons/icons.config.js index 3573ba30..55ad5e76 100644 --- a/src/components/01-atoms/01-icons/icons.config.js +++ b/src/components/01-atoms/01-icons/icons.config.js @@ -14,6 +14,9 @@ module.exports = { { svg: 'share', }, + { + svg: 'author' + }, { svg: 'edit', }, diff --git a/src/components/02-molecules/01-card/card--resource.njk b/src/components/02-molecules/01-card/card--resource.njk index 8eeef543..bac9aaac 100644 --- a/src/components/02-molecules/01-card/card--resource.njk +++ b/src/components/02-molecules/01-card/card--resource.njk @@ -8,7 +8,7 @@ {{ title | safe }} {% if byline %} -

By {{ byline | safe }}

+

{% render '@svg', {svg:'author'}, true %} By {{ byline | safe }}

{% endif %}