diff --git a/src/components/ArticleCard/index.tsx b/src/components/ArticleCard/index.tsx index a96491b3..a164a47c 100644 --- a/src/components/ArticleCard/index.tsx +++ b/src/components/ArticleCard/index.tsx @@ -3,6 +3,7 @@ import './styles.css' import cx from 'classnames' import { Date } from './Date' import { IImage } from 'src/types' +import Link from 'next/link' export interface IArticleCardProps { article: any @@ -11,29 +12,31 @@ export interface IArticleCardProps { export const ArticleCard: React.FC = ({ article, ...props }) => (
- -
- {!props.preview ? null : ( - - {props.preview.alt} `${url} ${density}x`).join(' ')} - /> - - )} -
+ +
+
+ {!props.preview ? null : ( + + {props.preview.alt} `${url} ${density}x`).join(' ')} + /> + + )} +
-
- {article.title} +
+ {article.title} - {!article.date ? null : ( - - {article.date} - - )} -
-
+ {!article.date ? null : ( + + {article.date} + + )} +
+ +
)