* Update WelcomeModal.svelte to prompt user to new course modal after closing Welcome Modal * pr fixes --------- Co-authored-by: Rotimi Best <[email protected]>
34 lines
1.2 KiB
Svelte
34 lines
1.2 KiB
Svelte
<script>
|
|
import Modal from '../Modal/index.svelte';
|
|
import { writable } from 'svelte/store';
|
|
import { onMount, onDestroy } from 'svelte';
|
|
import { welcomeModalStore } from './store';
|
|
import { goto } from '$app/navigation';
|
|
import { currentOrgPath } from '$lib/utils/store/org';
|
|
|
|
const closeModal = () => {
|
|
$welcomeModalStore.open = false;
|
|
goto($currentOrgPath + '/courses?create=true');
|
|
};
|
|
</script>
|
|
|
|
<Modal
|
|
onClose={closeModal}
|
|
bind:open={$welcomeModalStore.open}
|
|
width="w-9/12"
|
|
modalHeading="Welcome"
|
|
>
|
|
<p class="text-black dark:text-white text-sm md:text-base lg:text-lg">
|
|
We at <a
|
|
href="https://app.classroomio.com/"
|
|
class="text-primary-700 no-underline hover:no-underline">ClassroomIO</a
|
|
>
|
|
are a small team with a large mission to empower educators with great technology to help them train
|
|
the future generation. Education is the most powerful gift you can give anyone, and it makes so much
|
|
sense to give you all the tools you need to give more people this GIFT.
|
|
<span class="text-primary-700">Thank you for choosing us;</span> we deeply appreciate it and are
|
|
at your service.
|
|
</p>
|
|
<img src="/images/welcome-img.svg" alt="A welcome banner" class="w-full my-6" />
|
|
</Modal>
|