image is a link
This commit is contained in:
parent
d2146e6d56
commit
9dd311892f
|
@ -8,7 +8,9 @@ import SEO from "../components/seo";
|
||||||
const NewsCard = ({ ...props }) => {
|
const NewsCard = ({ ...props }) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<img src={`https://picsum.photos/320/170?${Math.random()}`} alt={props.frontmatter.title} />
|
<Link to={props.fields.slug}>
|
||||||
|
<img src={`https://picsum.photos/320/170?${Math.random()}`} alt={props.frontmatter.title} />
|
||||||
|
</Link>
|
||||||
<Link to={props.fields.slug} className="text-xl mt-6 hover:text-primary transition-colors duration-200">
|
<Link to={props.fields.slug} className="text-xl mt-6 hover:text-primary transition-colors duration-200">
|
||||||
{props.frontmatter.title}
|
{props.frontmatter.title}
|
||||||
</Link>
|
</Link>
|
||||||
|
|
Reference in New Issue