mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-05 05:05:17 +02:00
Refactor adventure creation form
This commit is contained in:
parent
2e26e3712d
commit
716276c375
1 changed files with 6 additions and 3 deletions
|
@ -10,6 +10,7 @@
|
|||
import SucessToast from "$lib/components/SucessToast.svelte";
|
||||
import mapDrawing from "$lib/assets/adventure_map.svg"
|
||||
import EditModal from "$lib/components/EditModal.svelte";
|
||||
import { Input } from "postcss";
|
||||
|
||||
|
||||
let newName = '';
|
||||
|
@ -96,9 +97,11 @@
|
|||
</script>
|
||||
|
||||
<div class="flex flex-row items-center justify-center gap-4">
|
||||
<form on:submit={createNewAdventure} class="flex gap-2">
|
||||
<input type="text" bind:value={newName} placeholder="Adventure Name" class="input input-bordered w-full max-w-xs" />
|
||||
<input type="text" bind:value={newLocation} placeholder="Adventure Location" class="input input-bordered w-full max-w-xs" />
|
||||
<button class="btn" on:click={createNewAdventure}>Add Adventure</button>
|
||||
<input class="btn btn-primary" type="submit" value="Add Adventure">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{#if isShowingToast}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue