This commit is contained in:
Amruth Pillai
2026-01-20 19:57:26 +01:00
parent f903e6099b
commit 4f61e921cd
@@ -21,16 +21,16 @@ export function PageSection<T extends SectionType>({ type, className, children }
<section className={cn(`page-section page-section-${type}`, className)}>
<h6 className="mb-1 text-(--page-primary-color)">{section.title || getSectionTitle(type)}</h6>
<ul
<div
className="section-content grid gap-x-(--page-gap-x) gap-y-(--page-gap-y)"
style={{ gridTemplateColumns: `repeat(${section.columns}, 1fr)` }}
>
{items.map((item) => (
<li key={item.id} className={cn(`section-item section-item-${type} wrap-break-word *:space-y-1`)}>
<div key={item.id} className={cn(`section-item section-item-${type} wrap-break-word *:space-y-1`)}>
{children(item)}
</li>
</div>
))}
</ul>
</div>
</section>
);
}