MCPcopy Create free account
hub / github.com/github/docs / HomePage

Function HomePage

pages/index.tsx:50–73  ·  view source on GitHub ↗
(props: HomePageProps)

Source from the content-addressed store, hash-verified

48 productGroups: Array<ProductGroupT>
49}
50function 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
75export const getServerSideProps: GetServerSideProps<Props> = async (context) => {
76 const req = context.req as any

Callers

nothing calls this directly

Calls 1

useTranslationFunction · 0.90

Tested by

no test coverage detected