Logo
A simple component to add the Visual Framework logo to a page. You'll likely want to use this one as a template to add your own logo.
Installation info
This component is distributed with npm. After installing npm, you can install the vf-logo
with this command.
$ yarn add --dev @visual-framework/vf-logo
Sass/CSS
The source files included are written in Sass(scss
). You can point your Sass include-path
at your node_modules
directory and import it like this.
@import "@visual-framework/vf-logo/index.scss";
Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter
Nunjucks syntax
{% render '@vf-logo', {
"component-type": "element",
"logo_href": "http://www.embl.de",
"logo_text": "Visual Framework 2.0",
"image": "../../assets/vf-logo/assets/logo.svg",
"hidden_text": false
} %}
HTML
<a href="http://www.embl.de" class="vf-logo | vf-logo--has-text">
<img class="vf-logo__image" src="../../assets/vf-logo/assets/logo.svg" alt="Visual Framework 2.0" loading="eager">
<span class="vf-logo__text">Visual Framework 2.0</span>
</a>
Nunjucks syntax
{% render '@vf-logo', {
"component-type": "element",
"logo_href": "http://www.embl.de",
"logo_text": "Visual Framework 2.0",
"image": "../../assets/vf-logo/assets/logo.svg",
"override_class": "vf-logo--extreme",
"hidden_text": false
} %}
HTML
<a href="http://www.embl.de" class="vf-logo | vf-logo--has-text | vf-logo--extreme">
<img class="vf-logo__image" src="../../assets/vf-logo/assets/logo.svg" alt="Visual Framework 2.0" loading="eager">
<span class="vf-logo__text">Visual Framework 2.0</span>
</a>
Nunjucks syntax
{% render '@vf-logo', {
"component-type": "element",
"logo_href": "http://www.embl.de",
"logo_text": "Visual Framework 2.0",
"image": "../../assets/vf-logo/assets/logo.svg",
"hidden_text": true
} %}
HTML
<a href="http://www.embl.de" class="vf-logo | vf-logo--has-text">
<img class="vf-logo__image" src="../../assets/vf-logo/assets/logo.svg" alt="Visual Framework 2.0" loading="eager">
<span class="vf-logo__text vf-u-sr-only">Visual Framework 2.0</span>
</a>
Nunjucks syntax
{% render '@vf-logo', {
"component-type": "element",
"logo_href": "http://www.embl.de",
"logo_text": "Visual Framework 2.0",
"image": "../../assets/vf-logo/assets/logo.svg",
"override_class": "vf-logo--extreme",
"hidden_text": true
} %}
HTML
<a href="http://www.embl.de" class="vf-logo | vf-logo--has-text | vf-logo--extreme">
<img class="vf-logo__image" src="../../assets/vf-logo/assets/logo.svg" alt="Visual Framework 2.0" loading="eager">
<span class="vf-logo__text vf-u-sr-only">Visual Framework 2.0</span>
</a>
Assets
File system location: components/vf-logo