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

Commit 2c640fd

Browse files
author
dpatanin
committed
add scanner icon style and include scanner release tag
1 parent 4ce3758 commit 2c640fd

2 files changed

Lines changed: 45 additions & 5 deletions

File tree

src/pages/scanner/index.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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";
66

77
const Scanner = props => {
88
const scanner = props.data.allMarkdownRemark.edges;
9+
910
return (
1011
<Layout bodyClass="page-scanner">
1112
<SEO title="Scanner" />
@@ -35,12 +36,20 @@ const Scanner = props => {
3536
>
3637
<Link to={edge.node.frontmatter.path}>
3738
<div className="feature hoverable">
39+
<div className="feature-scanner-icon">
40+
<img className="scanner-icon" src=""></img>
41+
<img
42+
className="release"
43+
src={edge.node.frontmatter.release}
44+
></img>
45+
</div>
3846
<h2 className="feature-title">
3947
{edge.node.frontmatter.title}
4048
</h2>
4149
<div className="feature-content">
4250
<p>{edge.node.frontmatter.usecase}</p>
4351
</div>
52+
<div className="feature-scanner-icon-right-gap"></div>
4453
</div>
4554
</Link>
4655
</div>
@@ -65,6 +74,7 @@ export const query = graphql`
6574
path
6675
category
6776
usecase
77+
release
6878
}
6979
}
7080
}

src/scss/components/_feature.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
display: flex;
77
align-items: center;
88
flex-direction: column;
9+
flex-wrap: wrap;
10+
@include media-breakpoint-down(md) {
11+
flex-wrap: nowrap;
12+
}
913
text-align: center;
1014
.feature-image {
1115
flex: 0 0 auto;
@@ -42,6 +46,32 @@
4246
}
4347
}
4448
}
49+
.feature-scanner-icon {
50+
display: flex;
51+
flex-direction: column;
52+
align-self: flex-start;
53+
justify-self: stretch;
54+
justify-content: center;
55+
align-content: center;
56+
height: 100%;
57+
img.scanner-icon {
58+
width: 80px;
59+
height: auto;
60+
}
61+
img.release {
62+
width: 80px;
63+
height: auto;
64+
}
65+
}
66+
.feature-scanner-icon-right-gap {
67+
// If you want to use the scanner icon and still keep the other elements in the
68+
// feature element aligned in the center, use this element as well
69+
align-self: flex-end;
70+
justify-self: stretch;
71+
justify-content: center;
72+
height: 100%;
73+
width: 80px;
74+
}
4575
.feature-list {
4676
ul.pro {
4777
display: inline-block;

0 commit comments

Comments
 (0)