File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed
src/components/blocks/homepage-hero Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 2323 "@graphql-codegen/typescript" : " ^2.7.2" ,
2424 "@graphql-codegen/typescript-operations" : " ^2.5.2" ,
2525 "@graphql-codegen/typescript-react-apollo" : " ^4.3.0" ,
26- "@python-italia/pycon-styleguide" : " 0.1.194 " ,
26+ "@python-italia/pycon-styleguide" : " 0.1.196 " ,
2727 "@sentry/nextjs" : " ^8.24.0" ,
2828 "@vercel/analytics" : " ^1.1.1" ,
2929 "@vercel/og" : " ^0.6.2" ,
Original file line number Diff line number Diff line change 11import {
22 HeroIllustration ,
3+ HeroIllustrationBologna ,
34 LayoutContent ,
45 ScrollDownArrowBar ,
56} from "@python-italia/pycon-styleguide" ;
@@ -11,14 +12,19 @@ type Props = {
1112 city : HomepageHeroCity ;
1213} ;
1314
14- const Illustration = React . memo ( HeroIllustration ) ;
15+ const HeroIllustrationFlorenceMemo = React . memo ( HeroIllustration ) ;
16+ const HeroIllustrationBolognaMemo = React . memo ( HeroIllustrationBologna ) ;
1517
1618export const HomepageHero = ( { cycle, city } : Props ) => {
1719 return (
1820 < div className = "h-screen relative -mt-[161px] -mb-[3px]" >
1921 < div className = "h-screen lg:h-[calc(100vh-60px)]" >
20- { city === HomepageHeroCity . Florence && < Illustration cycle = { cycle } /> }
21- { city === HomepageHeroCity . Bologna && < div > Bologna illustration</ div > }
22+ { city === HomepageHeroCity . Florence && (
23+ < HeroIllustrationFlorenceMemo cycle = { cycle } />
24+ ) }
25+ { city === HomepageHeroCity . Bologna && (
26+ < HeroIllustrationBolognaMemo cycle = { cycle } />
27+ ) }
2228 </ div >
2329
2430 < LayoutContent
You can’t perform that action at this time.
0 commit comments