1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-31 09:31:43 +02:00

Add components

This commit is contained in:
Phuoc Nguyen
2019-11-24 22:17:17 +07:00
parent 51770d0621
commit 59c65079a3
5 changed files with 6 additions and 6 deletions

View File

@@ -1,19 +0,0 @@
import React, { useEffect } from 'react';
import CoverCard from '../CoverCard';
const RelatedPatterns = ({ patterns }) => {
return (
<div className="bt b--black-20 relative">
<h3 className="absolute bg-white f4 left-2 lh-copy ma0 ph2 top-0 ttu" style={{ transform: 'translate(0px, -50%)' }}>Related patterns</h3>
<div className="flex flex-wrap items-start pa4">
{
patterns.map(pattern => <CoverCard key={pattern} pattern={pattern} />)
}
</div>
</div>
);
};
export default RelatedPatterns;