feat: enable horizontal scroll for the five most recent posts on the landing page
This commit is contained in:
parent
1315d9c7f1
commit
187c6de312
|
@ -34,7 +34,25 @@ export const HomePage: React.FC<HomePageProps> = ({
|
|||
return (
|
||||
<Root {...props}>
|
||||
<Hero tags={tags} />
|
||||
<PostsGrid posts={group1} pattern={[{ cols: 5, size: 'xxsmall' }]} />
|
||||
<PostsGrid
|
||||
posts={group1}
|
||||
horizontal
|
||||
pattern={[{ cols: 5, size: 'xxsmall' }]}
|
||||
breakpoints={[
|
||||
{
|
||||
breakpoint: 'xs',
|
||||
pattern: [{ cols: 1.5, size: 'xxsmall', maxWidth: '192px' }],
|
||||
},
|
||||
{
|
||||
breakpoint: 'sm',
|
||||
pattern: [{ cols: 4, size: 'xxsmall' }],
|
||||
},
|
||||
{
|
||||
breakpoint: 'md',
|
||||
pattern: [{ cols: 4, size: 'xxsmall' }],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<PostsGrid
|
||||
bordered
|
||||
posts={highlighted.slice(0, 1)}
|
||||
|
|
Loading…
Reference in New Issue