From 8db05a56e21a1480c2009a560f5026ad5f3c7e5b Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 13 Dec 2022 10:49:43 +0100 Subject: feat: Add initial notification component --- code/app/src/components/index.ts | 2 ++ code/app/src/components/notification.svelte | 51 +++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 code/app/src/components/notification.svelte (limited to 'code/app/src/components') diff --git a/code/app/src/components/index.ts b/code/app/src/components/index.ts index 2285f08..494bc0c 100644 --- a/code/app/src/components/index.ts +++ b/code/app/src/components/index.ts @@ -8,6 +8,7 @@ import Badge from "./badge.svelte"; import ProjectStatusBadge from "./project-status-badge.svelte"; import TextArea from "./textarea.svelte"; import Combobox from "./combobox.svelte"; +import Notification from "./notification.svelte"; export { Badge, @@ -20,4 +21,5 @@ export { Input, LocaleSwitcher, Switch, + Notification, }; \ No newline at end of file diff --git a/code/app/src/components/notification.svelte b/code/app/src/components/notification.svelte new file mode 100644 index 0000000..5dbb216 --- /dev/null +++ b/code/app/src/components/notification.svelte @@ -0,0 +1,51 @@ + + +
+
+ +
+
+
+
+ +
+
+

{title}

+ {#if subtitle} +

{subtitle}

+ {/if} +
+
+ +
+
+
+
+
+
+
-- cgit v1.3