Principes Bases Accessibilité Système de design Guidelines Deutsch Français Italiano English Nos principes de design Centré sur l’utilisateur Reconnaissable Inclusif Minimaliste Holistique Auto-explicatif Axé sur les tâches Approprié Portail de la marque CFF Logo Horloge numérique Droits d’utilisation Couleurs de base Couleurs supplémentaires Couleurs off-brand Icônes Icônes de l’horaire Pictogrammes À propos de l’accessibilité À propos de ce guide Contact Informations complémentaires Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Conception Développer FAQ Aide Procès Contribution Contact Aperçu Base Composants Aperçu Releases Design Tokens Composants Aperçu Base Informations Aperçu Base Composants Aperçu Power-Apps Bandeaux publicitaires numériques SAP IA Design : Bases Icônes d’applications Cette page n'est pas disponible dans la langue souhaitée. Langues disponibles: Deutsch English Teaser-Product-Static Info

Was macht die Komponente?

Ein Teaser ist eine Vorschau, der Nutzende neugierig machen und sie dazu anregen soll, auf weitere Inhalte oder Seiten zu klicken.

Wann soll die Komponente eingesetzt werden?

  • Um Inhalte, Artikel, Produkte oder Dienstleistungen hervorzuheben und zu bewerben.
  • Um Nutzende auf weiterführende Informationen oder interessante Inhalte aufmerksam zu machen.

Regeln

  • Verwende eine prägnante und einladende Überschrift sowie eine kurze, interessante Beschreibung.
  • Verwende nicht zu viele verschiedene Teaser-Arten- und Grössen auf einer Seite.
  • Mehrere Teaser können mit einem Titel strukturiert werden.
  • Der Teaser-Product-Static soll nur verwendet werden, wenn der Teaser mehrere CTA enthalten soll.
Teaser Teaser-Hero Teaser-Product Button Secondary-Button Image
Anatomie

Anatomie der Komponente


Nummer Typ Beschreibung Optional Hinweis
1 Komponente sbb-image Nein
2 Slot Für textuellen Inhalt. Nein
3 Komponente sbb-action-group Nein Enthält mehrere Buttons oder Links
4 Slot Footnote Ja
Demo

Spielwiese

Benefit from up to 70% discount

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pretium felis sit amet felis viverra lacinia. Donec et enim mi. Aliquam erat volutpat. Proin ut odio tellus. Donec tempor mi vel dapibus lobortis. Sed at ex sit amet leo suscipit fermentum. Donec consequat hendrerit tortor, ut laoreet velit congue in.

Label Label

Footnote Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pretium felis sitamet felis viverra lacinia. Donec et enim mi. Aliquam erat volutpat. Proin ut odio tellus. Donectempor mi vel dapibus lobortis.

Bild-Anordnung Danach Davor Negativ Nein Ja Footnote Ja Nein Mode (System-Einstellung) Light Dark Hintergrund White Midnight Milk Charcoal Cloud Iron Midnight White Charcoal Milk Iron Cloud
Default
Negative
Image Before
No Footer
Slotted Img
With Chip
HTML in Zwischenablage kopiert.
Implementation

The sbb-teaser-product-static is a component that can display a text and a footnote,
combined with an image as background, to tease a product.
It should be used if there is more than one interactive action,
otherwise, see sbb-teaser-product.

<sbb-teaser-product-static>
  <sbb-image slot="image" image-src="..."></sbb-image>

  <p class="sbb-teaser-product--spacing">Content ...</p>

  <p slot="footnote" class="sbb-teaser-product--spacing">...</p>
</sbb-teaser-product-static>

Slots

Use the image slot to pass an sbb-image or an img that will be used as background.
Optionally, you can add an overlapping sbb-chip-label by wrapping the sbb-image in a figure tag (see sbb-image doc).

Use the optional footnote slot to add a text anchored to the bottom-end of the component.

The default slot is reserved for the main content: it could be a simple text or a text combined with more elements,
like a sbb-title or some interactive elements, like buttons or links within the sbb-action-group component.

<sbb-teaser-product-static>
  <figure slot="image" class="sbb-figure">
    <sbb-image image-src="..."></sbb-image>
    <sbb-chip-label class="sbb-figure-overlap-start-start">Chip label</sbb-chip-label>
  </figure>

  <p class="sbb-teaser-product--spacing">Content ...</p>
</sbb-teaser-product-static>

If paragraphs, title and/or button are used, consumers can apply the helper class sbb-teaser-product--spacing
to display the components with the correct spacings.

<sbb-teaser-product-static>
  <sbb-image slot="image" image-src="..."></sbb-image>
  <sbb-title level="3" class="sbb-teaser-product--spacing">
    Benefit from up to 70% discount
  </sbb-title>
  <p class="sbb-teaser-product--spacing">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pretium felis sit amet felis
    viverra lacinia. Donec et enim mi. Aliquam erat volutpat. Proin ut odio tellus.
  </p>
  <sbb-action-group class="sbb-teaser-product--spacing">
    <sbb-button>Label</sbb-button>
    <sbb-secondary-button>Label</sbb-secondary-button>
  </sbb-action-group>
</sbb-teaser-product-static>

Style

Use the image-alignment attribute to anchor the content after (on the left) or before (on the right).

<sbb-teaser-product-static image-alignment="before"> ... </sbb-teaser-product-static>

Add the negative attribute to enable the negative variant.

<sbb-teaser-product-static negative> ... </sbb-teaser-product-static>

Properties

Name Attribute Privacy Type Default Description
imageAlignment image-alignment public 'after' | 'before' 'after' Whether the fully visible part of the image is aligned 'before' or 'after' the content. Only relevant starting from large breakpoint.
negative negative public boolean false Negative coloring variant flag.

CSS Properties

Name Default Description
--sbb-teaser-product-background-gradient-end 75% At which percentage the background should be fully transparent.
--sbb-teaser-product-background-gradient-start 25% At which percentage the background should start getting transparent.

Slots

Name Description
Use this slot to provide the main content.
footnote Use this slot to provide a footnote.
image Use this slot to provide an image or a sbb-image as a background.