update guide video for android

This commit is contained in:
Yuri Tatishchev 2025-01-07 17:58:31 -08:00
parent cc7c94417d
commit 76559d2931
Signed by: CaZzzer
GPG Key ID: E0EBF441EA424369
3 changed files with 12 additions and 6 deletions

BIN
src/lib/assets/guide-android.mp4 (Stored with Git LFS)

Binary file not shown.

View File

@ -37,7 +37,7 @@
<!--Some shenanings needed to be done to get the footer position to stick correctly,
didn't work with display: contents-->
<footer class="inset-x-0 bottom-0 w-full text-center">
<p>&copy; 2024</p>
<p>&copy; 2025</p>
</footer>
<style>

View File

@ -4,7 +4,7 @@
import { Badge } from '$lib/components/ui/badge';
import { Button, buttonVariants } from '$lib/components/ui/button';
import { Input } from '$lib/components/ui/input';
import { LucidePlus } from 'lucide-svelte';
import { LucideLoaderCircle, LucidePlus } from 'lucide-svelte';
import type { PageData } from './$types';
import { Label } from '$lib/components/ui/label';
import { page } from '$app/state';
@ -13,6 +13,7 @@
let dialogOpen = $state(page.url.searchParams.has('add'));
let dialogVal = $state(page.url.searchParams.get('add') ?? '');
let submitted = $state(false);
$effect(() => {
if (dialogOpen) page.url.searchParams.set('add', dialogVal);
@ -69,7 +70,7 @@
</Dialog.Trigger>
</div>
<Dialog.Content class="max-w-xs">
<form class="contents" method="post" action="?/create">
<form class="contents" method="post" onsubmit={() => submitted = true} action="?/create">
<Dialog.Header class="">
<Dialog.Title>Add a new device</Dialog.Title>
</Dialog.Header>
@ -86,7 +87,12 @@
/>
</div>
<Dialog.Footer>
<Button type="submit">Add</Button>
<Button type="submit" disabled={submitted}>
{#if submitted}
<LucideLoaderCircle class="size-4 mr-2 animate-spin" />
{/if}
Add
</Button>
</Dialog.Footer>
</form>
</Dialog.Content>