1- import React from 'react' ;
2- import { graphql } from 'gatsby' ;
3- import SEO from '../../components/SEO' ;
4- 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" ;
56
6- const Scanner = ( props ) => {
7+ const Scanner = props => {
78 const scanner = props . data . allMarkdownRemark . edges ;
89 return (
910 < Layout bodyClass = "page-scanner" >
@@ -13,47 +14,67 @@ const Scanner = (props) => {
1314 < div className = "row" >
1415 < div className = "col-12" >
1516 < h1 > Scanner</ h1 >
17+ < h2 > Out of the Box</ h2 >
18+ < p >
19+ Each Scanner is an individual tool. We took no part in building
20+ them and did not adjust them for our purposes, which is great,
21+ because, like so we can provide them as they are and ready for
22+ use.
23+ </ p >
1624 </ div >
1725 </ div >
1826 </ div >
1927 </ div >
2028
21- < div className = "container pb-6" >
22- { /* <div className="row">
23- {testimonials.map(edge => (
24- <div key={edge.node.frontmatter.path} className="col-12 col-md-6 mb-1">
25- <div className="testimonial">
26- <div className="testimonials-meta">
27- <h2 className="testimonials-title">{edge.node.frontmatter.title}</h2>
28- <p className="testimonials-name">{edge.node.frontmatter.name}</p>
29- <p className="testimonials-jobtitle">{edge.node.frontmatter.jobtitle}</p>
29+ < div className = "container pb-2 pb-md-3" >
30+ < div className = "row justify-content-center" >
31+ { scanner . map ( edge => (
32+ < div
33+ key = { edge . node . id }
34+ className = "col-12 col-md-6 col-lg-6 col-sm-12 mb-2"
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+ >
47+ < h2 className = "feature-title" >
48+ { edge . node . frontmatter . title }
49+ </ h2 >
50+ </ Link >
51+ < div className = "feature-content" >
52+ < p > { edge . node . excerpt } </ p >
3053 </ div >
31- <div
32- className="testimonials-content"
33- dangerouslySetInnerHTML={{ __html: edge.node.html }}
34- />
3554 </ div >
3655 </ div >
3756 ) ) }
38- </div> */ }
57+ </ div >
3958 </ div >
4059 </ Layout >
4160 ) ;
4261} ;
4362
4463export const query = graphql `
45- query TestimonialsQuery {
64+ query ScannerQuery {
4665 allMarkdownRemark(
47- filter: { fileAbsolutePath : { regex: "/ scanner/" } }
48- sort: { fields: [frontmatter___title], order: DESC }
66+ filter: { frontmatter : { category: { eq: " scanner" } } }
67+ sort: { fields: [frontmatter___title], order: ASC }
4968 ) {
5069 edges {
5170 node {
5271 html
5372 frontmatter {
5473 title
5574 path
75+ category
5676 }
77+ excerpt
5778 }
5879 }
5980 }
0 commit comments