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-16 17:50:38 +00:00
import {goto} from "$app/navigation"
2024-08-08 21:02:46 +00:00
import CardButton from "@lib/components/CardButton.svelte"
2024-08-16 17:50:38 +00:00
import SpaceCreate from "@app/components/SpaceCreate.svelte"
import {pushModal} from "@app/modal"
2024-08-14 00:58:26 +00:00
2024-08-15 19:08:07 +00:00
const createSpace = () => pushModal(SpaceCreate)
2024-08-16 18:12:14 +00:00
const browseSpaces = () => goto("/discover")
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-16 17:50:38 +00:00
<div class="grid gap-3 lg:grid-cols-2">
2024-08-14 00:58:26 +00:00
<CardButton icon="add-circle" title="Create a space" class="h-24" on:click={createSpace}>
2024-08-16 17:50:38 +00:00
Invite all your friends, do life together.
2024-08-08 21:02:46 +00:00
</CardButton>
2024-08-15 19:08:07 +00:00
<CardButton icon="compass" title="Discover spaces" class="h-24" on:click={browseSpaces}>
2024-08-16 17:50:38 +00:00
Find a community based on your hobbies or interests.
2024-08-08 21:02:46 +00:00
</CardButton>
<CardButton icon="plain" title="Leave feedback" class="h-24">
2024-08-16 17:50:38 +00:00
Let us know how we can improve by giving us feedback.
2024-08-08 21:02:46 +00:00
</CardButton>
<CardButton icon="hand-pills" title="Donate to Flotilla" class="h-24">
2024-08-16 17:50:38 +00:00
Support the project by donating to the developer.
2024-08-08 21:02:46 +00:00
</CardButton>
2024-08-05 21:45:16 +00:00
</div>
</div>
</div>
</div>