Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit dcc1e7c

Browse files
author
dpatanin
committed
add bottom table and fix query bug
1 parent 699d4c5 commit dcc1e7c

7 files changed

Lines changed: 58 additions & 74 deletions

File tree

gatsby-config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ module.exports = {
5252
{
5353
"resolve": `gatsby-transformer-remark`,
5454
"options": {
55+
"tableOfContents": {
56+
"heading": null,
57+
"maxDepth": 6,
58+
},
5559
"excerpt_separator": `<!-- end -->`
5660
}
5761
},

gatsby-node.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@ exports.createPages = ({ graphql, actions }) => {
66
return new Promise((resolve, reject) => {
77
resolve(
88
graphql(`
9-
{
10-
provisions: allMarkdownRemark(
11-
filter: { fileAbsolutePath: { regex: "/provisions/" } }
12-
sort: { fields: [frontmatter___date], order: DESC }
13-
) {
14-
edges {
15-
node {
16-
id
17-
frontmatter {
18-
path
19-
title
20-
date(formatString: "DD MMMM YYYY")
21-
}
22-
excerpt
23-
}
24-
}
25-
}
269
{
2710
getStarted: allMarkdownRemark(
2811
filter: { fileAbsolutePath: { regex: "/getStarted/" } }
@@ -75,16 +58,6 @@ exports.createPages = ({ graphql, actions }) => {
7558
}
7659
`,
7760
).then(result => {
78-
result.data.provisions.edges.forEach(({ node }) => {
79-
const component = path.resolve('src/templates/provision.js');
80-
createPage({
81-
path: node.frontmatter.path,
82-
component,
83-
context: {
84-
id: node.id,
85-
},
86-
});
87-
});
8861
result.data.getStarted.edges.forEach(({ node }) => {
8962
const component = path.resolve('src/templates/getStarted.js');
9063
createPage({

src/data/features.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22
{
33
"title": "Cloud Ready",
44
"description": "Ready to be deployed on a Cloud Server",
5-
"image": "/features/cloud.svg"
5+
"image": "/features/cloud.svg",
6+
"tag": "provision"
67
},
78
{
89
"title": "Open Source",
910
"description": "We are an Open Scource project and happy about your contribution",
10-
"image": "/features/Open Source.svg"
11+
"image": "/features/Open Source.svg",
12+
"tag": "provision"
1113
},
1214
{
1315
"title": "Scanner out of the box",
1416
"description": "We integrate Open Source Scanner ready to use",
15-
"image": "/features/scan.svg"
17+
"image": "/features/scan.svg",
18+
"tag": "provision"
1619
},
1720
{
1821
"title": "Scans behind the firewall",
1922
"description": "Our Scans can dig deeply in your Network",
20-
"image": "/features/firewall.svg"
23+
"image": "/features/firewall.svg",
24+
"tag": "provision"
2125
}
2226
]

src/pages/index.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Layout from "../components/Layout";
66

77
const Home = (props) => {
88
const json = props.data.allFeaturesJson.edges;
9+
const markdownRemark = props.data.markdownRemark;
910
return(
1011
<Layout bodyClass="page-home">
1112
<SEO title="Home" />
@@ -25,7 +26,7 @@ const Home = (props) => {
2526
</div>
2627
</div>
2728

28-
<div className="container pt-5 pb-5 pt-md-7 pb-md-7">
29+
<div className="container pt-5 pb-2 pt-md-7 pb-md-3">
2930
<div className="row justify-content-center">
3031
<div className="col-12">
3132
<h2 className="title-3 text-dark mb-4">What the secureCodeBox provides</h2>
@@ -47,8 +48,9 @@ const Home = (props) => {
4748
</div>
4849

4950
<div className="container pb-5 pb-md-7">
50-
<div className="col-12">
51-
<h2 className="title-3 text-dark mb-4">When is the secureCodeBox right for your team?</h2>
51+
<div className="feature">
52+
<h2 className="feature-title">{markdownRemark.frontmatter.title}</h2>
53+
<div className="feature-table" dangerouslySetInnerHTML={{ __html: markdownRemark.html }}></div>
5254
</div>
5355
</div>
5456
</Layout>
@@ -57,13 +59,21 @@ const Home = (props) => {
5759

5860
export const query = graphql`
5961
query {
60-
allFeaturesJson {
62+
markdownRemark (frontmatter: {title: {eq: "When is the secureCodeBox right for your team?"}}){
63+
frontmatter{
64+
title
65+
date
66+
}
67+
html
68+
}
69+
allFeaturesJson (filter: {tag: {eq: "provision"}}){
6170
edges {
6271
node {
6372
id
6473
title
6574
description
6675
image
76+
tag
6777
}
6878
}
6979
}

src/pages/rightForYourTeam.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: 'When is the secureCodeBox right for your team?'
3+
date: 2019-08-19T13:06:03+02:00
4+
path: '/rightForYourTeam.md'
5+
---
6+
7+
| The secureCodeBox is intended for: | The secureCodeBox might not be right for: |
8+
| ------------------------------------------------ | :---------------------------------------------: |
9+
| Teams with a medium to advanced security program | Teams just starting with a security program |
10+
| Multi-team setups | Teams with separate dev, ops and security teams |
11+
| Integration into fast moving teams |
12+

src/scss/components/_feature.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,24 @@
4141
}
4242
}
4343
}
44+
.feature-table {
45+
table-layout: auto;
46+
table {
47+
thead {
48+
tr {
49+
th{
50+
color: $secondary;
51+
}
52+
}
53+
}
54+
tbody {
55+
tr {
56+
td {
57+
color: $secondary;
58+
font-size: 0.75rem;
59+
}
60+
}
61+
}
62+
}
63+
}
4464
}

src/templates/provision.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)