Files
lapikud.github.io/src/components/layout/Section.svelte
2026-03-05 16:43:56 +02:00

24 lines
539 B
Svelte

<script>
export let bg = "";
export let padding = "normal";
export let fullWidth = false;
export let id = "";
export let className = "";
const paddingClasses = {
none: "py-0",
tight: "py-2 md:py-3",
small: "py-4 md:py-8",
normal: "py-12 max-md:py-8",
large: "py-[clamp(3rem,8vw,6rem)] max-md:py-12",
};
</script>
<section
{id}
class="w-full {paddingClasses[padding]} {bg} {className}"
>
<div class="{fullWidth ? '' : 'max-w-[1200px]'} mx-auto px-(--site-padding)">
<slot />
</div>
</section>