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

Commit 193be12

Browse files
author
dpatanin
committed
add scannerIcons
1 parent 2c640fd commit 193be12

10 files changed

Lines changed: 97 additions & 10 deletions

File tree

src/pages/scanner/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
2-
import { graphql } from "gatsby";
3-
import { Link } from "gatsby";
2+
import { graphql, withPrefix, Link } from "gatsby";
43
import SEO from "../../components/SEO";
54
import Layout from "../../components/Layout";
65

@@ -26,7 +25,6 @@ const Scanner = props => {
2625
</div>
2726
</div>
2827
</div>
29-
3028
<div className="container pb-2 pb-md-3">
3129
<div className="row justify-content-center">
3230
{scanner.map(edge => (
@@ -37,10 +35,19 @@ const Scanner = props => {
3735
<Link to={edge.node.frontmatter.path}>
3836
<div className="feature hoverable">
3937
<div className="feature-scanner-icon">
40-
<img className="scanner-icon" src=""></img>
38+
<img
39+
className="scanner-icon"
40+
src={withPrefix(
41+
"/scannerIcons/" +
42+
edge.node.frontmatter.title +
43+
".svg"
44+
)}
45+
alt="scanner icon"
46+
></img>
4147
<img
4248
className="release"
4349
src={edge.node.frontmatter.release}
50+
alt="release version"
4451
></img>
4552
</div>
4653
<h2 className="feature-title">

src/scss/components/_feature.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
background-color: #ffffff;
66
display: flex;
77
align-items: center;
8+
justify-content: center;
89
flex-direction: column;
910
flex-wrap: wrap;
1011
@include media-breakpoint-down(md) {
@@ -17,6 +18,7 @@
1718
height: 80px;
1819
display: flex;
1920
text-align: center;
21+
margin-bottom: 10px;
2022
}
2123
img {
2224
width: 100%;
@@ -27,7 +29,6 @@
2729
font-size: 1.4rem;
2830
font-weight: 300;
2931
line-height: 1.2;
30-
margin-top: 10px;
3132
}
3233
.feature-content {
3334
margin-bottom: 0;
@@ -52,11 +53,12 @@
5253
align-self: flex-start;
5354
justify-self: stretch;
5455
justify-content: center;
55-
align-content: center;
56-
height: 100%;
56+
align-items: center;
57+
height: 80%;
5758
img.scanner-icon {
58-
width: 80px;
59+
width: 40px;
5960
height: auto;
61+
margin-bottom: 10px;
6062
}
6163
img.release {
6264
width: 80px;
@@ -69,8 +71,8 @@
6971
align-self: flex-end;
7072
justify-self: stretch;
7173
justify-content: center;
72-
height: 100%;
73-
width: 80px;
74+
height: 80%; //Same as feature-scanner-icon
75+
width: 80px; //Same as the widest of img.scanner-icon or img.release
7476
}
7577
.feature-list {
7678
ul.pro {

static/scannerIcons/Amass.svg

Lines changed: 1 addition & 0 deletions
Loading

static/scannerIcons/Arachni.svg

Lines changed: 33 additions & 0 deletions
Loading

static/scannerIcons/Nikto.svg

Lines changed: 39 additions & 0 deletions
Loading

static/scannerIcons/Nmap.svg

Lines changed: 1 addition & 0 deletions
Loading

static/scannerIcons/SSH.svg

Lines changed: 1 addition & 0 deletions
Loading

static/scannerIcons/SSLyze.svg

Lines changed: 1 addition & 0 deletions
Loading

static/scannerIcons/WPScan.svg

Lines changed: 1 addition & 0 deletions
Loading

static/scannerIcons/Zap.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)