2021-07-28 22:29:23 +03:00
|
|
|
<script>
|
2025-11-01 15:49:29 +01:00
|
|
|
import { preventDefault } from '$lib/utils/functions/svelte';
|
|
|
|
|
|
2024-06-18 04:48:16 +01:00
|
|
|
import { onMount } from 'svelte';
|
2025-11-01 15:49:29 +01:00
|
|
|
import DoorOpenIcon from '@lucide/svelte/icons/door-open';
|
|
|
|
|
import ChartAreaIcon from '@lucide/svelte/icons/chart-area';
|
|
|
|
|
import BotIcon from '@lucide/svelte/icons/bot';
|
2023-08-02 19:35:27 +01:00
|
|
|
import TextField from '$lib/components/Form/TextField.svelte';
|
|
|
|
|
import PrimaryButton from '$lib/components/PrimaryButton/index.svelte';
|
|
|
|
|
import { getSupabase } from '$lib/utils/functions/supabase';
|
|
|
|
|
import { validateEmail } from '$lib/utils/functions/validateEmail';
|
2021-07-28 22:29:23 +03:00
|
|
|
|
2025-11-01 15:49:29 +01:00
|
|
|
let email = $state('');
|
|
|
|
|
let isAdding = $state(false);
|
|
|
|
|
let success = $state(false);
|
2021-07-31 23:06:14 +03:00
|
|
|
|
|
|
|
|
const supabase = getSupabase();
|
|
|
|
|
const animate = 'transition delay-75 duration-300 ease-in-out';
|
|
|
|
|
const areas = [
|
2021-07-28 22:29:23 +03:00
|
|
|
{
|
2021-07-31 23:06:14 +03:00
|
|
|
title: 'Access',
|
2025-11-01 15:49:29 +01:00
|
|
|
description: 'Quickly find any material you need to get your job done. ClassroomIO offers the All-in-on-platform'
|
2021-07-28 22:29:23 +03:00
|
|
|
},
|
|
|
|
|
{
|
2021-07-31 23:06:14 +03:00
|
|
|
title: 'Analytics',
|
|
|
|
|
description:
|
2023-08-04 12:41:12 +01:00
|
|
|
'Avoid assumptions, better understand the needs of your classrooms and give students a personlized experience'
|
2021-07-28 22:29:23 +03:00
|
|
|
},
|
|
|
|
|
{
|
2021-07-31 23:06:14 +03:00
|
|
|
title: 'Automation',
|
|
|
|
|
description:
|
2023-08-04 12:41:12 +01:00
|
|
|
'Lesson reminders, deadline reminders and many other automated alerts to help everyone in the learning process be proactive'
|
|
|
|
|
}
|
2021-07-28 22:29:23 +03:00
|
|
|
];
|
|
|
|
|
|
2021-07-31 23:06:14 +03:00
|
|
|
async function handleSubmit() {
|
2021-08-18 20:23:56 +03:00
|
|
|
if (!email || !validateEmail(email)) return;
|
2021-07-31 23:06:14 +03:00
|
|
|
isAdding = true;
|
2021-07-28 22:29:23 +03:00
|
|
|
|
2023-08-02 19:35:27 +01:00
|
|
|
await supabase.from('waitinglist').insert([{ email }]);
|
2021-07-31 23:06:14 +03:00
|
|
|
|
|
|
|
|
success = true;
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
isAdding = false;
|
|
|
|
|
success = false;
|
2023-11-07 08:51:49 +00:00
|
|
|
email = '';
|
2021-07-31 23:06:14 +03:00
|
|
|
}, 5000);
|
|
|
|
|
}
|
2024-06-18 04:48:16 +01:00
|
|
|
|
|
|
|
|
onMount(() => {
|
|
|
|
|
console.log('Welcome to CIO');
|
|
|
|
|
});
|
2021-07-28 22:29:23 +03:00
|
|
|
</script>
|
|
|
|
|
|
2021-07-31 23:21:39 +03:00
|
|
|
<svelte:head>
|
|
|
|
|
<title>ClassroomIO - The classroom software</title>
|
|
|
|
|
</svelte:head>
|
|
|
|
|
|
2025-11-01 15:49:29 +01:00
|
|
|
<div class="m-2 flex w-screen flex-col items-center justify-center font-sans sm:m-0 md:h-[93vh]">
|
2021-10-11 21:14:42 +03:00
|
|
|
<!--
|
2021-10-11 22:16:08 +03:00
|
|
|
<img
|
|
|
|
|
src="/logo-192.png"
|
|
|
|
|
alt="ClassroomIO logo"
|
|
|
|
|
class="rounded inline-block mx-auto w-20 h-20 sm:w-auto sm:h-auto"
|
|
|
|
|
data-atf="1"
|
|
|
|
|
/>
|
2021-10-11 21:14:42 +03:00
|
|
|
-->
|
2021-12-30 22:30:30 +02:00
|
|
|
<div>
|
2025-11-01 15:49:29 +01:00
|
|
|
<h3 class="text-center text-4xl dark:text-white">
|
2023-08-20 19:08:48 +00:00
|
|
|
Classroom<span class="text-primary-700">IO</span>
|
2021-07-31 23:06:14 +03:00
|
|
|
</h3>
|
2025-11-01 15:49:29 +01:00
|
|
|
<p class="text-center text-lg dark:text-white">The operating system for classroooms of the future 🚀🚀🚀.</p>
|
2021-07-28 22:29:23 +03:00
|
|
|
</div>
|
|
|
|
|
|
2025-11-01 15:49:29 +01:00
|
|
|
<form onsubmit={preventDefault(handleSubmit)} class="my-4 hidden">
|
|
|
|
|
<div class="flex flex-col items-center sm:flex-row">
|
2021-07-31 23:06:14 +03:00
|
|
|
{#if success}
|
2023-08-04 12:41:12 +01:00
|
|
|
<p class="dark:text-white">You have been added successfully. Thanks for joining.</p>
|
2021-07-31 23:06:14 +03:00
|
|
|
{:else}
|
|
|
|
|
<TextField
|
|
|
|
|
bind:value={email}
|
|
|
|
|
type="email"
|
|
|
|
|
placeholder="Enter your email.."
|
|
|
|
|
className="mr-3 my-2"
|
|
|
|
|
isRequired={true}
|
|
|
|
|
isDisabled={isAdding}
|
|
|
|
|
/>
|
2023-08-04 12:41:12 +01:00
|
|
|
<PrimaryButton type="submit" isLoading={isAdding}>Join waiting list</PrimaryButton>
|
2021-07-31 23:06:14 +03:00
|
|
|
{/if}
|
2021-07-28 22:29:23 +03:00
|
|
|
</div>
|
2021-07-31 23:06:14 +03:00
|
|
|
</form>
|
2021-07-28 22:29:23 +03:00
|
|
|
|
2025-11-01 15:49:29 +01:00
|
|
|
<div class="mt-4 flex flex-col md:flex-row">
|
2021-07-31 23:21:39 +03:00
|
|
|
{#each areas as area, index}
|
2021-07-31 23:06:14 +03:00
|
|
|
<div
|
2025-11-01 15:49:29 +01:00
|
|
|
class="active hover:border-primary-700 m-3 max-w-[350px] rounded-md border-2 bg-white px-12 py-3 shadow-xl dark:bg-black {animate}"
|
2021-07-31 23:06:14 +03:00
|
|
|
>
|
2025-11-01 15:49:29 +01:00
|
|
|
<h3 class="text-3xl dark:text-white">
|
2021-07-31 23:21:39 +03:00
|
|
|
{#if index === 0}
|
2025-11-01 15:49:29 +01:00
|
|
|
<DoorOpenIcon size={16} />
|
2021-07-31 23:21:39 +03:00
|
|
|
{:else if index === 1}
|
2025-11-01 15:49:29 +01:00
|
|
|
<ChartAreaIcon size={16} />
|
2021-07-31 23:21:39 +03:00
|
|
|
{:else if index === 2}
|
2025-11-01 15:49:29 +01:00
|
|
|
<BotIcon size={16} />
|
2021-07-31 23:21:39 +03:00
|
|
|
{/if}
|
|
|
|
|
{area.title}
|
|
|
|
|
</h3>
|
2023-05-05 20:19:45 +00:00
|
|
|
<p class="dark:text-white">{area.description}</p>
|
2021-07-28 22:29:23 +03:00
|
|
|
</div>
|
2021-07-31 23:06:14 +03:00
|
|
|
{/each}
|
2021-07-28 22:29:23 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|