---
import type { HTMLAttributes } from 'astro/types';
interface Props extends HTMLAttributes<'section'> {
maxWidth?: 'none' | String
colReverse?: boolean
wrapperClass?: string
wFull?: boolean
hFull?: boolean
scrollSection?: boolean
}
const {
maxWidth = '1080px',
colReverse = true,
wrapperClass = '',
wFull = true,
hFull = false,
scrollSection = true,
...props
} = Astro.props;
const twoColumn = Astro.slots.has('left') || Astro.slots.has('right');
const twoColumnClasses = ` ${maxWidth === 'none' ? 'justify-center' : 'justify-center lg:justify-between'}
${colReverse ? 'flex-col-reverse' : 'flex-col'} lg:flex-row items-center`;
const className = `max-w-[${maxWidth}] ${hFull ? 'min-h-screen' : 'h-auto'} ${wFull ? 'w-full' : `w-[${maxWidth}]`} px-5 xl:px-0 flex gap-x-20 gap-y-4${twoColumn ? twoColumnClasses : ''}${props.class ? ` ${props.class}` : ''}`;
const sectionAttr = {
...(scrollSection ? { 'data-scroll-section': '' } : {}),
};
---