import { component$, Slot, useStylesScoped$ } from '@builder.io/qwik'; import Container, { ContainerTheme } from '../container/container'; import styles from './section.css?inline'; export enum SectionPadding { TOP = 'top', BOTTOM = 'bottom', BOTH = 'both', NONE = 'none', } export interface SectionProps { id?: string; theme?: ContainerTheme; fullWidth?: boolean; padding?: SectionPadding; class?: string; } export default component$((props: SectionProps) => { useStylesScoped$(styles); const paddingClasses = { [SectionPadding.TOP]: 'pt-14 md:pt-28', [SectionPadding.BOTTOM]: 'pb-14 md:pb-28', [SectionPadding.BOTH]: 'py-14 md:py-28', [SectionPadding.NONE]: '', }[props.padding || SectionPadding.BOTH]; return (
); }); export interface SectionHeaderProps { title: string; subtitle?: string; } export const SectionHeader = component$((props: SectionHeaderProps) => { return (

{props.title}

{props.subtitle && (

{props.subtitle}

)}
); });