Files
sweet/www/components/PageSection.tsx
T
Josh CollinsworthandMarvin Hagemeister e8d1a68b58 www: refresh home page (#2418)
Overhauls the Fresh homepage with a new design, new demos, and new
sections highlighting Fresh's capabilities.

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2024-05-17 16:08:55 +02:00

14 lines
356 B
TypeScript

import { JSX } from "preact";
export function PageSection(props: JSX.HTMLAttributes<HTMLDivElement>) {
return (
<section
class={`w-full max-w-screen-xl mx-auto my-8 sm:my-16 md:my-24 lg:my-32 px-4 sm:px-8 lg:px-16 2xl:px-0 flex flex-col gap-8 md:gap-16 ${
props.class ?? ""
}`}
>
{props.children}
</section>
);
}