MCPcopy
hub / github.com/github/docs / HomePageHero

Function HomePageHero

components/homepage/HomePageHero.tsx:4–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { useTranslation } from 'components/hooks/useTranslation'
3
4export const HomePageHero = () => {
5 const { t } = useTranslation(['header', 'homepage'])
6
7 return (
8 <section id="landing" className="color-bg-subtle p-6">
9 <div className="container-xl">
10 <div className="gutter gutter-xl-spacious d-lg-flex flex-row-reverse flex-items-center">
11 <div className="col-lg-6 col-xl-7 mb-4 mb-lg-0">
12 <OctocatHeader />
13 </div>
14 <div className="col-lg-6 col-xl-5">
15 <h1>{t('github_docs')}</h1>
16 <p className="color-fg-muted f2 mb-0">{t('description')}</p>
17 </div>
18 </div>
19 </div>
20 </section>
21 )
22}

Callers

nothing calls this directly

Calls 1

useTranslationFunction · 0.90

Tested by

no test coverage detected