aboutsummaryrefslogtreecommitdiff
path: root/components/card.tsx
blob: ba62d57a6d674d27e84a19284ae1a6129be70a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
import { ArticleMeta } from '../pages/post/[id]';

export default function PostCard(props: {
	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>
	</a>
}