|
1 | | -import React from "react"; |
2 | | -import { graphql } from "gatsby"; |
3 | | -import { Link } from "gatsby"; |
4 | | -import SEO from "../../components/SEO"; |
5 | | -import Layout from "../../components/Layout"; |
| 1 | +import React from 'react'; |
| 2 | +import { graphql } from 'gatsby'; |
| 3 | +import { Link } from 'gatsby'; |
| 4 | +import SEO from '../../components/SEO'; |
| 5 | +import Layout from '../../components/Layout'; |
6 | 6 |
|
7 | 7 | const Scanner = props => { |
8 | 8 | const scanner = props.data.allMarkdownRemark.edges; |
@@ -31,27 +31,18 @@ const Scanner = props => { |
31 | 31 | {scanner.map(edge => ( |
32 | 32 | <div |
33 | 33 | key={edge.node.id} |
34 | | - className="col-12 col-md-6 col-lg-6 col-sm-12 mb-2" |
| 34 | + className="col-12 col-md-6 col-lg-6 col-sm-12 mb-2 no-highlight" |
35 | 35 | > |
36 | | - <div className="feature"> |
37 | | - {/* TODO add images |
38 | | - {edge.node.image && ( |
39 | | - <div className="feature-image"> |
40 | | - <img src={withPrefix(edge.node.image)} /> |
41 | | - </div> |
42 | | - )} */} |
43 | | - <Link |
44 | | - to={edge.node.frontmatter.path} |
45 | | - |
46 | | - > |
| 36 | + <Link to={edge.node.frontmatter.path}> |
| 37 | + <div className="feature hoverable"> |
47 | 38 | <h2 className="feature-title"> |
48 | 39 | {edge.node.frontmatter.title} |
49 | 40 | </h2> |
50 | | - </Link> |
51 | | - <div className="feature-content"> |
52 | | - <p>{edge.node.excerpt}</p> |
| 41 | + <div className="feature-content"> |
| 42 | + <p>{edge.node.excerpt}</p> |
| 43 | + </div> |
53 | 44 | </div> |
54 | | - </div> |
| 45 | + </Link> |
55 | 46 | </div> |
56 | 47 | ))} |
57 | 48 | </div> |
|
0 commit comments