32c1501e9c
Co-authored-by: deveshanim3 <deveshsingh6986@gmail.com> Co-committed-by: deveshanim3 <deveshsingh6986@gmail.com>
53 lines
1.7 KiB
Svelte
53 lines
1.7 KiB
Svelte
<script lang="ts">
|
|
import {preventDefault} from "@lib/html"
|
|
import AltArrowLeft from "@assets/icons/alt-arrow-left.svg?dataurl"
|
|
import HomeSmile from "@assets/icons/home-smile.svg?dataurl"
|
|
import Icon from "@lib/components/Icon.svelte"
|
|
import Button from "@lib/components/Button.svelte"
|
|
import Modal from "@lib/components/Modal.svelte"
|
|
import ModalBody from "@lib/components/ModalBody.svelte"
|
|
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
|
import ModalTitle from "@lib/components/ModalTitle.svelte"
|
|
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
|
import ProgressBar from "@app/components/ProgressBar.svelte"
|
|
|
|
type Props = {
|
|
next: () => void
|
|
step?: number
|
|
totalSteps?: number
|
|
}
|
|
|
|
const {next, step, totalSteps}: Props = $props()
|
|
|
|
const back = () => history.back()
|
|
</script>
|
|
|
|
<Modal tag="form" onsubmit={preventDefault(next)}>
|
|
<ModalBody>
|
|
<ModalHeader>
|
|
<ModalTitle>You're all set!</ModalTitle>
|
|
</ModalHeader>
|
|
<p>
|
|
You've created your profile, saved your keys, and now you're ready to start chatting — all
|
|
without asking permission!
|
|
</p>
|
|
<p>
|
|
From your dashboard, you can use invite links, discover community spaces, and keep up-to-date
|
|
on groups you've already joined. Click below to get started!
|
|
</p>
|
|
</ModalBody>
|
|
{#if step && totalSteps}
|
|
<ProgressBar current={step} total={totalSteps} />
|
|
{/if}
|
|
<ModalFooter>
|
|
<Button class="btn btn-link" onclick={back}>
|
|
<Icon icon={AltArrowLeft} />
|
|
Go back
|
|
</Button>
|
|
<Button class="btn btn-primary" type="submit">
|
|
<Icon icon={HomeSmile} />
|
|
Go to Dashboard
|
|
</Button>
|
|
</ModalFooter>
|
|
</Modal>
|