Skip to content

Stage Banner

Stage Banner

The Stage Banner offers a different approach to the header design, compared to the main Stage component, since it doesn't show the Zurich Safe Space. It also takes less space on the screen making it ideal for situations where showcasing the brand identity takes second place and the primary focus should be the main page content.

A Stage it's the first element users see on a website and brings them into the content of the page.

UX/UI Guidelines

Check the design documentation of the component in ZeroHeight.

Implementations

The component StageBanner is available in the following technologies:

CSS Components
cssreactvue
Web Components
webreactvueangular

Parameters

Parameters

Make sure you have read about the parameters in here.

The parametrization of the component can be done with the following custom params or properties:

NameTypeSlotDescription
image-srcstring

The image-src is the URL of the image to be used.

image-altstring

Alternative text for image accessibility

cross-originstring

The crossorigin attribute of the image. Provides support for CORS, defining how the element handles cross-origin requests, thereby enabling the configuration of the CORS requests for the element's fetched data.

configstringConfiguration of the stage banner
shapestringShape of the stage banner
pictogramstringPictogram of the stage banner
categorystringCategory of the stage banner
contentstringHeadline of the stage banner
customobject

A record of key-value pairs to set the CSS custom tokens. It's a complex attribute set as an JS object in stringified JSON format.

Example:

html
<z-stage-banner custom='{"fill":"#06e7a3"}' />

Check the available values in the customization section.

custom-strstring

The stringified version of the custom property. It follows the pattern key:value;key:value;, with the possibility of setting multiple values and spaces between the punctuation characters.

Example:

html
<z-stage-banner custom-str="fill:#06e7a3" />
z-themestring

Sets the theme of the component. The possible values are light and dark.

html
<z-stage-banner z-theme="dark" />

From Figma to code

...

Customization

INFO

Check everything about the customization mechanics in the "How it works" documentation.

CSS VariableTypeDescription
--z-stage-banner--bgcolorBackground color of the stage banner
--z-stage-banner--colorcolorColor of the stage banner

Both background and text color can be customized using the --z-stage-banner--bg and --z-stage-banner--color CSS custom properties.

Stage Banner

Accessibility

...