Add Component Notification Card with signal variants

This commit is contained in:
2026-05-28 10:14:56 +02:00
parent 4e940cb5ff
commit ea38a2cee1
2 changed files with 47 additions and 1 deletions
+37
View File
@@ -63,6 +63,43 @@
</div>
</section>
<!-- Component: Notification Card -->
<section id="component-notification-card">
<p class="sg-preview-label">Component Notification Card</p>
<div class="sg-preview-area">
<article class="sg-card" data-component="notification-card">
<div class="sg-card-segment sg-card-segment--header sg-card-segment--signal-red" data-component-part="card-header">
<p class="sg-body">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae velit posuere, posuere mauris eu, tincidunt lorem. Proin gravida sapien in mattis molestie. Sed non risus augue. Fusce sed odio vitae purus porta efficitur. Integer tempor congue sem, a convallis lorem ornare eget. Nam. Aenean.
</p>
</div>
<div class="sg-card-segment sg-card-segment--body sg-card-segment--signal-red" data-component-part="card-body">
<button class="sg-interaction-element sg-button sg-button--active" type="button" data-component="button" data-component-state="active">
zum Unternehmen
</button>
</div>
</article>
<article class="sg-card" data-component="notification-card">
<div class="sg-card-segment sg-card-segment--header sg-card-segment--signal-green" data-component-part="card-header">
<p class="sg-body">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae velit posuere, posuere mauris eu, tincidunt lorem. Proin gravida sapien in mattis molestie. Sed non risus augue. Fusce sed odio vitae purus porta efficitur. Integer tempor congue sem, a convallis lorem ornare eget. Nam. Aenean.
</p>
</div>
<div class="sg-card-segment sg-card-segment--body sg-card-segment--signal-green" data-component-part="card-body">
<button class="sg-interaction-element sg-button sg-button--active" type="button" data-component="button" data-component-state="active">
zum Unternehmen
</button>
</div>
</article>
</div>
</section>
<!-- Component: Content Card -->
<section id="component-content-card">
<p class="sg-preview-label">Component: Content Card</p>
+10 -1
View File
@@ -93,6 +93,16 @@
background: var(--surface-card-header-muted);
}
.sg-card-segment--signal-red {
background: var(--color-signal-red);
color: var(--text-card-header);
}
.sg-card-segment--signal-green {
background: var(--color-signal-green);
color: var(--text-card-header);
}
.sg-card-segment--gray {
background: var(--surface-card-segment-neutral);
}
@@ -184,4 +194,3 @@
margin: 0;
color: var(--text-card-transparent);
}