1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-internal-static-sites/themes/signpost/components/Grid.tsx

27 lines
706 B
TypeScript

import type SectionType from './../types/section';
import Link from './Link';
type Props = {
sections: SectionType[];
};
const Grid = ({ sections }: Props) => (
<div className="grid xlg:grid-cols-5 lg:grid-cols-4 sm:grid-cols-2 grid-cols-1 gap-4">
{sections.map((section) => (
<section key={section.name} className="mt-2">
<h2 className="font-sans font-semibold text-2xl mb-4">
{section.name}
</h2>
<ul>
{section.items.map((item) => (
<li key={item.name} className="my-2">
<Link url={item.url} title={item.name} />
</li>
))}
</ul>
</section>
))}
</div>
);
export default Grid;