Custom HTML element
<gw-group-text-and-media-centered content="" theme=""></gw-group-text-and-media-centered>
Properties
Name | Type | Description |
---|---|---|
content | String | base64 encoded object |
theme | String |
content
{
"title": "Here goes an short intro to the section, maybe even a second row",
"text": "<p>Duis dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>",
"media": {
"type": "video" | "image" | "dynamicMediaVideo",
"image": {
"url": "https://picsum.photos/900/500",
"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/"
},
"smartCrops": {
"1-1-S": "",
"1-1-M": "",
"1-1-L": "",
"4-3-S": "",
"4-3-M": "",
"4-3-L": "",
"3-4-S": "",
"3-4-M": "",
"3-4-L": "",
"8-3-S": "",
"8-3-M": "",
"8-3-L": "",
"16-9-S": "",
"16-9-M": "",
"16-9-L": "",
"blur-up": ""
},
"tag": {
"visible": true,
"title": "Title",
"text": "Label text",
"url": "/#",
"position": "bottomRight"
}
},
"video": {
"title": "Youtube video title",
"src": "https://www.youtube-nocookie.com/embed/BHrmpX-dEnw"
},
"dynamicMediaVideo": {
"serverurl": "",
"videoserverurl": "",
"contentUrl": "",
"asset": "",
"poster": {
"width": 1600,
"height": 900,
"url": "",
"alt": "",
"renditions": {},
"smartCrops": {}
}
}
"visible": true
},
"link": {
"text": "Read more",
"url": "/#",
"type": "primary",
"visible": true
},
"config": {
"aspectRatio": "1-1" | "4-3" | "3-4" | "8-3" | "16-9",
"padding": {
"top": true,
"bottom": true
}
}
}
theme Two different color options:
- "theme-alt-1" (white)
- "theme-alt-2" (grey)
Dependencies
@assaabloy/gw-group-vendor
@assaabloy/brand-styles