11import { Heading , Text , Flex , Card } from '@aws-amplify/ui-react' ;
22import ExportedImage from 'next-image-export-optimizer' ;
3+ import Link from 'next/link' ;
34import { MDXCode } from '@/components/MDXComponents/' ;
45import { IconChevron } from '@/components/Icons' ;
56import { Video } from '@/components/Video' ;
@@ -61,6 +62,7 @@ const Gen2Overview = () => {
6162 ) ;
6263 const isFlutter = currentPlatform == 'flutter' ;
6364 const isReactNative = currentPlatform == 'react-native' ;
65+ const isNextJs = currentPlatform == 'nextjs' ;
6466
6567 return (
6668 < Flex className = "home-content" >
@@ -82,14 +84,24 @@ const Gen2Overview = () => {
8284 your cross-platform applications to the cloud for data modeling,
8385 authentication, storage, serverless functions, and more.
8486 </ Text >
87+ ) : isNextJs ? (
88+ < Text className = "home-intro__text" >
89+ AWS Amplify is everything you need to build web and mobile apps.
90+ Easy to start, easy to scale.
91+ < br > </ br >
92+ < br > </ br >
93+ You can build a fullstack app using Amplify backend building
94+ capabilities, or you can deploy your React and Next.js web apps
95+ using Amplify Hosting.
96+ </ Text >
8597 ) : (
8698 < Text className = "home-intro__text" >
8799 AWS Amplify is everything you need to build web and mobile apps.
88100 Easy to start, easy to scale.
89101 < br > </ br >
90102 < br > </ br >
91103 You can build a fullstack app using Amplify backend building
92- capabilities and deploy your web app using Amplify Hosting.
104+ capabilities, or you can deploy your web app using Amplify Hosting.
93105 </ Text >
94106 ) }
95107 < Flex className = "home-cta" >
@@ -122,13 +134,14 @@ const Gen2Overview = () => {
122134 ) }
123135 </ Flex >
124136 { ! isMobilePlatform && ! isReactNative && (
125- < FeatureItem
126- linkText = "How Amplify works >"
137+ < Link
127138 href = { {
128- pathname : '/[platform]/how-amplify-works/concepts/' ,
139+ pathname : gen2HowAmplifyWorksPathname ,
129140 query : { platform : currentPlatform }
130141 } }
131- > </ FeatureItem >
142+ >
143+ How Amplify works >
144+ </ Link >
132145 ) }
133146 </ Flex >
134147 < Flex className = "home-section" >
0 commit comments