Site-Wide Banner
Display an announcement banner across all pages of your site.
Setup
Create a site-wide-banner.json file in your root directory under /src/pages/ with the following structure:
{
"total": 1,
"offset": 0,
"limit": 1,
"data": [
{
"bgColor": "success",
"icon": "info",
"text": [
"Your announcement message here."
],
"button": "Learn More",
"buttonLink": "https://example.com",
"isClose": true
}
],
":type": "sheet"
}
Properties
Property
Type
Description
bgColorstring
notice (yellow), info (blue), warning (orange), success (green), neutral (dark gray), light (white)iconstring
Icon to display:
info, warning, successtextarray
Message text (supports multiple lines)
buttonstring
Button text
buttonLinkstring
Button URL
isCloseboolean
Allow users to dismiss the banner
Example
This is what it looks like visually.