diff --git a/apps/web/src/routes/+page.svelte b/apps/web/src/routes/+page.svelte index 0510cb604..0eb32651a 100644 --- a/apps/web/src/routes/+page.svelte +++ b/apps/web/src/routes/+page.svelte @@ -7,6 +7,7 @@ import { Input } from '@repo/ui/atom/input' import { RecommendedTag } from '@repo/ui/atom/recommended-tag' import { CourseCard } from '@repo/ui/molecule/course-card' + import { UserDialog } from '@repo/ui/molecule/user-dialog' import { Navbar } from '@repo/ui/organism/navbar' let counter = $state(0) @@ -71,4 +72,10 @@ + + Click to go to DB Demo diff --git a/packages/ui/src/components/molecule/user-dialog/index.ts b/packages/ui/src/components/molecule/user-dialog/index.ts new file mode 100644 index 000000000..e76de75d3 --- /dev/null +++ b/packages/ui/src/components/molecule/user-dialog/index.ts @@ -0,0 +1,7 @@ +import Root from './user-dialog.svelte' + +export { + Root, + // + Root as UserDialog, +} diff --git a/packages/ui/src/components/molecule/user-dialog/user-dialog.stories.svelte b/packages/ui/src/components/molecule/user-dialog/user-dialog.stories.svelte new file mode 100644 index 000000000..11de35987 --- /dev/null +++ b/packages/ui/src/components/molecule/user-dialog/user-dialog.stories.svelte @@ -0,0 +1,32 @@ + + + diff --git a/packages/ui/src/components/molecule/user-dialog/user-dialog.svelte b/packages/ui/src/components/molecule/user-dialog/user-dialog.svelte new file mode 100644 index 000000000..ee06aeec4 --- /dev/null +++ b/packages/ui/src/components/molecule/user-dialog/user-dialog.svelte @@ -0,0 +1,48 @@ + + +
+
+ Profile +
+

{shortenedName}

+

ID: {id}

+
+
+ {#each items as { icon: Icon, name }} +
+ +

{name}

+
+ {/each} +