@ec-europa/ecl-logos

0.9.0 • Public • Published

EC logo

Default EC logo.

<a href="https://ec.europa.eu" class="logo" title="European Commission">
  <span class="ecl-u-sr-only">European Commission</span>
</a>

Or using Twig:

{% include '@ec-europa/ecl-logos' with {
  'to': 'https://ec.europa.eu',
  'title': 'European Commission',
} %}

EC logotype

EC logo with text. Add logo--logotype class to use it:

<a href="https://ec.europa.eu" class="logo logo--logotype" title="European Commission">
  <span class="ecl-u-sr-only">European Commission</span>
</a>

Or using Twig:

{% include '@ec-europa/ecl-logos' with {
  'to': 'https://ec.europa.eu',
  'title': 'European Commission',
  'type': 'right',
} %}

EC logotype with text below the logo

EC logo with text below. Add logo--logotypebelow class to use it:

<a href="https://ec.europa.eu" class="logo logo--logotypebelow" title="European Commission">
  <span class="ecl-u-sr-only">European Commission</span>
</a>

Or using Twig:

{% include '@ec-europa/ecl-logos' with {
  'to': 'https://ec.europa.eu',
  'title': 'European Commission',
  'type': 'below',
} %}

External classes

Additionally, you can add external classes with the extra_class optional parameter.

For example:

{% include '@ec-europa/ecl-logos' with {
  'to': 'https://ec.europa.eu',
  'title': 'Home - European Commission',
  'type': 'right',
  'extra_class': 'site-header__logo'
} %}

Readme

Keywords

none

Package Sidebar

Install

npm i @ec-europa/ecl-logos

Weekly Downloads

3

Version

0.9.0

License

EUPL-1.1

Unpacked Size

744 kB

Total Files

56

Last publish

Collaborators

  • kalin.chernev
  • weslito
  • yhuard