zcash-grant-system/frontend/client/components/Home/index.tsx

44 lines
1.5 KiB
TypeScript
Raw Normal View History

2018-09-10 09:55:26 -07:00
import React from 'react';
import { Link } from 'react-router-dom';
2018-11-04 10:26:34 -08:00
import { withNamespaces, WithNamespaces } from 'react-i18next';
import HeaderDetails from 'components/HeaderDetails';
import Rocket from 'static/images/rocket.svg';
import './style.less';
2018-09-10 09:55:26 -07:00
2018-11-04 10:26:34 -08:00
class Home extends React.Component<WithNamespaces> {
2018-09-10 09:55:26 -07:00
render() {
2018-11-04 10:26:34 -08:00
const { t } = this.props;
2018-09-10 09:55:26 -07:00
return (
<div className="Home">
2018-11-04 10:26:34 -08:00
<HeaderDetails title={t('home.title')} description={t('home.description')} />
<div className="Home-hero">
<div className="Home-hero-background">
<div className="Home-hero-background-planets">
<div className="Home-hero-background-planets-planet is-small" />
<div className="Home-hero-background-planets-planet is-large" />
</div>
<Rocket className="Home-hero-background-rocket" />
</div>
2018-09-10 09:55:26 -07:00
<div className="Home-hero-inner">
<h1 className="Home-hero-title">
2018-11-04 10:26:34 -08:00
{t('home.heroTitle1')} <br /> {t('home.heroTitle2')}
</h1>
2018-09-10 09:55:26 -07:00
<div className="Home-hero-buttons">
<Link className="Home-hero-buttons-button is-primary" to="/create">
2018-11-04 10:26:34 -08:00
{t('home.createButton')}
</Link>
<Link className="Home-hero-buttons-button" to="/proposals">
2018-11-04 10:26:34 -08:00
{t('home.exploreButton')}
</Link>
</div>
</div>
</div>
</div>
2018-09-10 09:55:26 -07:00
);
}
}
2018-11-04 10:26:34 -08:00
export default withNamespaces()(Home);