flotilla/src/routes/home/+page.svelte

34 lines
1.3 KiB
Svelte
Raw Normal View History

2024-08-05 21:45:16 +00:00
<script lang="ts">
2024-08-15 19:08:07 +00:00
import {goto} from '$app/navigation'
2024-08-08 21:02:46 +00:00
import CardButton from "@lib/components/CardButton.svelte"
2024-08-14 00:58:26 +00:00
import SpaceCreate from '@app/components/SpaceCreate.svelte'
import {pushModal} from '@app/modal'
2024-08-15 19:08:07 +00:00
const createSpace = () => pushModal(SpaceCreate)
const browseSpaces = () => goto("/spaces")
2024-08-05 21:45:16 +00:00
</script>
2024-08-05 22:28:46 +00:00
<div class="hero min-h-screen bg-base-200">
2024-08-05 21:45:16 +00:00
<div class="hero-content">
2024-08-14 21:52:00 +00:00
<div class="column content gap-4">
2024-08-14 23:25:36 +00:00
<h1 class="text-center text-5xl">Welcome to</h1>
<h1 class="mb-4 text-center text-5xl font-bold uppercase">Flotilla</h1>
2024-08-08 21:02:46 +00:00
<div class="grid lg:grid-cols-2 gap-3">
2024-08-14 00:58:26 +00:00
<CardButton icon="add-circle" title="Create a space" class="h-24" on:click={createSpace}>
2024-08-08 21:02:46 +00:00
Invite all your friends, do life together.
</CardButton>
2024-08-15 19:08:07 +00:00
<CardButton icon="compass" title="Discover spaces" class="h-24" on:click={browseSpaces}>
2024-08-08 21:02:46 +00:00
Find a community based on your hobbies or interests.
</CardButton>
<CardButton icon="plain" title="Leave feedback" class="h-24">
Let us know how we can improve by giving us feedback.
</CardButton>
<CardButton icon="hand-pills" title="Donate to Flotilla" class="h-24">
Support the project by donating to the developer.
</CardButton>
2024-08-05 21:45:16 +00:00
</div>
</div>
</div>
</div>