diff --git a/src/app.pcss b/src/app.pcss deleted file mode 100644 index 41b59af..0000000 --- a/src/app.pcss +++ /dev/null @@ -1,18 +0,0 @@ -/* Write your global styles here, in PostCSS syntax */ -@tailwind base; -@tailwind components; -@tailwind utilities; - -* { - box-sizing: border-box; -} - -body { - margin: 0; - padding: 0; -} - -img { - width: 100%; - margin: 0 auto; -} diff --git a/src/lib/components/AppSettings.svelte b/src/lib/components/AppSettings.svelte deleted file mode 100644 index 7ce1332..0000000 --- a/src/lib/components/AppSettings.svelte +++ /dev/null @@ -1,88 +0,0 @@ - -
-

Settings

- -
\ No newline at end of file diff --git a/src/lib/components/BackButton.svelte b/src/lib/components/BackButton.svelte index 6c383b8..35230c5 100644 --- a/src/lib/components/BackButton.svelte +++ b/src/lib/components/BackButton.svelte @@ -2,6 +2,7 @@ import {faArrowLeft} from '@fortawesome/free-solid-svg-icons'; import {Fa} from 'svelte-fa'; import {onMount} from "svelte"; + import Button from "$lib/components/Button.svelte"; let { popCount = 1 } = $props(); let href = $state(); @@ -28,6 +29,6 @@ - + diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte new file mode 100644 index 0000000..7624def --- /dev/null +++ b/src/lib/components/Button.svelte @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/Chips.svelte b/src/lib/components/Chips.svelte new file mode 100644 index 0000000..50cb362 --- /dev/null +++ b/src/lib/components/Chips.svelte @@ -0,0 +1,58 @@ + + +
+
+ + +
+
+ {#if values} + {#each values as chip} +
+ +
+ {/each} + {/if} +
+
+ + \ No newline at end of file diff --git a/src/lib/components/GlobalSearch.svelte b/src/lib/components/GlobalSearch.svelte index b567125..e1e75b8 100644 --- a/src/lib/components/GlobalSearch.svelte +++ b/src/lib/components/GlobalSearch.svelte @@ -1,22 +1,29 @@ -
{ e.preventDefault(); - settings.lastSearch = searchString; + $lastSearch = searchString; loading.set(true); onsubmit?.(searchString, true); }}> - - -
\ No newline at end of file + + + + + \ No newline at end of file diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 5c9c4ad..3d1a52b 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -1,20 +1,39 @@ -
- {#if back} - - {/if} - {#if showSearch} - { +
+
+ {#if back} + + {/if} + {#if showSearch} + { onsubmit?.(val, explicitRefresh); }} /> - {/if} - - - + {/if} +
+
+ + + +
+ + \ No newline at end of file diff --git a/src/lib/components/ImageGrid.svelte b/src/lib/components/ImageGrid.svelte index bc7f9f0..ac122fb 100644 --- a/src/lib/components/ImageGrid.svelte +++ b/src/lib/components/ImageGrid.svelte @@ -1,25 +1,36 @@ -
+
{#each posts as post} - { + { loading.set(true); }}> -
-
- {`Post -
-

{post.id} {post.file.ext} {post.rating}

-
-
+ {`Post +
{/each}
+ + \ No newline at end of file diff --git a/src/lib/components/LinkButton.svelte b/src/lib/components/LinkButton.svelte new file mode 100644 index 0000000..906dc58 --- /dev/null +++ b/src/lib/components/LinkButton.svelte @@ -0,0 +1,27 @@ + + + + {@render children?.()} + + + \ No newline at end of file diff --git a/src/lib/components/PostMedia.svelte b/src/lib/components/PostMedia.svelte index 9aa14a6..c2c2385 100644 --- a/src/lib/components/PostMedia.svelte +++ b/src/lib/components/PostMedia.svelte @@ -1,6 +1,7 @@ {#if post?.preview?.has} - {`Post + {`Post {:else} {#if ['webm', 'mp4'].includes(post.file.ext)}