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

Commit b9ed540

Browse files
committed
Add hover highlighting for feature cards
1 parent 89254fe commit b9ed540

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/pages/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { graphql, withPrefix, Link } from 'gatsby';
2+
import { graphql, withPrefix } from 'gatsby';
33
import Helmet from 'react-helmet';
44
import SEO from '../components/SEO';
55
import Layout from '../components/Layout';
@@ -39,7 +39,7 @@ const Home = props => {
3939
</div>
4040
{json.map(edge => (
4141
<div key={edge.node.id} className="col-12 col-md-3 col-lg-3 mb-2">
42-
<div className="feature">
42+
<div className="feature hoverable">
4343
{edge.node.image && (
4444
<div className="feature-image">
4545
<img src={withPrefix(edge.node.image)} />
@@ -84,7 +84,7 @@ const Home = props => {
8484
</li>
8585
<li>
8686
<img src={notApproved} alt="unchecked icon" />
87-
Teams with separate dev, ops and security teams
87+
Organizations with separate dev, ops and security teams
8888
</li>
8989
</ul>
9090
</div>

src/scss/components/_feature.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,12 @@
100100
}
101101
}
102102
}
103+
104+
.feature.hoverable {
105+
cursor: pointer;
106+
&:hover {
107+
margin-top: -1px;
108+
margin-bottom: 1px;
109+
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
110+
}
111+
}

0 commit comments

Comments
 (0)