react-toolbox/docs/app/components/layout/home/index.jsx

68 lines
2.6 KiB
React
Raw Normal View History

import React from 'react';
2015-11-02 00:55:23 +03:00
import { Link } from 'react-router';
2015-11-02 00:36:20 +03:00
import { Card, Button } from 'react-toolbox';
import Logo from '../../logo';
import Navigation from '../../navigation';
2015-11-01 18:57:49 +03:00
import style from './style';
import authors from './modules/authors';
2015-11-02 00:36:20 +03:00
const Home = () => (
<article>
<header className={style.header}>
2015-11-02 12:09:42 +03:00
<div className={style.github}>
<iframe src='https://ghbtns.com/github-btn.html?user=react-toolbox&amp;repo=react-toolbox&amp;type=star&amp;count=true' frameBorder='0' scrolling='0' />
<iframe src='https://ghbtns.com/github-btn.html?user=react-toolbox&amp;repo=react-toolbox&amp;type=fork&amp;count=true' frameBorder='0' scrolling='0' />
2015-11-10 13:02:28 +03:00
<a className={style.donate} href='https://www.paypal.me/javivelasco' target='_blank'>
2015-11-03 12:53:48 +03:00
<span className={style.legend}>support</span>
<span className={style.paypal}>paypal</span>
</a>
2015-11-02 12:09:42 +03:00
</div>
2015-11-02 13:32:39 +03:00
<Logo className={style.logo} />
<h2 className={style.title}>React Toolbox</h2>
<h4 className={style.subtitle}>Bootstrap your application with beautiful Material Design Components</h4>
2015-11-02 00:36:20 +03:00
<Navigation className={style.navigation} />
</header>
<section className={style.content}>
<p>
React Toolbox is a set of React components that implements Google Material Design specification.
It's built on top of some the trendiest proposals like CSS Modules (written in SASS), Webpack and ES6.
2015-11-02 13:15:19 +03:00
The library harmoniously integrates with your Webpack workflow and it's easily customizable and very flexible.
2015-11-02 00:36:20 +03:00
</p>
<p>
Check our awesome documentation (which is built using React Toolbox) and try all the components with
live examples. We've created a playground so you don't need to install anything to fall in love with
our components, so fun!
</p>
2015-11-02 00:55:23 +03:00
<Link to='/components'>
2015-11-02 00:36:20 +03:00
<Button label='Try it now!' kind='raised' accent />
2015-11-02 00:55:23 +03:00
</Link>
2015-11-02 00:36:20 +03:00
</section>
2015-11-02 10:58:27 +03:00
<section className={`${style.content}`}>
<h3>About the authors</h3>
2015-11-02 00:36:20 +03:00
<ul className={style.authors}>
{
authors.map((author, index) => {
author.actions.map((action) => {
2015-11-03 01:27:49 +03:00
const url = `https:\\\\${ action.label }.com\\${ author.subtitle }`;
action.onClick = () => { window.open(url.toLowerCase(), '_blank'); };
});
return <Card key={index} {...author} />;
})
}
2015-11-02 00:36:20 +03:00
</ul>
</section>
2015-11-02 00:36:20 +03:00
<footer className={style.footer}>
<p>React Toolbox © 2015</p>
2015-11-02 10:58:27 +03:00
<small>Crafted with <span className={style.love}></span> between Spain and Thailand</small>
2015-11-02 00:36:20 +03:00
</footer>
</article>
);
export default Home;