setup wizard & macOS accessibility thing
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<script lang="ts">
|
||||
import type { PuppetMovementMode } from "$lib/bindings";
|
||||
|
||||
let {
|
||||
movementMode = $bindable(),
|
||||
busy,
|
||||
}: { movementMode: PuppetMovementMode; busy: boolean } = $props();
|
||||
</script>
|
||||
|
||||
<fieldset class="fieldset border border-base-300 bg-base-100 p-4">
|
||||
<legend class="fieldset-legend px-1">Puppets reposition</legend>
|
||||
<div class="grid grid-cols-2 gap-3">
|
||||
{#each [{ id: "free" as const, image: "/puppet-movement-free.svg", alt: "Puppets moving freely across the full viewport", label: "Freeroam around" }, { id: "bottom" as const, image: "/puppet-movement-bottom.svg", alt: "Puppets moving along the bottom of the viewport", label: "Stay on the ground" }] as option (option.id)}
|
||||
<label
|
||||
class="card cursor-pointer overflow-hidden border border-base-300 bg-base-200"
|
||||
class:border-primary={movementMode === option.id}
|
||||
>
|
||||
<img
|
||||
src={option.image}
|
||||
alt={option.alt}
|
||||
class="w-full bg-linear-to-b from-base-100 to-base-300 object-cover"
|
||||
/>
|
||||
<span class="card-body flex-row items-center gap-2 p-3">
|
||||
<input
|
||||
class="radio scale-50 radio-primary"
|
||||
type="radio"
|
||||
name="movement-mode"
|
||||
value={option.id}
|
||||
bind:group={movementMode}
|
||||
disabled={busy}
|
||||
/>
|
||||
<span class="text-xs font-bold">{option.label}</span>
|
||||
</span>
|
||||
</label>
|
||||
{/each}
|
||||
</div>
|
||||
</fieldset>
|
||||
Reference in New Issue
Block a user