Logo Component

npm version

About

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.

Install

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

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.


File system location: components/vf-logo

Variants


Variant: Default live element

Nunjucks demo

{% render '@vf-logo--default', {
  "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
} %}
        

Sample output

Sample output as 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">
  <span class="vf-logo__text">Visual Framework 2.0</span>
</a>
        

Assets


Variant: Extreme live element

Nunjucks demo

{% render '@vf-logo--extreme', {
  "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
} %}
        

Sample output

Sample output as 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">
  <span class="vf-logo__text">Visual Framework 2.0</span>
</a>
        

Assets


Variant: Hidden Text live element

Nunjucks demo

{% render '@vf-logo--hidden-text', {
  "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
} %}
        

Sample output

Sample output as 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">
  <span class="vf-logo__text vf-u-sr-only">Visual Framework 2.0</span>
</a>
        

Assets


Variant: Extreme With Hidden Text live element

Nunjucks demo

{% render '@vf-logo--extreme-with-hidden-text', {
  "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
} %}
        

Sample output

Sample output as 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">
  <span class="vf-logo__text vf-u-sr-only">Visual Framework 2.0</span>
</a>
        

Assets

All components in this design system

This page is part of the components section.