Stephanie Dietz 65bd26b090
Update home page UI (#1068)
* home page updated UI design

* prettier

* remove unused bg color prop

* change label margin on carousol labels

* move label ui into own component

* change space-x from 6 to 4 in carousel

---------

Co-authored-by: Michael Novotny <manovotny@gmail.com>
2023-07-11 15:36:46 -05:00

27 lines
536 B
TypeScript

import clsx from 'clsx';
function Grid(props: React.ComponentProps<'ul'>) {
return (
<ul {...props} className={clsx('grid grid-flow-row gap-4 py-5', props.className)}>
{props.children}
</ul>
);
}
function GridItem(props: React.ComponentProps<'li'>) {
return (
<li
{...props}
className={clsx(
'relative aspect-square h-full w-full overflow-hidden transition-opacity',
props.className
)}
>
{props.children}
</li>
);
}
Grid.Item = GridItem;
export default Grid;