diff --git a/components/public-page-components.html b/components/public-page-components.html index 98904a7..363e148 100644 --- a/components/public-page-components.html +++ b/components/public-page-components.html @@ -30,5 +30,25 @@ +
+

Component: Call to action Card

+ +
+
+
+

+ Jetzt passende Inhalte entdecken und direkt mit dem nächsten Schritt starten. +

+ +
+ +
+
+
+
+
+ diff --git a/semantic-tokens-components.html b/semantic-tokens-components.html index e559437..2191db8 100644 --- a/semantic-tokens-components.html +++ b/semantic-tokens-components.html @@ -107,6 +107,18 @@ layout-text-block-widthdimension-public-content-widthBreite des Textblocks im Viewport. + +

Call to action Card

+ + + + + + + + + +
Semantischer TokenVerwendeter Foundation-TokenBeschreibung Verwendungszweck in der Komponente
surface-call-to-action-cardsurface-card-groupFläche der Call-to-action-Card als dunkle Content-Card-Variante.
text-call-to-action-cardcolor-font-lightTextfarbe in der Call-to-action-Card.
layout-call-to-action-card-widthdimension-public-content-widthBreite der Card im Page-Layout.
layout-call-to-action-card-content-columnsminmax(0, 1fr) max-contentZweispaltiges Layout mit flexibler Textspalte und Buttonspalte in Buttonbreite.
layout-call-to-action-card-content-gapspacing-largeAbstand zwischen Text und Button.
diff --git a/styles/44-components-public-page-components.css b/styles/44-components-public-page-components.css index d7e6c40..8e06454 100644 --- a/styles/44-components-public-page-components.css +++ b/styles/44-components-public-page-components.css @@ -36,6 +36,37 @@ color: var(--text-text-block); } +.sg-card--call-to-action-card { + --surface-call-to-action-card: var(--surface-card-group); + --text-call-to-action-card: var(--color-font-light); + --layout-call-to-action-card-width: var(--dimension-public-content-width); + --layout-call-to-action-card-content-columns: minmax(0, 1fr) max-content; + --layout-call-to-action-card-content-gap: var(--spacing-large); + width: var(--layout-call-to-action-card-width); + max-width: 100%; +} + +.sg-card--call-to-action-card .sg-card-segment--body { + display: grid; + grid-template-columns: var(--layout-call-to-action-card-content-columns); + gap: var(--layout-call-to-action-card-content-gap); + align-items: center; + background: var(--surface-call-to-action-card); + color: var(--text-call-to-action-card); +} + +.sg-call-to-action-card__text { + margin: 0; + min-width: 0; + color: var(--text-call-to-action-card); +} + +.sg-call-to-action-card__action { + display: flex; + align-items: center; + justify-content: flex-end; +} + .sg-page-public-page-components .sg-preview-area { display: flex; flex-direction: column;