(props: HomePageProps)
| 48 | productGroups: Array<ProductGroupT> |
| 49 | } |
| 50 | function HomePage(props: HomePageProps) { |
| 51 | const { gettingStartedLinks, popularLinks, productGroups } = props |
| 52 | const { t } = useTranslation(['toc']) |
| 53 | |
| 54 | return ( |
| 55 | <div> |
| 56 | <HomePageHero /> |
| 57 | <ProductSelections productGroups={productGroups} /> |
| 58 | <div className="mt-6 px-3 px-md-6 container-xl"> |
| 59 | <div className="container-xl"> |
| 60 | <div className="gutter gutter-xl-spacious clearfix"> |
| 61 | <div className="col-12 col-lg-6 mb-md-4 mb-lg-0 float-left"> |
| 62 | <ArticleList title={t('toc:getting_started')} articles={gettingStartedLinks} /> |
| 63 | </div> |
| 64 | |
| 65 | <div className="col-12 col-lg-6 float-left"> |
| 66 | <ArticleList title={t('toc:popular')} articles={popularLinks} /> |
| 67 | </div> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | ) |
| 73 | } |
| 74 | |
| 75 | export const getServerSideProps: GetServerSideProps<Props> = async (context) => { |
| 76 | const req = context.req as any |
nothing calls this directly
no test coverage detected