diff --git a/bun.lockb b/bun.lockb index 774dc0f..20c1b2c 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 7c80b80..f4311b2 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,8 @@ "vite": "^5.0.3" }, "dependencies": { + "@fontsource/azeret-mono": "^5.1.0", + "@fontsource/lexend": "^5.1.1", "@imagemagick/magick-wasm": "^0.0.31", "lucide-svelte": "^0.456.0", "svelte-adapter-bun": "^0.5.2", diff --git a/src/app.css b/src/app.css index 41c355f..95cbd27 100644 --- a/src/app.css +++ b/src/app.css @@ -2,12 +2,21 @@ @import "tailwindcss/components"; @import "tailwindcss/utilities"; +@import url(@fontsource/lexend/400.css); +@import url(@fontsource/lexend/500.css); +@import url(@fontsource/azeret-mono/600.css); + :root { + --font-body: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, + "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", + "Helvetica Neue", sans-serif; + --font-display: "Azeret Mono", var(--font-body); --bg: hsl(0, 0%, 100%); --fg: hsl(0, 0%, 10%); - --fg-muted: hsl(0, 0%, 40%); + --fg-muted: hsl(0, 0%, 50%); + --fg-muted-alt: hsl(0, 0%, 75%); } body { - @apply text-foreground bg-background; + @apply text-foreground bg-background font-body; } diff --git a/src/lib/components/visual/Uploader.svelte b/src/lib/components/visual/Uploader.svelte index a3b598d..9fb20fe 100644 --- a/src/lib/components/visual/Uploader.svelte +++ b/src/lib/components/visual/Uploader.svelte @@ -6,22 +6,44 @@ } let fileInput = $state(); + let dragOver = $state(false); let { files = $bindable() }: Props = $props(); - const upload = () => { + function upload() { if (!fileInput) return; fileInput.click(); - }; + } + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e595e5b..cb12db2 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -39,55 +39,8 @@ }; -
-
-
- -
-
- {#each iterableFiles as file, i} -
-
- {file.name} -
-
- {#if downloadFns[i]} - - {/if} - - -
-
- {/each} - -
-
+
+