@@ -17,9 +17,9 @@ import Card from "../components/Card"
1717import ButtonLink , {
1818 IProps as IButtonLinkProps ,
1919} from "../components/Buttons/ButtonLink"
20+ import { HubHero , type HubHeroProps } from "../components/Hero"
2021import PageMetadata from "../components/PageMetadata"
2122import Translation from "../components/Translation"
22- import PageHero from "../components/PageHero"
2323import FeedbackCard from "../components/FeedbackCard"
2424
2525import GatsbyImage from "../components/GatsbyImage"
@@ -143,17 +143,9 @@ interface IGetInvolvedCard {
143143
144144const CommunityPage = ( {
145145 data,
146- location,
147146} : PageProps < Queries . CommunityPageQuery , Context > ) => {
148147 const { t } = useTranslation ( )
149148 const theme = useTheme ( )
150- const heroContent = {
151- title : t ( "page-community-hero-title" ) ,
152- header : t ( "page-community-hero-header" ) ,
153- subtitle : t ( "page-community-hero-subtitle" ) ,
154- image : getImage ( data . enterprise ) ! ,
155- alt : t ( "page-community-hero-alt" ) ,
156- }
157149
158150 const cards : Array < ICard > = [
159151 {
@@ -204,13 +196,20 @@ const CommunityPage = ({
204196 } ,
205197 ]
206198
199+ const heroContent : HubHeroProps = {
200+ title : t ( "page-community-hero-title" ) ,
201+ header : t ( "page-community-hero-header" ) ,
202+ description : t ( "page-community-hero-subtitle" ) ,
203+ heroImgSrc : getImage ( data . heroImage ) ! ,
204+ }
205+
207206 return (
208207 < Page >
209208 < PageMetadata
210209 title = { t ( "page-community-meta-title" ) }
211210 description = { t ( "page-community-meta-description" ) }
212211 />
213- < PageHero isReverse content = { heroContent } />
212+ < HubHero { ... heroContent } />
214213 < Divider />
215214 < Flex
216215 bg = "homeBoxTurquoise"
@@ -491,10 +490,10 @@ export const query = graphql`
491490 }
492491 }
493492 }
494- enterprise : file(relativePath: { eq: "enterprise-eth .png" }) {
493+ heroImage : file(relativePath: { eq: "heroes/community-hero .png" }) {
495494 childImageSharp {
496495 gatsbyImageData(
497- width: 624
496+ width: 1504
498497 layout: CONSTRAINED
499498 placeholder: BLURRED
500499 quality: 100
0 commit comments