flotilla/src/app/components/SpaceAdd.svelte

26 lines
921 B
Svelte
Raw Normal View History

2024-08-08 21:02:46 +00:00
<script lang="ts">
2024-08-16 17:50:38 +00:00
import CardButton from "@lib/components/CardButton.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-08-09 23:22:09 +00:00
<div class="py-2">
<h1 class="heading">Add a Space</h1>
2024-08-16 17:50:38 +00:00
<p class="text-center">
Spaces are places where communities come together to work, play, and hang out.
</p>
2024-08-09 23:22:09 +00:00
</div>
2024-09-24 23:47:36 +00:00
<CardButton icon="add-circle" title="Create a space" on:click={startCreate}>
2024-08-08 21:02:46 +00:00
Just a few questions and you'll be on your way.
</CardButton>
2024-09-24 23:47:36 +00:00
<CardButton icon="login-2" title="Join a space" on:click={startJoin}>
Enter an invite code or url to join an existing space.
</CardButton>
2024-08-08 21:02:46 +00:00
</div>