feat: add multiple notification types to the Notifications section
This commit is contained in:
+17
-2
@@ -15,10 +15,19 @@ import Notification from '../components/Notifications/notification.astro';
|
|||||||
<h1>Nova Design System</h1>
|
<h1>Nova Design System</h1>
|
||||||
<section>
|
<section>
|
||||||
<h2>Notifications — Error / Warning / Success / Info</h2>
|
<h2>Notifications — Error / Warning / Success / Info</h2>
|
||||||
<div style="max-width: 400px;">
|
<div style="max-width: 400px; display: flex; flex-direction: column; gap: var(--nds-spacing-md);">
|
||||||
<Notification type="error">
|
<Notification type="error">
|
||||||
An error occurred during the operation. Please try again.
|
An error occurred during the operation. Please try again.
|
||||||
</Notification>
|
</Notification>
|
||||||
|
<Notification type="success">
|
||||||
|
The operation was completed successfully.
|
||||||
|
</Notification>
|
||||||
|
<Notification type="warning">
|
||||||
|
A warning occurred during the operation. Please check the details.
|
||||||
|
</Notification>
|
||||||
|
<Notification type="info">
|
||||||
|
Information about the operation.
|
||||||
|
</Notification>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
@@ -173,7 +182,12 @@ import Notification from '../components/Notifications/notification.astro';
|
|||||||
</main>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
<style>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--nds-background);
|
||||||
|
color: var(--nds-text);
|
||||||
|
}
|
||||||
main {
|
main {
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@@ -218,6 +232,7 @@ import Notification from '../components/Notifications/notification.astro';
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--nds-spacing-lg);
|
gap: var(--nds-spacing-lg);
|
||||||
|
color: var(--nds-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-name {
|
.icon-name {
|
||||||
|
|||||||
Reference in New Issue
Block a user