Skip to content

Commit 6179e19

Browse files
committed
update text and change how amplify works to next/link component
1 parent e37c686 commit 6179e19

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

src/pages/[platform]/index.tsx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Heading, Text, Flex, Card } from '@aws-amplify/ui-react';
22
import ExportedImage from 'next-image-export-optimizer';
3+
import Link from 'next/link';
34
import { MDXCode } from '@/components/MDXComponents/';
45
import { IconChevron } from '@/components/Icons';
56
import { 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 &gt;
144+
</Link>
132145
)}
133146
</Flex>
134147
<Flex className="home-section">

src/pages/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { FeatureItem, FeatureList } from '@/components/FeatureLists';
1010
import { MDXCode } from '@/components/MDXComponents';
1111
import { Columns } from '@/components/Columns';
1212
import ExportedImage from 'next-image-export-optimizer';
13+
import Link from 'next/link';
1314
import {
1415
gen2GetStartedHref,
1516
gen2HowAmplifyWorksPathname
@@ -62,13 +63,14 @@ export default function Page() {
6263
Deploy your app
6364
</ExternalLinkButton>
6465
</Flex>
65-
<FeatureItem
66-
linkText="How Amplify works >"
66+
<Link
6767
href={{
6868
pathname: gen2HowAmplifyWorksPathname,
6969
query: { platform: DEFAULT_PLATFORM }
7070
}}
71-
></FeatureItem>
71+
>
72+
How Amplify works &gt;
73+
</Link>
7274
</Flex>
7375
<Flex className="home-section">
7476
<Heading level={2}>

0 commit comments

Comments
 (0)