Files
classroomio/apps/classroomio-com/src/routes/blog/+page.svelte
T

70 lines
2.3 KiB
Svelte
Raw Normal View History

2024-02-02 08:18:26 +01:00
<script>
import Chip from '$lib/Chip/Chip.svelte';
import { formatDate } from '$lib/utils/formatDate';
import PageSignupCTA from '$lib/PageSignupCTA/index.svelte';
2024-02-02 08:18:26 +01:00
export let data;
</script>
<svelte:head>
<title>Blog | ClassroomIO</title>
</svelte:head>
2024-04-19 04:43:59 +01:00
<div class="mt-[10%] md:mt-16">
<header
class="hero-bg lg:min-h-[30rem] pt-24 pb-16 w-full flex flex-col items-center justify-center text-center border-b border-slate-100"
2024-04-19 04:43:59 +01:00
>
2024-02-02 08:18:26 +01:00
<h1
2024-04-19 04:43:59 +01:00
class="mx-auto text-4xl md:text-7xl lg:text-6xl font-bold text-slate-900 flex flex-col items-center"
2024-02-02 08:18:26 +01:00
>
<span>What's new on</span>
2024-04-19 04:43:59 +01:00
<span class="text-blue-700 relative">ClassroomIO?</span>
2024-02-02 08:18:26 +01:00
</h1>
<p class="w-[90%] md:w-[60%] text-center font-normal text-lg text-slate-700 mt-10 lg:mt-7">
Get the latest news from ClassroomIO, including product updates, team announcements and more!
</p>
</header>
<div class="w-full flex items-center justify-center">
<ul class="flex flex-col items-start justify-start gap-2 w-[90%] md:w-[50%]">
{#each data.posts as post}
2024-04-19 04:43:59 +01:00
<li class=" py-14 w-full">
2024-02-02 08:18:26 +01:00
<div class="flex md:flex-row flex-col md:items-center gap-2">
<!-- Date -->
<p class="text-sm text-slate-500">{formatDate(post.date)}</p>
<!-- Tags -->
<div class="flex flex-col">
<div class="flex flex-wrap gap-2">
{#each post.tags as tag}
<Chip label={tag} />
{/each}
</div>
</div>
</div>
<a href={`/blog/${post.slug}`} class="group">
<p class="font-bold text-lg py-2 group-hover:text-slate-500">{post.title}</p>
<p class="text-slate-500 py-4">{post.description}</p>
</a>
<div class="flex items-center justify-start gap-4 my-2">
2024-03-01 14:22:45 +01:00
<img loading="lazy" src={post.avatar} alt="avatar" class="w-10 h-10 rounded-full" />
2024-02-02 08:18:26 +01:00
<span>
<p class="font-semibold">{post.author}</p>
<p class="text-slate-500">{post.role}</p>
</span>
</div>
</li>
{/each}
</ul>
</div>
2024-04-19 04:43:59 +01:00
<PageSignupCTA
header="Ready To Launch Your First Training?"
subText="It's free to sign up and start getting value out of the product."
btnLabel="Sign me up"
link="/signup"
demo={false}
/>
</div>