Surface Cyber Essentials certification on homepage hero and footer #11

Merged
hermes merged 1 commits from feat/cyber-essentials-badge into main 2026-09-11 19:45:26 +00:00
3 changed files with 36 additions and 4 deletions
+5
View File
@@ -21,6 +21,11 @@ const Footer = () => (
on <StyledAnchor href="https://sasapps.io">SAS Web Apps</StyledAnchor> on <StyledAnchor href="https://sasapps.io">SAS Web Apps</StyledAnchor>
. .
</StyledDesc> </StyledDesc>
<StyledDesc>
<StyledAnchor href="https://sasapps.io/cyber-essentials-certified/">
Cyber Essentials Certified
</StyledAnchor>
</StyledDesc>
</div> </div>
<div className="col-md-3"> <div className="col-md-3">
<StyledHeading>Source Code</StyledHeading> <StyledHeading>Source Code</StyledHeading>
+14 -4
View File
@@ -1,7 +1,8 @@
import React from 'react' import React from 'react'
import { Link } from 'gatsby' import { Link } from 'gatsby'
import { FaShieldAlt } from 'react-icons/fa'
import { Hero, HeroHeading, HeroDesc } from './style' import { Hero, HeroHeading, HeroDesc, HeroBadge } from './style'
import { BottomSectionArrow, OutlineButton } from '../shared/styledComponents' import { BottomSectionArrow, OutlineButton } from '../shared/styledComponents'
import { Container } from '../shared' import { Container } from '../shared'
@@ -19,9 +20,18 @@ const HeroSection: React.FC<HeroSectionProps> = ({
<HeroHeading>{heading}</HeroHeading> <HeroHeading>{heading}</HeroHeading>
<HeroDesc>{desc}</HeroDesc> <HeroDesc>{desc}</HeroDesc>
{location.pathname === pathPrefix + '/' && ( {location.pathname === pathPrefix + '/' && (
<Link to="/contact/"> <>
<OutlineButton>Try Data Controller</OutlineButton> <HeroBadge
</Link> href="https://sasapps.io/cyber-essentials-certified/"
target="_blank"
rel="noopener"
>
<FaShieldAlt /> Cyber Essentials Certified
</HeroBadge>
<Link to="/contact/">
<OutlineButton>Try Data Controller</OutlineButton>
</Link>
</>
)} )}
</Container> </Container>
<BottomSectionArrow /> <BottomSectionArrow />
+17
View File
@@ -17,3 +17,20 @@ export const HeroHeading = styled.h1`
export const HeroDesc = styled.p` export const HeroDesc = styled.p`
opacity: 0.8; opacity: 0.8;
` `
export const HeroBadge = styled.a`
display: block;
width: fit-content;
margin: 0.75rem 0 0;
padding: 0.375rem 1rem;
font-size: 0.75rem;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 0.25rem;
color: white;
text-decoration: none;
&:hover {
color: white;
border-color: white;
opacity: 0.9;
}
`