2.15.0 • Published 11 months ago

@kb-dk/kb-footer v2.15.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

kb-footer

kb-footer is a web component which shows KB design footer. Moreover, column items come from kb.dk footer API. In kb design manual, every application has to use exactly the same footer at in kb.dk, except for the first column which can be application specific.

Properties

PropertyAttributeDescriptionTypeDefault
languagelanguageThe language of the page."da" / "en""da"
jsonUuIdjsonUuIdUniversally Unique IDentifier (uuid) of drupal site nodestring""
bgColorbgColorIf the footer background color is to be sky blue, set the value to "skyblue" otherwise the footer will be the dark blue default color."skyblue"/ """"

Additional considerations

KB design allows the first column to be overwritten by the application but the other three must be the same as in kb.dk.

  • You can provide a ul element within the kb-footer which will be used as the first column.
  • ul element must have the following line inside <style>kb-footer > ul {display: none;}</style>.
  • ul element must have its id sat toappFooterColumnDA for Danish or appFooterColumnEN for English.
  • If an ul element has its id sat to appFooterColumn, it will be used as the replacement for the missing language.

Local configuratin needed

You need two configuration files in the root folder of this web component. One called .env.dev and one called .env.prod. In those files you need to specify the variables BASEURL and JSONAPIURL taylored to your local and production environment. The variables are needed to fetch non default footer data. Both filenames/locations are already added to .gitignore

Links to cookie settings

If you want a link for Cookie Settings (), please add ':cookie:' in front of the footer element title e.g. ':cookie: Cookie Settings'.

### Examples
1. Exactly as in kb.dk

2. Footer with Application specific column 
<kb-footer>
  <ul id="appFooterColumn">
      <style>kb-footer > ul {display: none;}</style>
      <li><a href="#">Om KBs Digitale samlinger</a></li>
      <li><a href="#">Mediestream</a></li>
      <li><a href="#">Danmark Set Fra Lunften</a></li>
  </ul>
</kb-footer> 
3. English footer

4. Footer with application specific footer for each language (English and Danish)
2.15.0

11 months ago

2.13.0

12 months ago

2.14.0

11 months ago

2.11.0

2 years ago

2.3.0

2 years ago

2.12.0

2 years ago

2.2.0

2 years ago

2.5.0

2 years ago

2.10.0

2 years ago

2.4.0

2 years ago

2.7.0

2 years ago

2.6.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.1.0

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago