Lernen: Kurskarte & Fortsetzung — component.learning-course-card
Wiederverwendbare Learning-Ausgabe aus gelieferten Daten; keine fachlichen Schreibaktionen. 1.2: feste Texte mehrsprachig (invisible_i18n). 1.3.0 (01.11.2026, opt-in, iamgreat Eltern-Portal): cover { emoji, color } = Kursbild wie family-ui coverStyle (Emoji statt Symbol, Hex-Farbe als Verlauf).
Beispiele
Keine Demo-Fälle hinterlegt (demo.php ergänzen).
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
title * | string | "" |
category | string | "" |
description | string | "" |
meta | string | "" |
icon | string | "book-open" |
status | string: available | in-progress | complete | locked | "available" |
progress | number | -1 |
progressPlaceholder | string | "" |
progressLabel | string | "" |
href | string | "" |
linkLabel | string | "Kurs ansehen" |
variant | string: card | row | featured | "card" |
cover | object | — |
Events & Slots
Events: navigate
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--learning-course-background | var(--color-surface-default) |
--learning-course-muted | var(--color-text-muted) |
--learning-course-accent | var(--color-accent) |
--learning-course-radius | calc(var(--radius-surface) * 1.6) |
--learning-course-focus | var(--focus-ring-color) |
Genutzte Design-Tokens
border.hairline color.accent color.accent-soft color.border.subtle color.surface.default color.text.default color.text.muted duration.base easing.standard elevation.raised focus.ring-color focus.ring-offset focus.ring-width font.family.default font.family.display leading.base leading.tight radius.surface size.1 size.10 size.12 size.2 size.3 size.4 size.5 size.6 size.8 text.2xl text.md text.sm text.xl text.xs weight.bold weight.semibold