{"size": 449, "ext": "js", "max_stars_repo_path": "src/components/blogposts/postLink.js", "max_stars_repo_name": "micke-dahlgren/portfolio", "max_stars_repo_stars_event_min_datetime": "2020-10-25T21:04:59.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-25T21:04:59.000Z", "max_issues_repo_path": "src/components/blogposts/postLink.js", "max_issues_repo_name": "micke-dahlgren/portfolio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/blogposts/postLink.js", "max_forks_repo_name": "micke-dahlgren/portfolio", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.5217391304, "max_line_length": 53, "alphanum_fraction": 0.4922048998}
import React from "react";
import Img from "gatsby-image";
const PostLink = ({ post }) => {

  return (
    <a href={'/blog/'+post.slug}>
      <div>
        <Img
          alt="some alt"
          fluid={post.heroImage.fluid}
          style={{ width: "400px", height: "400px" }}
        />
      </div>
      <div>
        <h2>{post.title}</h2>
        <p>{post.description.description}</p>
      </div>
    </a>
  );
};

export default PostLink;
