Using built-in components
Here, we offer a comprehensive description of the various components shipped with the theme.
HomeFooter
Description
This component renders the footer displayed on the home page.
It always displays the Kalisio sponsor logo and can optionally display trusted organization logos.
Trusted organizations are configured in ThemeConfig:
trustLogos: [
{
imageLink: 'https://example.com/logo.png',
link: 'https://example.com'
}
]Each entry supports:
| Name | Description |
|---|---|
imageLink | URL of the trusted organization logo |
link | URL opened when clicking the logo |
When trustLogos is defined and contains at least one entry, a Trusted by section is displayed above the Sponsored by section.
INFO
The Kalisio logo automatically adapts to light and dark modes.
Example
Within ThemeConfig:
trustLogos: [
{
imageLink: 'https://example.com/logo.png',
link: 'https://example.com'
}
]Then use the component in a Markdown page:
<HomeFooter />Image
Description
This component renders an image with support for dark mode.
Props
| Name | Description | Default |
|---|---|---|
src | Image displayed in light mode | '' |
darkSrc | Image displayed in dark mode | '' |
Example
<Image
src="https://kalisio.github.io/kalisioscope/kalisio/kalisio-logo-light-x256.png"
darkSrc="https://kalisio.github.io/kalisioscope/kalisio/kalisio-logo-dark-x256.png"
/>
KalisioLogo
Description
This component renders the Kalisio logo using the Image component and automatically adapts it to light and dark modes.
Example
<div style="width: 256px;">
<KalisioLogo />
</div>KalisioMaps
Description
This component renders an instance of Kano within an iframe.
To automatically authenticate the embedded application, provide a JWT token in the maps section of ThemeConfig:
maps: {
jwt: '<TOKEN>'
}Example
<KalisioMaps />TemplateAnchor
Description
This component renders a link whose href is interpolated from a context that can include:
- a domain, for querying an API depending on the configured flavor;
- a time, for querying an API at a specific time;
- a jwt, for querying an API that requires authentication.
Props
| Name | Description | Default |
|---|---|---|
text | Text to display | Required |
hrefTemplate | URL template to interpolate | Required |
domainPath | Path used to retrieve the domain value from ThemeConfig | domain |
jwtPath | Path used to retrieve the jwt value from ThemeConfig | jwt |
The corresponding values must be defined in ThemeConfig:
domain: '<DOMAIN>',
jwt: '<TOKEN>'TIP
Use domainPath and jwtPath when the domain and jwt values are declared in another section of ThemeConfig.
Example
<TemplateAnchor
text="Open Kano"
href-template="<%= domain %>"
domain-path="maps.url"
/>TourLink
Description
This component renders a link to the application configured in ThemeConfig.
Props
| Name | Description | Default |
|---|---|---|
text | Text to display | '' |
path | Application route appended to the base application URL | '' |
params | Query parameters appended to the URL | {} |
The application base URL must be defined in ThemeConfig:
appUrl: 'https://example.com/'By default, the component adds the tour=true query parameter unless a tour parameter is explicitly provided.
Example
<TourLink
text="Open application"
path="map"
:params="{ project: 'demo' }"
/>The generated link is opened in a new browser tab.