feat: go to dashboard from landing page 🚀 🚀

This commit is contained in:
Rotimi Best
2023-12-11 23:24:11 +03:00
parent fd0f6596aa
commit 9ee723c65b
3 changed files with 55 additions and 65 deletions
+17 -7
View File
@@ -36,13 +36,23 @@
> >
Spend less time doing the boring stuff, instead focus on impacting the lives of your students. Spend less time doing the boring stuff, instead focus on impacting the lives of your students.
</p> </p>
<button <div class="mt-10 flex gap-4 items-center justify-center flex-col md:flex-row">
class="font-medium lg:font-semibold text-sm md:text-md text-white px-6 py-3 lg:px-10 lg:py-5 bg-[#1D4EE2] rounded-md lg:rounded-xl mt-10" <a
data-cal-config={"{'layout':'month_view'}"} class="font-medium lg:font-semibold text-sm md:text-md w-11/12 md:w-fit text-white px-6 py-3 lg:px-10 lg:py-5 bg-[#1D4EE2] rounded-md lg:rounded-xl"
data-cal-link="classroomio/demo" href="/signup"
> rel="noopener noreferrer nofollow"
Let's show you 😍️️️️️️ >
</button> Create a free account 🚀
</a>
<a
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 lg:rounded-xl"
href="/github"
target="_blank"
rel="noopener noreferrer nofollow"
>
View on Github
</a>
</div>
<div class="relative my-5 md:my-10"> <div class="relative my-5 md:my-10">
<!-- <video <!-- <video
@@ -13,12 +13,12 @@
let showNav = false; let showNav = false;
const { const {
elements: { menu, item, trigger, arrow }, elements: { menu, item, trigger, arrow }
} = createDropdownMenu({ } = createDropdownMenu({
positioning: { positioning: {
placement: 'bottom-start', placement: 'bottom-start',
fitViewport: true, fitViewport: true
}, }
}); });
function handleShow() { function handleShow() {
@@ -35,7 +35,7 @@
el?.scrollIntoView({ el?.scrollIntoView({
behavior: 'smooth', behavior: 'smooth',
block: 'start', block: 'start',
inline: 'nearest', inline: 'nearest'
}); });
}, 50); }, 50);
} }
@@ -44,23 +44,23 @@
{ {
key: 'coursemanagement', key: 'coursemanagement',
title: 'Course Management', title: 'Course Management',
subtitle: 'Advanced course management tools ', subtitle: 'Advanced course management tools '
}, },
{ {
key: 'customization', key: 'customization',
title: 'Customizations', title: 'Customizations',
subtitle: 'Customize your classroom to your needs', subtitle: 'Customize your classroom to your needs'
}, },
{ {
key: 'collaboration', key: 'collaboration',
title: 'Forum', title: 'Forum',
subtitle: 'Seamlessly collaborate with your students', subtitle: 'Seamlessly collaborate with your students'
}, },
{ {
key: 'ai', key: 'ai',
title: 'AI Lesson Planner', title: 'AI Lesson Planner',
subtitle: "10x Educator's productivity with AI", subtitle: "10x Educator's productivity with AI"
}, }
]; ];
</script> </script>
@@ -116,14 +116,10 @@
</li> </li>
<!-- --> <!-- -->
<a href="#morefeatures"> <a href="#morefeatures">
<li class="text-gray-800 font-semibold text-sm cursor-pointer"> <li class="text-gray-800 font-semibold text-sm cursor-pointer">More features</li>
More features
</li>
</a> </a>
<a href="#pricing"> <a href="#pricing">
<li class="text-gray-800 font-semibold text-sm cursor-pointer"> <li class="text-gray-800 font-semibold text-sm cursor-pointer">Pricing</li>
Pricing
</li>
</a> </a>
</ul> </ul>
</nav> </nav>
@@ -135,26 +131,17 @@
Sign Up Sign Up
</button> --> </button> -->
<a href="/discord" target="_blank"> <a href="/discord" target="_blank">
<img <img alt="discord logo" src="/discord-blue.png" class="w-8 h-6 mr-4 cursor-pointer" />
alt="discord logo"
src="/discord-blue.png"
class="w-8 h-6 mr-4 cursor-pointer"
/>
</a> </a>
<a href="/github" target="_blank"> <a href="/github" target="_blank">
<img <img alt="github logo" src="/github-mark.png" class="w-6 h-6 mr-4 cursor-pointer" />
alt="github logo"
src="/github-mark.png"
class="w-6 h-6 mr-4 cursor-pointer"
/>
</a> </a>
<button <a
class="font-medium text-sm after:content-['→'] after:ml-2" class="font-medium text-sm after:content-['→'] after:ml-2"
data-cal-config={"{'layout':'month_view'}"} href="https://app.classroomio.com"
data-cal-link="classroomio/demo"
> >
Get a Demo Dashboard
</button> </a>
</div> </div>
<button class="block md:block lg:hidden" on:click={handleShowNav} <button class="block md:block lg:hidden" on:click={handleShowNav}
@@ -170,18 +157,12 @@
> >
<div class="flex justify-between py-2 mb-5"> <div class="flex justify-between py-2 mb-5">
<img src="/logo-512.png" alt="classroomio logo" class="w-[8%]" /> <img src="/logo-512.png" alt="classroomio logo" class="w-[8%]" />
<button on:click={handleShowNav} <button on:click={handleShowNav}><CloseLarge size={24} class="mr-5" /></button>
><CloseLarge size={24} class="mr-5" /></button
>
</div> </div>
<nav class=""> <nav class="">
<ul <ul class="flex items-center flex-col lg:flex-row justify-between w-full">
class="flex items-center flex-col lg:flex-row justify-between w-full"
>
<!-- --> <!-- -->
<li <li class="text-gray-800 font-semibold text-sm md:text-lg cursor-pointer w-full">
class="text-gray-800 font-semibold text-sm md:text-lg cursor-pointer w-full"
>
<button <button
class="w-full flex items-center justify-between hover:bg-gray-100 py-3 px-4 rounded-lg" class="w-full flex items-center justify-between hover:bg-gray-100 py-3 px-4 rounded-lg"
on:click={handleShow} on:click={handleShow}
@@ -189,10 +170,7 @@
Our Superpowers <ChevronDown /> Our Superpowers <ChevronDown />
</button> </button>
{#if showsubNav} {#if showsubNav}
<div <div in:fly={{ y: -20, duration: 700 }} out:fly={{ y: 20, duration: 400 }}>
in:fly={{ y: -20, duration: 700 }}
out:fly={{ y: 20, duration: 400 }}
>
{#each superpowers as superpower} {#each superpowers as superpower}
<a href="#{superpower.key}"> <a href="#{superpower.key}">
<p <p
@@ -228,11 +206,7 @@
target="_blank" target="_blank"
class="flex items-center rounded-md after:ml-2 w-full text-left py-4 px-4 hover:bg-gray-100 text-sm md:text-lg" class="flex items-center rounded-md after:ml-2 w-full text-left py-4 px-4 hover:bg-gray-100 text-sm md:text-lg"
> >
<img <img alt="discord logo" src="/discord-blue.png" class="w-8 h-6 mr-2 cursor-pointer" />
alt="discord logo"
src="/discord-blue.png"
class="w-8 h-6 mr-2 cursor-pointer"
/>
<span>Discord</span> <span>Discord</span>
</a> </a>
<a <a
@@ -240,20 +214,15 @@
target="_blank" target="_blank"
class="flex items-center rounded-md after:ml-2 w-full text-left py-4 px-4 hover:bg-gray-100 text-sm md:text-lg" class="flex items-center rounded-md after:ml-2 w-full text-left py-4 px-4 hover:bg-gray-100 text-sm md:text-lg"
> >
<img <img alt="github logo" src="/github-mark.png" class="w-6 h-6 mr-3 cursor-pointer" />
alt="github logo"
src="/github-mark.png"
class="w-6 h-6 mr-3 cursor-pointer"
/>
<span>Github</span> <span>Github</span>
</a> </a>
<button <a
class="font-semibold after:content-['→'] rounded-md after:ml-2 w-full text-left py-4 px-4 hover:bg-gray-100 text-sm md:text-lg" class="font-semibold after:content-['→'] rounded-md after:ml-2 w-full text-left py-4 px-4 hover:bg-gray-100 text-sm md:text-lg"
data-cal-config={"{'layout':'month_view'}"} href="https://app.classroomio.com"
data-cal-link="classroomio/demo"
> >
Get a Demo Dashboard
</button> </a>
</div> </div>
</div> </div>
{/if} {/if}
@@ -0,0 +1,11 @@
import { redirect } from '@sveltejs/kit';
import { client } from '$lib/utils/posthog';
export const load = ({ request }) => {
client.capture({
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'signup'
});
throw redirect(301, 'https://app.classroomio.com/signup');
};