1.1.2 • Published 8 months ago

laboratoria-plus-ce-header v1.1.2

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

Laboratoria's header implemented as a Custom Web Component

To use it, simply import the package to your HTML via <script> tag from unpkg.com

<script src="https://unpkg.com/laboratoria-ce-header"></script>

It will register a new component, you can use it with

<laboratoria-header></laboratoria-header>

NOTE: Import font in your HTML

<head>
  <link href='https://fonts.googleapis.com/css?family=Albert Sans' rel='stylesheet'>
</head>

This component expect 4 things:

  • A set of anchor tags for links
  • A property buttonname for the button buttonname
  • A property link to set the button link
  • Three properties to set langs: esLink, ptLink, enLink

If no lang properties are included, the lang selector will not be rendered.

The current lang will depend on the window.location url.

Any link can be absolute or relative.

You can see an example use here:

<laboratoria-plus-header
  name="My Button"
  link="#linkToSomewhere"
  esLink="/es"
  ptLink="/pt"
  enLink="/en"
  >
  <a href="#1">Link 1</a>
  <a href="#2">Link 2</a>
  <a href="#3">Link 3</a>
</laboratoria-plus-header>
1.1.1

9 months ago

1.1.2

8 months ago

1.1.0

10 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.5.12

1 year ago

0.5.11

1 year ago

0.5.10

1 year ago

0.5.9

1 year ago

0.5.8

1 year ago

0.5.7

1 year ago