Files
classroomio/apps/classroomio-com/src/lib/Hero/Hero.svelte
T

191 lines
6.5 KiB
Svelte
Raw Normal View History

2023-11-25 21:56:02 +00:00
<script>
2024-03-01 14:22:45 +01:00
import { onMount } from 'svelte';
import { fly } from 'svelte/transition';
import { sineInOut } from 'svelte/easing';
2023-11-25 21:56:02 +00:00
import { PUBLIC_ENABLE_USERS_COMPANIES } from '$env/static/public';
2024-03-01 14:22:45 +01:00
let animate = false;
2024-03-01 14:22:45 +01:00
onMount(() => {
setTimeout(() => {
animate = true;
}, 70);
2024-03-01 14:22:45 +01:00
});
2023-11-25 21:56:02 +00:00
</script>
2024-04-11 01:42:56 +01:00
<div class="root relative border-b-2 text-center bg-[#F5F8FE] h-full mt-[5%] w-full">
<div class="pt-24 w-full">
<div class="mb-10 ml-[5%] lg:ml-0 flex w-full items-center justify-start lg:justify-center">
<a
target="_blank"
rel="noopener noreferrer nofollow"
href="/github"
style="color: rgb(75, 85, 99);"
class="rounded-full border-2 border-[#C2D2FF] px-4 py-1 text-sm font-medium bg-[#DCE5FF] text-[#4B5563]"
>Give us a <span class="text-blue-700">star</span> on github</a
>
</div>
2024-04-12 06:46:54 +01:00
<div class="justify-between w-[90%] absolute top-[10%] left-[4%] hidden lg:flex">
{#if animate}
<div
class="relative transition-all hover:scale-110 rotate-12"
transition:fly={{ y: 100, delay: 0, easing: sineInOut }}
>
<a
href="/#collaboration"
class="px-6 py-2 border-[1.5px] border-[#3ADFEC] rounded-[4px] bg-white text-[#3ADFEC] text-lg font-bold"
>Collaboration</a
>
<svg
class="absolute -right-1 -bottom-2.5"
width="11"
height="11"
viewBox="0 0 11 11"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect width="10.9223" height="10.9223" fill="#3ADFEC" />
</svg>
</div>
<div
class="relative transition-all hover:scale-110 -rotate-12"
transition:fly={{ x: 100, delay: 50, easing: sineInOut }}
>
<a
href="/github"
target="_blank"
class="px-6 py-2 border-[1.5px] border-[#BF0696] rounded-[4px] bg-white text-[#BF0696] text-lg font-bold"
>Open Source</a
>
<svg
class="absolute -right-1 -bottom-2.5"
width="11"
height="11"
viewBox="0 0 11 11"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect width="10.9223" height="10.9223" fill="#BF0696" />
</svg>
</div>
{/if}
</div>
2024-04-11 01:42:56 +01:00
<div class="w-full flex flex-col">
<h1
class="mx-auto w-[89%] pr-20 lg:pr-0 lg:w-[60%] text-left lg:text-center font-bold md:leading-[1.5] text-slate-900 text-5xl lg:text-7xl"
>
Launch Your Online Bootcamp <span class="text-blue-700">In Minutes </span>
</h1>
2024-04-11 01:42:56 +01:00
<p class="text-md mx-auto mt-10 px-4 text-slate-700 md:text-lg lg:mt-6 lg:w-[42%] lg:p-0">
Meet a better learning management system (LMS) for teachers and students. ClassroomIO allows
you to launch and scale your online bootcamp with ease.
</p>
</div>
2024-04-12 06:46:54 +01:00
<div class="justify-between w-[90%] absolute top-[35%] left-[4%] hidden lg:flex">
{#if animate}
<div
class="relative transition-all hover:scale-110 -rotate-12"
transition:fly={{ x: -100, delay: 100, easing: sineInOut }}
>
<a
href="/#customization"
class="px-6 py-2 border-[1.5px] border-[#0233BD] rounded-[4px] bg-white text-[#0233BD] text-lg font-bold"
>Customizable LMS</a
>
<svg
class="absolute -right-1 -bottom-2.5"
width="11"
height="11"
viewBox="0 0 11 11"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect width="10.9223" height="10.9223" fill="#0233BD" />
</svg>
</div>
<div
class="relative transition-all hover:scale-110 rotate-12"
transition:fly={{ y: 100, delay: 150, easing: sineInOut }}
>
<a
href="/#ai"
class="px-6 py-2 border-[1.5px] border-[#9747FF] rounded-[4px] bg-white text-[#9747FF] text-lg font-bold"
>AI Support</a
>
<svg
class="absolute -right-1 -bottom-2.5"
width="11"
height="11"
viewBox="0 0 11 11"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect width="10.9223" height="10.9223" fill="#9747FF" />
</svg>
</div>
{/if}
</div>
<div class="my-10 flex flex-col items-center justify-center gap-4 md:flex-row">
<a
2024-04-11 01:42:56 +01:00
class="md:text-base w-11/12 rounded-md border-gray-200 border-2 px-6 py-3 text-sm font-medium text-center transition-all delay-100 hover:bg-gray-200 hover:shadow-xl hover:scale-95 md:w-fit lg:px-6 lg:py-4 lg:font-semibold"
href="/demo"
rel="noopener noreferrer nofollow"
>
Book a demo
</a>
<a
class="md:text-base w-11/12 rounded-md bg-blue-700 px-6 py-3 text-sm font-medium text-white text-center transition-all delay-100 hover:bg-blue-800 hover:shadow-xl hover:scale-95 md:w-fit lg:px-6 lg:py-4 lg:font-semibold"
href="/signup"
rel="noopener noreferrer nofollow"
>
Get Started for Free
</a>
<!-- <a
2024-01-26 10:06:39 +01:00
class="font-medium lg:font-semibold text-sm md:text-md w-11/12 md:w-fit border px-6 py-3 lg:px-10 lg:py-5 rounded-md"
2023-12-11 23:24:11 +03:00
href="/github"
target="_blank"
rel="noopener noreferrer nofollow"
>
View on Github
2024-01-26 10:06:39 +01:00
</a> -->
2023-11-25 21:56:02 +00:00
</div>
<div class="relative my-5 md:my-10">
<img
2024-04-11 01:42:56 +01:00
width="710"
height="710"
src="./cio-hero.webp"
alt="hero section with dark vs light mode"
class="mx-auto w-[85%] rounded-lg shadow-lg lg:w-[70%]"
/>
</div>
{#if PUBLIC_ENABLE_USERS_COMPANIES}
<div class="mb-[10%] px-[15%]">
<h2 class="text-base font-semibold text-gray-900 lg:text-xl">Used at</h2>
<div class="flex w-full flex-row flex-wrap items-center justify-between gap-5 py-[5%]">
<img loading="lazy" src="/hero-1.svg" alt="" class="w-[30%] lg:w-[13%]" />
<img loading="lazy" src="/hero-2.svg" alt="" class="w-[30%] lg:w-[13%]" />
<img loading="lazy" src="/hero-3.svg" alt="" class="w-[30%] lg:w-[13%]" />
<img loading="lazy" src="/hero-4.svg" alt="" class="w-[30%] lg:w-[13%]" />
<img loading="lazy" src="/hero-5.svg" alt="" class="w-[30%] lg:w-[13%]" />
</div>
</div>
{/if}
</div>
2023-11-25 21:56:02 +00:00
</div>
2024-04-11 01:42:56 +01:00
<style>
.root {
background-image: url('/hero-bg.svg');
}
</style>