Skip to content

Commit

Permalink
feat: add library logo
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Apr 15, 2020
1 parent 1a4a8d7 commit 10c6755
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/assets/images/resources.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion src/components/molecules/brand/brand.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@ module.exports = {
status: 'ready',
order: 1,
context: {
logo: 'pcc',
inBanner: true,
title: 'Platform Cooperativism Consortium',
visuallyHiddenTitle: true,
}
},
variants: [
{
name: 'resources',
label: 'Resource Library',
context: {
logo: 'resources',
title: 'Platform Cooperativism Resource Library'
}
}
]
};
2 changes: 1 addition & 1 deletion src/components/molecules/brand/brand.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="/" class="link link--brand">
{% render '@svg', {svg: 'pcc', viewBox: '0 0 32 32'}, true %}
{% render '@svg', {svg: logo, viewBox: '0 0 32 32'}, true %}
<span class="brand__title{% if visuallyHiddenTitle %} screen-reader-text{% endif %}">{{ title }}</span>
</a>

0 comments on commit 10c6755

Please sign in to comment.