diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-13 09:07:35 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-13 09:07:35 +0200 |
commit | 9a6ba9adcf6393b75fc254e7fb08e1583a4001e8 (patch) | |
tree | 31a36fb8eb8f24cbf7545f76981b4157369604f4 /components/card.tsx | |
parent | 35c07445d07dd9f902df5ee991f7ccf3ac6a5f4a (diff) |
added images + some styling + software post (empty)
Diffstat (limited to 'components/card.tsx')
-rw-r--r-- | components/card.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/card.tsx b/components/card.tsx index 620ada7..7a6a472 100644 --- a/components/card.tsx +++ b/components/card.tsx @@ -3,12 +3,12 @@ import Tags from './tag'; import { ArticleMeta } from '../pages/post/[id]'; export default function PostCard(props: { - post: ArticleMeta + post: ArticleMeta; }) { - return <a className="postCard" href={"/post/" + props.post.id}> - { props.post.cover && <img src={props.post.cover} className="cover"/> } - <h2 className="title">{props.post.title}</h2> - <strong className="subtitle">{props.post.subtitle}</strong> - { props.post.tags?.length != 0 && <Tags tags={props.post.tags} /> } - </a> + return <a className='postCard' href={'/post/' + props.post.id}> + {props.post.cover && <img src={props.post.cover} className='cover' />} + <h2 className='title'>{props.post.title}</h2> + <strong className='subtitle'>{props.post.subtitle}</strong> + {props.post.tags?.length != 0 && <Tags tags={props.post.tags} />} + </a>; } |