2023-07-18 13:50:47 +00:00
|
|
|
<script>
|
2023-07-28 09:06:03 +01:00
|
|
|
import Modal from '../Modal/index.svelte';
|
2024-03-22 06:30:24 +01:00
|
|
|
import { page } from '$app/stores';
|
2023-11-23 13:21:44 -08:00
|
|
|
import { goto } from '$app/navigation';
|
|
|
|
|
import { currentOrgPath } from '$lib/utils/store/org';
|
2024-03-22 06:30:24 +01:00
|
|
|
import {
|
|
|
|
|
triggerSendEmail,
|
|
|
|
|
NOTIFICATION_NAME
|
|
|
|
|
} from '$lib/utils/services/notification/notification';
|
|
|
|
|
import { profile } from '$lib/utils/store/user';
|
|
|
|
|
|
2024-04-07 06:08:34 +01:00
|
|
|
let open = false;
|
2023-07-18 13:50:47 +00:00
|
|
|
|
2023-07-28 09:06:03 +01:00
|
|
|
const closeModal = () => {
|
2024-03-22 06:30:24 +01:00
|
|
|
triggerSendEmail(NOTIFICATION_NAME.WELCOME_TO_APP, {
|
|
|
|
|
to: $profile.email,
|
|
|
|
|
name: $profile.fullname
|
|
|
|
|
});
|
2024-04-07 06:08:34 +01:00
|
|
|
|
|
|
|
|
goto($currentOrgPath + '/setup');
|
2023-07-28 09:06:03 +01:00
|
|
|
};
|
2024-04-07 06:08:34 +01:00
|
|
|
|
|
|
|
|
$: {
|
|
|
|
|
const query = new URLSearchParams($page.url.search);
|
|
|
|
|
open = query.get('welcomePopup') === 'true';
|
|
|
|
|
}
|
2023-07-18 13:50:47 +00:00
|
|
|
</script>
|
|
|
|
|
|
2024-04-07 06:08:34 +01:00
|
|
|
<Modal onClose={closeModal} {open} width="w-9/12" maxWidth="w-[800px]" modalHeading="Welcome">
|
2023-11-16 07:34:50 +00:00
|
|
|
<p class="text-black dark:text-white text-sm md:text-base lg:text-lg">
|
2023-07-28 09:06:03 +01:00
|
|
|
We at <a
|
|
|
|
|
href="https://app.classroomio.com/"
|
2023-08-20 19:08:48 +00:00
|
|
|
class="text-primary-700 no-underline hover:no-underline">ClassroomIO</a
|
2023-07-28 09:06:03 +01:00
|
|
|
>
|
2023-08-20 19:08:48 +00:00
|
|
|
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.
|
2023-07-28 09:06:03 +01:00
|
|
|
</p>
|
2023-11-16 07:34:50 +00:00
|
|
|
<img src="/images/welcome-img.svg" alt="A welcome banner" class="w-full my-6" />
|
2023-07-28 09:06:03 +01:00
|
|
|
</Modal>
|