flotilla/src/app/components/SpaceAdd.svelte

45 lines
1.6 KiB
Svelte
Raw Normal View History

2024-08-08 21:02:46 +00:00
<script lang="ts">
2024-10-09 21:19:27 +00:00
import Icon from "@lib/components/Icon.svelte"
2024-10-15 19:02:11 +00:00
import Link from "@lib/components/Link.svelte"
2024-10-09 21:19:27 +00:00
import Button from "@lib/components/Button.svelte"
2024-08-16 17:50:38 +00:00
import CardButton from "@lib/components/CardButton.svelte"
2024-10-09 23:11:23 +00:00
import ModalHeader from "@lib/components/ModalHeader.svelte"
2024-09-11 18:33:50 +00:00
import SpaceCreateExternal from "@app/components/SpaceCreateExternal.svelte"
2024-08-16 19:42:00 +00:00
import SpaceInviteAccept from "@app/components/SpaceInviteAccept.svelte"
2024-08-16 17:50:38 +00:00
import {pushModal} from "@app/modal"
2024-08-08 21:02:46 +00:00
2024-09-11 18:33:50 +00:00
const startCreate = () => pushModal(SpaceCreateExternal)
2024-08-09 00:22:17 +00:00
2024-08-16 19:42:00 +00:00
const startJoin = () => pushModal(SpaceInviteAccept)
2024-08-08 21:02:46 +00:00
</script>
<div class="column gap-4">
2024-10-09 23:11:23 +00:00
<ModalHeader>
<div slot="title">Add a Space</div>
<div slot="info">
2024-08-16 17:50:38 +00:00
Spaces are places where communities come together to work, play, and hang out.
2024-10-09 23:11:23 +00:00
</div>
</ModalHeader>
2024-10-25 00:25:28 +00:00
<Link href="/discover">
<CardButton class="!btn-primary">
<div slot="icon"><Icon icon="compass" size={7} /></div>
<div slot="title">Discover spaces</div>
<div slot="info">Browse spaces on the discover page.</div>
</CardButton>
</Link>
2024-10-09 21:19:27 +00:00
<Button on:click={startJoin}>
<CardButton>
<div slot="icon"><Icon icon="login-2" size={7} /></div>
<div slot="title">Join a space</div>
<div slot="info">Enter an invite code or url to join an existing space.</div>
</CardButton>
</Button>
2024-10-11 00:49:42 +00:00
<Button on:click={startCreate}>
<CardButton>
<div slot="icon"><Icon icon="add-circle" size={7} /></div>
<div slot="title">Create a space</div>
<div slot="info">Just a few questions and you'll be on your way.</div>
</CardButton>
</Button>
2024-08-08 21:02:46 +00:00
</div>