@assaabloy/gw-group-hero-half-width-image

Web component - Hero Half Width Image

Usage no npm install needed!

<script type="module">
  import assaabloyGwGroupHeroHalfWidthImage from 'https://cdn.skypack.dev/@assaabloy/gw-group-hero-half-width-image';
</script>

README

ASSA ABLOY Global web - web components

Hero half-width

Custom HTML element

<gw-group-hero-half-width-image content="" theme=""></gw-group-hero-half-width-image>

Properties | Name | Type | Description | | ------------- | --------- | ----------------------------- | | content | String | base64 encoded object | | theme | String | |

content

{
  "title": "",
  "text": "",
  "eyebrow": {
    "title": "",
    "text": ""
  },
  "tags": [
    {
      "title": "",
      "url": ""
    },
  ],
  "link": {
    "text": "",
    "url": "",
    "type": "primary" | "secondary" | "contrast" | "default",
    "visible": true
  },
  "image": {
    "url": "",
    "renditions": {
      "blur-up": "https://dummyimage.com/40x20/",
      "400": "https://dummyimage.com/400x200/",
      "800": "https://dummyimage.com/800x400/",
      "1200": "https://dummyimage.com/1200x600/",
      "1600": "https://dummyimage.com/1600x800/",
      "2500": "https://dummyimage.com/2500x1250/"
    }
    "tag": {
      "title": "",
      "text": "",
      "url": "",
      "position": "topLeft" | "topRight" | "bottomRight" | "bottomLeft",
      "visible": true
    }
  },
  "config": {
    "overlap": { "color": "white" | "grey" }
    "padding": {
      "bottom": true
    }
  }
}

theme Two different color options:

  • "theme-alt-1" (white)
  • "theme-alt-2" (grey)

Dependencies @assaabloy/gw-group-vendor @assaabloy/brand-styles