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"
|
|
|
|
|
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-09 21:19:27 +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>
|
|
|
|
|
<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-08-08 21:02:46 +00:00
|
|
|
</div>
|