-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setting up android, swift, and react liveness docs pages (#752)
- Loading branch information
Showing
10 changed files
with
155 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
docs/src/pages/[platform]/connected-components/liveness/android.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Amplify FaceLivenessDetector is powered by [Amazon Rekognition](FIXME). | ||
|
||
### Quick Start | ||
|
||
> Prerequisites: | ||
> | ||
> 1. Install`@aws-amplify/ui-react-ml`with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/). ( e.g. `npm install @aws-amplify/ui-react-ml`) | ||
> 2. Follow the Rekognition developer guide FIXME LINK [FIXMELINK](fixme). | ||
## FaceLivenessDetector | ||
|
||
FIXME fill this out |
20 changes: 20 additions & 0 deletions
20
docs/src/pages/[platform]/connected-components/liveness/index.page.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Liveness | ||
description: Amplify UI provides a UI component for detecting whether the person in front of the camera is live. | ||
supportedFrameworks: react|android|swift | ||
--- | ||
|
||
import { Fragment } from '@/components/Fragment'; | ||
import { getCustomStaticPath } from '@/utils/getCustomStaticPath'; | ||
|
||
export async function getStaticPaths() { | ||
return getCustomStaticPath(frontmatter.supportedFrameworks); | ||
} | ||
|
||
{/* `getStaticProps` is required to prevent "Error: getStaticPaths was added without a getStaticProps. Without getStaticProps, getStaticPaths does nothing" */} | ||
|
||
export async function getStaticProps() { | ||
return { props: {} } | ||
} | ||
|
||
<Fragment>{({ platform }) => import(`./${platform}.mdx`)}</Fragment> |
12 changes: 12 additions & 0 deletions
12
docs/src/pages/[platform]/connected-components/liveness/react.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Amplify FaceLivenessDetector is powered by [Amazon Rekognition](FIXME). | ||
|
||
### Quick Start | ||
|
||
> Prerequisites: | ||
> | ||
> 1. Install`@aws-amplify/ui-react-ml`with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/). ( e.g. `npm install @aws-amplify/ui-react-ml`) | ||
> 2. Follow the Rekognition developer guide FIXME LINK [FIXMELINK](fixme). | ||
## FaceLivenessDetector | ||
|
||
FIXME fill this out |
12 changes: 12 additions & 0 deletions
12
docs/src/pages/[platform]/connected-components/liveness/swift.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Amplify FaceLivenessDetector is powered by [Amazon Rekognition](FIXME). | ||
|
||
### Quick Start | ||
|
||
> Prerequisites: | ||
> | ||
> 1. Install`@aws-amplify/ui-react-ml`with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/). ( e.g. `npm install @aws-amplify/ui-react-ml`) | ||
> 2. Follow the Rekognition developer guide FIXME LINK [FIXMELINK](fixme). | ||
## FaceLivenessDetector | ||
|
||
FIXME fill this out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as React from 'react'; | ||
import { useRouter } from 'next/router'; | ||
|
||
import { | ||
AmplifySection, | ||
AuthenticationSection, | ||
} from '@/components/home/sections'; | ||
|
||
const AndroidHomePage = ({ colorMode }) => { | ||
const { | ||
query: { platform = 'android' }, | ||
} = useRouter(); | ||
|
||
return ( | ||
<> | ||
<AmplifySection platform={platform} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default AndroidHomePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as React from 'react'; | ||
import { useRouter } from 'next/router'; | ||
|
||
import { | ||
AmplifySection, | ||
AuthenticationSection, | ||
} from '@/components/home/sections'; | ||
|
||
const SwiftHomePage = ({ colorMode }) => { | ||
const { | ||
query: { platform = 'swift' }, | ||
} = useRouter(); | ||
|
||
return ( | ||
<> | ||
<AmplifySection platform={platform} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default SwiftHomePage; |