import { Grid, Heading, View, Text, Button, useBreakpointValue, } from "@aws-amplify/ui-react"; import { GetStaticPropsContext, GetStaticPropsResult } from "next"; import { ActionLayout } from "../../components/ActionLayout"; import { ContributorCollection } from "../../components/ContributorCollection"; import ExternalIconCustom from "../../ui-components/ExternalIconCustom"; import { serializeModel, deserializeModel } from "@aws-amplify/datastore/ssr"; import { trackExternalLink } from "../../utils/track"; import { Contributor } from "../../models"; import { Context, MetaInfo } from "../../types/models"; import { getContributors } from "../../lib/getData"; import { MetaLayout } from "../../components/MetaLayout"; export default function AboutPage(data: any) { const contributors: Contributor[] = deserializeModel( Contributor, data.contributors ); const useLargeVariant = useBreakpointValue({ base: false, small: false, medium: false, large: false, xl: true, }) as boolean; const collectionType = useBreakpointValue({ base: "list", small: "list", medium: "grid", large: "grid", }) as "grid" | "list"; // About page meta data const metaInfo: MetaInfo = { title: "About", description: "About", }; return ( About This site contains a collection of courses on{" "} AWS Amplify {" "} brought to you by the Developer Advocacy team working on the product. {`Let's Connect`} Join the Amplify Community Discord to ask questions, contribute to the open source project, and learn about new features. { trackExternalLink("https://discord.gg/amplify"); window.open( "https://discord.gg/amplify", "_blank", "noopener,noreferrer" ); }} > Chat on Discord ); } interface AboutPageProps { contributors: JSON; } export async function getStaticProps( context: GetStaticPropsContext & Context ): Promise> { const contributors = await getContributors(context); return { props: { contributors: serializeModel(contributors), }, }; }
Join the Amplify Community Discord to ask questions, contribute to the open source project, and learn about new features.