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

57 lines
2.2 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-10-09 21:19:27 +00:00
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
2024-08-08 21:02:46 +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 17:50:38 +00:00
import {pushModal} from "@app/modal"
2024-08-14 00:58:26 +00:00
2024-09-11 18:33:50 +00:00
const createSpace = () => pushModal(SpaceCreateExternal)
2024-08-15 19:08:07 +00:00
2024-08-16 18:12:14 +00:00
const browseSpaces = () => goto("/discover")
2024-10-01 23:27:25 +00:00
2024-10-08 18:39:16 +00:00
const leaveFeedback = () =>
goto("/home/97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322")
2024-10-01 23:27:25 +00:00
2024-10-08 18:39:16 +00:00
const donate = () => window.open("https://geyser.fund/project/flotilla")
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-10-09 21:19:27 +00:00
<Button on:click={createSpace}>
<CardButton>
<div slot="icon"><Icon icon="add-circle" size={7} /></div>
<div slot="title">Create a space</div>
<div slot="info">Invite all your friends, do life together.</div>
</CardButton>
</Button>
<Button on:click={browseSpaces}>
<CardButton>
<div slot="icon"><Icon icon="compass" size={7} /></div>
<div slot="title">Discover spaces</div>
<div slot="info">Find a community based on your hobbies or interests.</div>
</CardButton>
</Button>
<Button on:click={leaveFeedback}>
<CardButton>
<div slot="icon"><Icon icon="plain" size={7} /></div>
<div slot="title">Leave feedback</div>
<div slot="info">Let us know how we can improve by giving us feedback.</div>
</CardButton>
</Button>
<Button on:click={donate}>
<CardButton>
<div slot="icon"><Icon icon="hand-pills" size={7} /></div>
<div slot="title">Donate to Flotilla</div>
<div slot="info">Support the project by donating to the developer.</div>
</CardButton>
</Button>
2024-08-05 21:45:16 +00:00
</div>
</div>
</div>
</div>