mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 18:56:29 +02:00
Fix details layout
This commit is contained in:
23
components/RelatedPatterns.tsx
Normal file
23
components/RelatedPatterns.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import * as React from 'react';
|
||||
import { Heading, Spacer } from '@1milligram/design';
|
||||
|
||||
import { Pattern } from '../constants/Pattern';
|
||||
import { CoverCard } from './CoverCard';
|
||||
|
||||
interface RelatedPatternsProps {
|
||||
patterns: Pattern[];
|
||||
}
|
||||
|
||||
export const RelatedPatterns: React.FC<RelatedPatternsProps> = ({ patterns }) => {
|
||||
return (
|
||||
<section>
|
||||
<Heading level={2}>See also</Heading>
|
||||
|
||||
<div style={{ alignItems: 'start', display: 'flex', flexWrap: 'wrap', padding: '1.5rem' }}>
|
||||
{
|
||||
patterns.map((pattern) => <CoverCard key={pattern} pattern={pattern} />)
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user