2024-02-14 22:57:02 +04:00
|
|
|
---
|
|
|
|
|
import { Image } from "astro:assets";
|
2024-04-17 18:25:49 +04:00
|
|
|
import product5 from "@images/features-image.avif";
|
2024-02-14 22:57:02 +04:00
|
|
|
|
2024-02-21 22:01:09 +04:00
|
|
|
// Define props from Astro
|
|
|
|
|
const { title, subTitle, benefits } = Astro.props;
|
2024-02-14 22:57:02 +04:00
|
|
|
|
2024-02-21 22:01:09 +04:00
|
|
|
// Define TypeScript interface for props
|
|
|
|
|
interface Props {
|
|
|
|
|
title: string;
|
|
|
|
|
subTitle?: string;
|
|
|
|
|
benefits?: Array<string>;
|
|
|
|
|
}
|
2024-02-14 22:57:02 +04:00
|
|
|
|
2024-02-20 08:41:34 +04:00
|
|
|
// Define SVG marker to be used in the component
|
2024-04-11 00:00:08 +04:00
|
|
|
const ListItemMarker: string = `<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="mt-0.5 h-6 w-6 text-orange-400 dark:text-orange-300 flex-none"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>`;
|
2024-02-14 22:57:02 +04:00
|
|
|
---
|
|
|
|
|
|
2024-02-19 09:36:37 +04:00
|
|
|
<section
|
2024-02-14 22:57:02 +04:00
|
|
|
class="mx-auto max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full"
|
|
|
|
|
>
|
|
|
|
|
<!-- Grid -->
|
|
|
|
|
<div class="lg:grid lg:grid-cols-12 lg:items-center lg:gap-16">
|
|
|
|
|
<div class="lg:col-span-7">
|
|
|
|
|
<Image class="rounded-xl" src={product5} alt="Mockup of floating boxes" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mt-5 sm:mt-10 lg:col-span-5 lg:mt-0">
|
|
|
|
|
<div class="space-y-6 sm:space-y-8">
|
|
|
|
|
<div class="space-y-2 md:space-y-4">
|
|
|
|
|
<h2
|
|
|
|
|
class="text-balance text-3xl font-bold text-neutral-800 dark:text-neutral-200 lg:text-4xl"
|
|
|
|
|
>
|
|
|
|
|
{title}
|
|
|
|
|
</h2>
|
|
|
|
|
{
|
2024-02-21 22:01:09 +04:00
|
|
|
subTitle && (
|
|
|
|
|
<p class="text-pretty text-neutral-600 dark:text-neutral-400">
|
|
|
|
|
{subTitle}
|
|
|
|
|
</p>
|
|
|
|
|
)
|
2024-02-14 22:57:02 +04:00
|
|
|
}
|
2024-02-21 22:01:09 +04:00
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
benefits && (
|
|
|
|
|
<ul class="space-y-2 sm:space-y-4">
|
|
|
|
|
{benefits.map((item) => (
|
|
|
|
|
<li class="flex space-x-3">
|
|
|
|
|
<Fragment set:html={ListItemMarker} />
|
|
|
|
|
<span class="text-pretty text-base font-medium text-neutral-600 dark:text-neutral-400">
|
|
|
|
|
{item}
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
))}
|
|
|
|
|
</ul>
|
|
|
|
|
)
|
|
|
|
|
}
|
2024-02-14 22:57:02 +04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-02-19 09:36:37 +04:00
|
|
|
</section>
|