import NextLink from 'next/link'; import { useRouter } from 'next/router'; import { Button, Flex, Grid, Heading, Icon, Text, useBreakpointValue, View, } from '@aws-amplify/ui-react'; import { MdChevronRight, MdArrowDownward } from 'react-icons/md'; import { RiCloudWindyLine, RiDragDropLine, RiPencilRuler2Line, } from 'react-icons/ri'; import { CardLink } from '@/components/CardLink'; import { FRAMEWORKS, FRAMEWORK_INSTALL_SCRIPTS } from '@/data/frameworks'; import { FrameworkLogo } from '@/components/Logo'; import { TerminalCommand } from '@/components/InstallScripts'; import classNames from 'classnames'; export const HeroSection = () => { const { query: { platform = 'react' }, } = useRouter(); const showEditor = useBreakpointValue({ base: false, large: true, }); const frameworkInstallScript = FRAMEWORK_INSTALL_SCRIPTS[platform.toString()]; return ( Themeable, accessible components
Ready to connect to the cloud
Amplify UI is a collection of accessible, themeable, performant React{' '} (and more! {FRAMEWORKS.map((framework) => ( ))} ) {' '} components that can connect directly to the cloud. {platform === 'react' ? ( } desc="Focus on your UI and let us take care of the rest" /> } desc="Compose in your IDE—or visually with Amplify Studio" /> } desc="Use plain CSS, design tokens, or with your favorite CSS-in-JS library" /> ) : null} {platform === 'swift' ? null : ( )} {platform === 'swift' ? null : ( {platform === 'react' && showEditor ? ( ) : null} )}
); };