flotilla/src/app/components/SpaceAdd.svelte

28 lines
947 B
Svelte
Raw Normal View History

2024-08-08 21:02:46 +00:00
<script lang="ts">
2024-08-09 23:22:09 +00:00
import Button from "@lib/components/Button.svelte"
2024-08-16 17:50:38 +00:00
import CardButton from "@lib/components/CardButton.svelte"
import SpaceCreate from "@app/components/SpaceCreate.svelte"
import SpaceJoin from "@app/components/SpaceJoin.svelte"
import {pushModal} from "@app/modal"
2024-08-08 21:02:46 +00:00
const startCreate = () => pushModal(SpaceCreate)
2024-08-09 00:22:17 +00:00
const startJoin = () => pushModal(SpaceJoin)
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-08-08 21:02:46 +00:00
<CardButton icon="add-circle" title="Get started" on:click={startCreate}>
Just a few questions and you'll be on your way.
</CardButton>
2024-08-14 21:52:00 +00:00
<div class="card2 column gap-4">
2024-08-08 21:02:46 +00:00
<h2 class="subheading">Have an invite?</h2>
2024-08-16 17:50:38 +00:00
<Button class="btn btn-primary" on:click={startJoin}>Join a Space</Button>
2024-08-08 21:02:46 +00:00
</div>
</div>