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

91 lines
6.3 KiB
JavaScript
Raw Normal View History

import React from 'react';
2015-11-02 00:55:23 +03:00
import { Link } from 'react-router';
import Button from 'react-toolbox/button';
2017-01-26 20:05:32 +03:00
import { Card, CardTitle, CardMedia, CardText, CardActions } from 'react-toolbox/card';
import Logo from '../../logo';
import Navigation from '../../navigation';
Migrate styles to PostCSS (#666) * Add postcss-next postcss-include and reporter * Add stylelint * Add CSS colors * Add CSS custom media queries * Use dashes for CSS colors * Add base CSS variables * Remove AppBar SASS dependency from spec page * Migrate AppBar style to PostCSS * Migrate Avatar style to PostCSS * Migrate Ripple style to PostCSS * Remove unneeded media CSS import in Avatar * Add shadows to CSS variables * Migrate Button style to PostCSS * Update webpack test config and linting from npm * Migrate Input style to PostCSS * Add missing input config variables for Dropdown and Autocomplete * Migrate Chip style to PostCSS * Migrate Autocomplete style to PostCSS * Migrate Dropdown style to PostCSS * Migrate animations to PostCSS * Migrate Card style to PostCSS * Migrate Checkbox style to PostCSS * Migrate DataPicker style to PostCSS * Migrate Dialog style to PostCSS * Migrate Drawer style to PostCSS * Add postcss-mixins and postcss-each * Migrate Layout style to PostCSS * Fix bug in button theme * Bugfix in avatar css * Add some missing nesting notations * Migrate Link style to PostCSS * Migrate List style to PostCSS * Migrate Menu style to PostCSS * Migrate Navigation style to PostCSS * Migrate Overlay style to PostCSS * Migrate ProgressBar style to PostCSS * Migrate Radio style to PostCSS * Migrate Slider style to PostCSS * Migrate Snackbar style to PostCSS * Migrate Switch style to PostCSS * Migrate Table style to PostCSS * Migrate Tabs style to PostCSS * Migrate TimePicker to PostCSS * Migrate Tooltip styles to PostCSS * Update webpack config for testing and tests * Migrate commons to PostCSS * Remove sass from main project * Bye from docs to sass * Build with CSS * Remove unneded deps for sass in docs subproject * Fix tests * use 4p shadow in AppBar as spec indicates * Fixed typo in list/config.css * Fix tests * Fix linter errors * Latest build * Release 2.0.0-beta.0 * Remove sass lint * fixes old sass var in css config * Update linter * New Table implementation * Fix old sass var in list/config.css See da0c47041ecf2d8b118b06fba9f53cc4d7e1e79f. * Remove normalize.css from commons.css * Update dependencies * Latest build * Input ready to accept visible hint * Prepare slider and progress to be disabled * Render Snackbar using Portal * Refactor Dialog, Drawer and Overlay to be used in Layout * Add inner layer to AppBar * New layout * Use Layout in spec * Latest build * remove layout playground example * add smTablet and lgTablet to NavDrawer in Layout readme * add default prop className to Layout, NavDrawer and Sidebar * fix css linter errors in card and slider * Typings for Table component * Add missing Drawer identifier * Update lib build * Adds onQueryChange callback property to Autocomplete The onQueryChange callback is called when the value of the query changes in Autocomplete. It is called with the new query value. * Fix #966 * Fix #965 * Fixes #976 * Updated css-related dependencies Removed usages of `addDependencyTo` since it's deprecated and not needed anymore. See https://github.com/postcss/postcss-import#adddependencyto * Enabled HMR for styles by disabling extracting them to a CSS file * Remove lib from repo * Remove lib * Fixes #1021 * Build using Gulp * Export ThemeProvider from react-css-themr * Add CHANGELOG to release command * Release 2.0.0-beta.1 * Remove immutability helper * Update dependencies * Fix Tooltip trying to render after it's been unmounted * Fixes #1038 * Release 2.0.0-beta.2 * Add ramda, refactor utils and remove slide animation modules * Remove separate slide animations modules * Remove box-sizing reset and body rule * Remove commons.css * Release 2.0.0-beta.4 * Update dependencies * Fixes #1061 * More aggresive guard condition for multiple autocomplete * Fix typeof check in isBrowser function * Fixes an issue when specs are opened with browsers that do not support Object.entries(). * Import from ramda using the 'import XXX from "ramda/src/XXX"' pattern so that bundle sizes will be smaller for not including the whole ramda package. * Fix #1032 * Fix tests * Update yarn.lock * Fixes #1064
2017-01-05 04:42:18 +03:00
import style from './style.css';
const GithubIcon = () => (
<svg viewBox="0 0 284 277">
<g><path d="M141.888675,0.0234927555 C63.5359948,0.0234927555 0,63.5477395 0,141.912168 C0,204.6023 40.6554239,257.788232 97.0321356,276.549924 C104.12328,277.86336 106.726656,273.471926 106.726656,269.724287 C106.726656,266.340838 106.595077,255.16371 106.533987,243.307542 C67.0604204,251.890693 58.7310279,226.56652 58.7310279,226.56652 C52.2766299,210.166193 42.9768456,205.805304 42.9768456,205.805304 C30.1032937,196.998939 43.9472374,197.17986 43.9472374,197.17986 C58.1953153,198.180797 65.6976425,211.801527 65.6976425,211.801527 C78.35268,233.493192 98.8906827,227.222064 106.987463,223.596605 C108.260955,214.426049 111.938106,208.166669 115.995895,204.623447 C84.4804813,201.035582 51.3508808,188.869264 51.3508808,134.501475 C51.3508808,119.01045 56.8936274,106.353063 65.9701981,96.4165325 C64.4969882,92.842765 59.6403297,78.411417 67.3447241,58.8673023 C67.3447241,58.8673023 79.2596322,55.0538738 106.374213,73.4114319 C117.692318,70.2676443 129.83044,68.6910512 141.888675,68.63701 C153.94691,68.6910512 166.09443,70.2676443 177.433682,73.4114319 C204.515368,55.0538738 216.413829,58.8673023 216.413829,58.8673023 C224.13702,78.411417 219.278012,92.842765 217.804802,96.4165325 C226.902519,106.353063 232.407672,119.01045 232.407672,134.501475 C232.407672,188.998493 199.214632,200.997988 167.619331,204.510665 C172.708602,208.913848 177.243363,217.54869 177.243363,230.786433 C177.243363,249.771339 177.078889,265.050898 177.078889,269.724287 C177.078889,273.500121 179.632923,277.92445 186.825101,276.531127 C243.171268,257.748288 283.775,204.581154 283.775,141.912168 C283.775,63.5477395 220.248404,0.0234927555 141.888675,0.0234927555" /></g>
</svg>
);
const TwitterIcon = () => (
<svg viewBox="0 0 274 223">
<g><path d="M273.39,26.301 C263.331,30.762 252.521,33.777 241.175,35.133 C252.756,28.191 261.649,17.199 265.837,4.102 C255,10.529 242.996,15.197 230.22,17.713 C219.988,6.812 205.411,0 189.279,0 C158.302,0 133.188,25.113 133.188,56.088 C133.188,60.484 133.685,64.765 134.641,68.87 C88.025,66.531 46.696,44.201 19.032,10.267 C14.204,18.551 11.438,28.186 11.438,38.465 C11.438,57.924 21.341,75.092 36.391,85.15 C27.196,84.859 18.548,82.336 10.985,78.135 C10.981,78.369 10.981,78.604 10.981,78.84 C10.981,106.016 30.315,128.686 55.974,133.838 C51.267,135.12 46.312,135.805 41.196,135.805 C37.582,135.805 34.068,135.454 30.644,134.799 C37.781,157.083 58.495,173.299 83.039,173.752 C63.843,188.795 39.658,197.762 13.38,197.762 C8.853,197.762 4.388,197.497 0,196.979 C24.822,212.893 54.305,222.178 85.98,222.178 C189.148,222.178 245.564,136.711 245.564,62.592 C245.564,60.16 245.51,57.741 245.402,55.336 C256.36,47.428 265.87,37.549 273.39,26.301" /></g>
</svg>
);
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}>
2017-01-26 20:05:32 +03:00
<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" />
<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>
2017-01-26 20:05:32 +03:00
<Link to="/components">
<Button label="Try it now!" 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}>
<Card className={style.author}>
2017-01-26 20:05:32 +03:00
<CardMedia aspectRatio="wide" image="images/javivelasco.jpg" />
<CardTitle title="Javi Velasco" subtitle="@javivelasco" />
2016-04-10 22:56:48 +03:00
<CardText>Software gardener Film, music & comic lover Frontend Engineer at Audiense Any biographer in the room?</CardText>
<CardActions>
2017-01-26 20:05:32 +03:00
<Button href="http://github.com/javivelasco" target="_blank"><GithubIcon /> Github</Button>
<Button href="http://twitter.com/javivelasco" theme={style} target="_blank" className={style.twitterButton}><TwitterIcon /> Twitter</Button>
</CardActions>
</Card>
<Card className={style.author}>
2017-01-26 20:05:32 +03:00
<CardMedia aspectRatio="wide" image="images/soyjavi.jpg" />
<CardTitle title="Javi Jiménez" subtitle="@soyjavi" />
<CardText>Creative Doer · A complicated #human who builds stuff · #author · #opensource lover · #traveller · with a dark past being CEO & CTO</CardText>
<CardActions>
2017-01-26 20:05:32 +03:00
<Button href="http://github.com/soyjavi" target="_blank"><GithubIcon /> Github</Button>
<Button href="http://twitter.com/soyjavi" theme={style} target="_blank" className={style.twitterButton}><TwitterIcon /> Twitter</Button>
</CardActions>
</Card>
2015-11-02 00:36:20 +03:00
</ul>
</section>
2015-11-02 00:36:20 +03:00
<footer className={style.footer}>
2016-04-10 12:38:42 +03:00
<p>React Toolbox © 2016</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;