diff --git a/bun.lockb b/bun.lockb index a6d6bb3..928b125 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/lib/components/ui/card/card-content.svelte b/src/lib/components/ui/card/card-content.svelte new file mode 100644 index 0000000..2388f2b --- /dev/null +++ b/src/lib/components/ui/card/card-content.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/src/lib/components/ui/card/card-description.svelte b/src/lib/components/ui/card/card-description.svelte new file mode 100644 index 0000000..906782a --- /dev/null +++ b/src/lib/components/ui/card/card-description.svelte @@ -0,0 +1,13 @@ + + +

+ +

diff --git a/src/lib/components/ui/card/card-footer.svelte b/src/lib/components/ui/card/card-footer.svelte new file mode 100644 index 0000000..dab6252 --- /dev/null +++ b/src/lib/components/ui/card/card-footer.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/src/lib/components/ui/card/card-header.svelte b/src/lib/components/ui/card/card-header.svelte new file mode 100644 index 0000000..d7412d7 --- /dev/null +++ b/src/lib/components/ui/card/card-header.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/src/lib/components/ui/card/card-title.svelte b/src/lib/components/ui/card/card-title.svelte new file mode 100644 index 0000000..e544dab --- /dev/null +++ b/src/lib/components/ui/card/card-title.svelte @@ -0,0 +1,21 @@ + + + + + diff --git a/src/lib/components/ui/card/card.svelte b/src/lib/components/ui/card/card.svelte new file mode 100644 index 0000000..5869a7a --- /dev/null +++ b/src/lib/components/ui/card/card.svelte @@ -0,0 +1,19 @@ + + +
+ +
diff --git a/src/lib/components/ui/card/index.ts b/src/lib/components/ui/card/index.ts new file mode 100644 index 0000000..14a7f72 --- /dev/null +++ b/src/lib/components/ui/card/index.ts @@ -0,0 +1,24 @@ +import Root from "./card.svelte"; +import Content from "./card-content.svelte"; +import Description from "./card-description.svelte"; +import Footer from "./card-footer.svelte"; +import Header from "./card-header.svelte"; +import Title from "./card-title.svelte"; + +export { + Root, + Content, + Description, + Footer, + Header, + Title, + // + Root as Card, + Content as CardContent, + Description as CardDescription, + Footer as CardFooter, + Header as CardHeader, + Title as CardTitle +}; + +export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; diff --git a/src/routes/(app)/links/+page.svelte b/src/routes/(app)/links/+page.svelte index 151fd38..db553e9 100644 --- a/src/routes/(app)/links/+page.svelte +++ b/src/routes/(app)/links/+page.svelte @@ -3,6 +3,7 @@ import { Separator } from '$lib/components/ui/separator' import { Button, buttonVariants } from '$lib/components/ui/button' import * as Dialog from '$lib/components/ui/dialog' + import * as Card from '$lib/components/ui/card' import { Input } from '$lib/components/ui/input' import { Label } from '$lib/components/ui/label' import { Loader2, PlusCircle } from 'lucide-svelte' @@ -64,9 +65,16 @@ {#if data.shorteners.length > 0} - {#each data.shorteners as shortener} - {JSON.stringify(shortener)} - {/each} +
+ {#each data.shorteners as shortener} + + + {shortener.link} + {shortener.code} + + + {/each} +
{:else}
No Data
{/if}