diff --git a/src/components/ArticleCard.js b/src/components/ArticleCard.js index d0b52fe0..bb6798e0 100644 --- a/src/components/ArticleCard.js +++ b/src/components/ArticleCard.js @@ -16,9 +16,15 @@ const Image = ({data, alt}) => ( ) +const Link = ({href, children}) => ( + + {children} + +) + const ArticleCard = ({article}) => (
- +
{!article.preview ? null : ( {article.title}/ @@ -32,7 +38,7 @@ const ArticleCard = ({article}) => ( {article.date} )}
-
+
) diff --git a/src/style/components/ArticleCard.scss b/src/style/components/ArticleCard.scss index a039c5d7..a2f7527c 100644 --- a/src/style/components/ArticleCard.scss +++ b/src/style/components/ArticleCard.scss @@ -10,6 +10,12 @@ border: 1px solid #ccc; border-radius: 3px; + + & > a { + display: block; + position: relative; + height: 100%; + } } .ArticleCard-image {