1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-11 16:44:57 +02:00

Animate the cards

This commit is contained in:
Phuoc Nguyen
2019-11-26 15:52:48 +07:00
parent e8fcd8ffed
commit 337ac44f9e
4 changed files with 67 additions and 5 deletions

View File

@@ -14,10 +14,27 @@ const CoverCard: React.FC<CoverCardProps> = ({ pattern }) => {
<div className="pa1 w-20">
<Link
to={`/${slug(pattern)}`}
className="link flex flex-column items-center justify-center tc hover-bg-black-10 br2 pa3"
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
padding: '16px',
textDecoration: 'none',
}}
>
<CoverLoader pattern={pattern} />
<h4 className="f5 mv0 pt3 fw6">{pattern}</h4>
<h4
style={{
color: 'rgba(0, 0, 0, 0.3)',
fontSize: '16px',
fontWeight: 500,
margin: 0,
paddingTop: '12px',
}}
>
{pattern}
</h4>
</Link>
</div>
);