Created
August 2, 2019 18:20
-
-
Save onimenotsuki/67246c89aac99a40acd2b51ebd6c309f to your computer and use it in GitHub Desktop.
Configuración inicial de material componentes web react con gatsbyjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Link } from 'gatsby'; | |
/* Material Components */ | |
import { Cell, Grid, Row } from '@material/react-layout-grid'; | |
import Layout from '../components/layout'; | |
import Image from '../components/image'; | |
import SEO from '../components/seo'; | |
const IndexPage = () => ( | |
<Layout> | |
<SEO title="Home" /> | |
<Grid> | |
<Row> | |
<Cell | |
columns={12} | |
> | |
<h1>Hi people</h1> | |
<p>Welcome to your new Gatsby site.</p> | |
<p>Now go build something great.</p> | |
<div style={{ maxWidth: '300px', marginBottom: '1.45rem' }}> | |
<Image /> | |
</div> | |
<Link to="/page-2/">Go to page 2</Link> | |
</Cell> | |
</Row> | |
</Grid> | |
</Layout> | |
); | |
export default IndexPage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment