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

67 lines
1.9 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-09-10 09:55:26 -07:00
import { Icon } from 'antd';
import TeamsSvg from 'static/images/intro-teams.svg';
import FundingSvg from 'static/images/intro-funding.svg';
import CommunitySvg from 'static/images/intro-community.svg';
import './style.less';
2018-09-10 09:55:26 -07:00
const introBlobs = [
{
Svg: TeamsSvg,
2018-09-10 09:55:26 -07:00
text: 'Developers and teams propose projects for improving the ecosystem',
},
{
Svg: FundingSvg,
2018-09-10 09:55:26 -07:00
text: 'Projects are funded by the community and paid as its built',
},
{
Svg: CommunitySvg,
2018-09-10 09:55:26 -07:00
text: 'Open discussion and project updates bring devs and the community together',
},
];
export default class Home extends React.Component {
render() {
return (
<div className="Home">
<div className="Home-hero">
<h1 className="Home-hero-title">
Decentralized funding for <br /> Blockchain ecosystem improvements
</h1>
2018-09-10 09:55:26 -07:00
<div className="Home-hero-buttons">
<Link className="Home-hero-buttons-button is-primary" to="/create">
Propose a Project
</Link>
<Link className="Home-hero-buttons-button" to="/proposals">
Explore Projects
</Link>
</div>
2018-09-10 09:55:26 -07:00
<button className="Home-hero-scroll">
Learn More
<Icon type="down" />
</button>
</div>
<div className="Home-intro">
<h3 className="Home-intro-text">
Grant.io organizes creators and community members to incentivize ecosystem
improvements
</h3>
2018-09-10 09:55:26 -07:00
<div className="Home-intro-blobs">
{introBlobs.map((blob, i) => (
<div className="Home-intro-blobs-blob" key={i}>
<blob.Svg />
<p>{blob.text}</p>
</div>
))}
</div>
</div>
</div>
2018-09-10 09:55:26 -07:00
);
}
}