2024-08-09 23:22:09 +00:00
|
|
|
<script lang="ts">
|
2025-09-12 16:11:53 +00:00
|
|
|
import Login from "@assets/icons/login-3.svg?dataurl"
|
2025-09-10 22:26:39 +00:00
|
|
|
import AddCircle from "@assets/icons/add-circle.svg?dataurl"
|
2024-10-09 21:19:27 +00:00
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
|
|
|
|
import Button from "@lib/components/Button.svelte"
|
2025-01-15 22:05:23 +00:00
|
|
|
import Link from "@lib/components/Link.svelte"
|
2026-01-30 22:14:12 +00:00
|
|
|
import Modal from "@lib/components/Modal.svelte"
|
|
|
|
|
import ModalBody from "@lib/components/ModalBody.svelte"
|
2024-08-16 17:50:38 +00:00
|
|
|
import CardButton from "@lib/components/CardButton.svelte"
|
|
|
|
|
import LogIn from "@app/components/LogIn.svelte"
|
|
|
|
|
import SignUp from "@app/components/SignUp.svelte"
|
2026-06-08 22:33:38 +00:00
|
|
|
import {PLATFORM_TERMS, PLATFORM_PRIVACY, PLATFORM_NAME} from "@app/env"
|
2026-06-08 21:14:40 +00:00
|
|
|
import {pushModal} from "@app/modal"
|
2024-08-09 23:22:09 +00:00
|
|
|
|
|
|
|
|
const logIn = () => pushModal(LogIn)
|
|
|
|
|
|
|
|
|
|
const signUp = () => pushModal(SignUp)
|
|
|
|
|
</script>
|
|
|
|
|
|
2026-01-30 22:14:12 +00:00
|
|
|
<Modal>
|
|
|
|
|
<ModalBody>
|
2024-10-15 22:52:30 +00:00
|
|
|
<div class="py-2">
|
2024-10-22 18:04:40 +00:00
|
|
|
<h1 class="heading">Welcome to {PLATFORM_NAME}!</h1>
|
2024-10-29 21:40:37 +00:00
|
|
|
<p class="text-center">The chat app built for self-hosted communities.</p>
|
2024-10-15 22:52:30 +00:00
|
|
|
</div>
|
2025-02-04 01:21:46 +00:00
|
|
|
<Button onclick={logIn}>
|
2026-06-24 20:56:53 +00:00
|
|
|
<CardButton primary>
|
2025-02-04 00:37:14 +00:00
|
|
|
{#snippet icon()}
|
2025-09-10 22:26:39 +00:00
|
|
|
<div><Icon icon={Login} size={7} /></div>
|
2025-02-04 00:37:14 +00:00
|
|
|
{/snippet}
|
|
|
|
|
{#snippet title()}
|
|
|
|
|
<div>Log in</div>
|
|
|
|
|
{/snippet}
|
|
|
|
|
{#snippet info()}
|
|
|
|
|
<div>If you've been here before, you know the drill.</div>
|
|
|
|
|
{/snippet}
|
2024-10-15 22:52:30 +00:00
|
|
|
</CardButton>
|
|
|
|
|
</Button>
|
2026-06-24 20:56:53 +00:00
|
|
|
<Button onclick={signUp}>
|
2024-10-15 22:52:30 +00:00
|
|
|
<CardButton>
|
2025-02-04 00:37:14 +00:00
|
|
|
{#snippet icon()}
|
2025-09-10 22:26:39 +00:00
|
|
|
<div><Icon icon={AddCircle} size={7} /></div>
|
2025-02-04 00:37:14 +00:00
|
|
|
{/snippet}
|
|
|
|
|
{#snippet title()}
|
|
|
|
|
<div>Create an account</div>
|
|
|
|
|
{/snippet}
|
|
|
|
|
{#snippet info()}
|
|
|
|
|
<div>Just a few questions and you'll be on your way.</div>
|
|
|
|
|
{/snippet}
|
2024-10-15 22:52:30 +00:00
|
|
|
</CardButton>
|
|
|
|
|
</Button>
|
2025-01-15 22:05:23 +00:00
|
|
|
<p class="text-center text-xs opacity-75">
|
|
|
|
|
By using {PLATFORM_NAME}, you consent to our
|
2025-01-16 22:54:43 +00:00
|
|
|
<Link external class="link" href={PLATFORM_TERMS}>Terms of Service</Link> and
|
|
|
|
|
<Link external class="link" href={PLATFORM_PRIVACY}>Privacy Policy</Link>.
|
2025-01-15 22:05:23 +00:00
|
|
|
</p>
|
2026-01-30 22:14:12 +00:00
|
|
|
</ModalBody>
|
|
|
|
|
</Modal>
|