diff --git a/src/app.css b/src/app.css index 60d4abc..65a17a1 100644 --- a/src/app.css +++ b/src/app.css @@ -26,6 +26,7 @@ --secondary-foreground: 222.2 47.4% 11.2%; --accent: 210 26% 86%; + --accent-light: 210 26% 86%; --accent-foreground: 222.2 47.4% 11.2%; --destructive: 0 72.2% 50.6%; diff --git a/src/lib/components/app/code-snippet/code-snippet.svelte b/src/lib/components/app/code-snippet/code-snippet.svelte new file mode 100644 index 0000000..2e30190 --- /dev/null +++ b/src/lib/components/app/code-snippet/code-snippet.svelte @@ -0,0 +1,67 @@ + + +
+
+
{data}
+ + {#if copy || download} + + +
+ {#if copy} +
+ + +
+ {/if} + + {#if download} +
+ + + + +
+ {/if} +
+ {/if} +
+
diff --git a/src/lib/components/app/code-snippet/index.ts b/src/lib/components/app/code-snippet/index.ts new file mode 100644 index 0000000..f653cb2 --- /dev/null +++ b/src/lib/components/app/code-snippet/index.ts @@ -0,0 +1,7 @@ +import Root from "./code-snippet.svelte"; + +export { + Root, + // + Root as CodeSnippet, +}; diff --git a/src/routes/clients/[id]/+page.svelte b/src/routes/clients/[id]/+page.svelte index 62160b1..28da30f 100644 --- a/src/routes/clients/[id]/+page.svelte +++ b/src/routes/clients/[id]/+page.svelte @@ -1,71 +1,33 @@ -

{data.client.name}

+

{data.client.name}

-
-
-
{data.config}
+ - - -
-
- - -
- -
- - - - -
-
-
-
- -
+
{@html qrCode.svg()}
diff --git a/src/routes/user/+page.svelte b/src/routes/user/+page.svelte index afdbce2..d72fcab 100644 --- a/src/routes/user/+page.svelte +++ b/src/routes/user/+page.svelte @@ -2,6 +2,7 @@ import { invalidate, invalidateAll } from '$app/navigation'; import { Button } from '$lib/components/ui/button'; import { LucideLoaderCircle, LucideLogOut, LucideRefreshCw } from 'lucide-svelte'; + import { CodeSnippet } from '$lib/components/app/code-snippet/index.js'; let { data } = $props(); let isLoadingSignOut = $state(false); @@ -16,25 +17,28 @@ } - - User Profile - +
+ -
{JSON.stringify(data.user, null, 2)}
- -
- -
- -
+
+ +
+