mirror of
				https://github.com/phuoc-ng/csslayout.git
				synced 2025-10-23 02:36:11 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			836 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			836 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * A collection of popular layouts and patterns made with CSS (https://csslayout.io)
 | |
|  * (c) 2019 - 2020 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
 | |
|  */
 | |
| 
 | |
| import React from 'react';
 | |
| 
 | |
| import Pattern from '../constants/Pattern';
 | |
| import CoverCard from './CoverCard';
 | |
| import Heading from './Heading';
 | |
| 
 | |
| interface RelatedPatternsProps {
 | |
|     patterns: Pattern[];
 | |
| }
 | |
| 
 | |
| const RelatedPatterns: React.FC<RelatedPatternsProps> = ({ patterns }) => {
 | |
|     return (
 | |
|         <section>
 | |
|             <Heading title="Related patterns" />
 | |
| 
 | |
|             <div style={{ alignItems: 'start', display: 'flex', flexWrap: 'wrap', padding: '24px' }}>
 | |
|                 {
 | |
|                     patterns.map((pattern) => <CoverCard key={pattern} pattern={pattern} />)
 | |
|                 }
 | |
|             </div>
 | |
|         </section>
 | |
|     );
 | |
| };
 | |
| 
 | |
| export default RelatedPatterns;
 |