mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-31 01:01:05 -04:00
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
import React, { Fragment } from 'react';
|
|
import { Grid } from '@freecodecamp/react-bootstrap';
|
|
import Helmet from 'react-helmet';
|
|
import PropTypes from 'prop-types';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
import Testimonials from './components/Testimonials';
|
|
import LandingTop from './components/LandingTop';
|
|
import Certifications from './components/Certifications';
|
|
import AsSeenIn from './components/AsSeenIn';
|
|
|
|
import './landing.css';
|
|
|
|
const propTypes = {
|
|
page: PropTypes.string
|
|
};
|
|
|
|
export const Landing = ({ page = 'landing' }) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Fragment>
|
|
<Helmet>
|
|
<title>{t('metaTags:title')}</title>
|
|
</Helmet>
|
|
<main className='landing-page'>
|
|
<Grid>
|
|
<LandingTop page={page} />
|
|
</Grid>
|
|
<Grid fluid={true}>
|
|
<AsSeenIn />
|
|
</Grid>
|
|
<Grid>
|
|
<Testimonials />
|
|
<Certifications />
|
|
</Grid>
|
|
</main>
|
|
</Fragment>
|
|
);
|
|
};
|
|
|
|
Landing.displayName = 'Landing';
|
|
Landing.propTypes = propTypes;
|
|
export default Landing;
|