This file contains 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 styled from 'styled-components'; | |
const GridWrapper = styled.section` | |
display: grid; | |
grid-template-columns: ${props => `repeat(${props.columns}, 1fr)`}; | |
` | |
const Grid = ({columns, children, style}) => { | |
return ( |
This file contains 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, { useState } from "react" | |
import { Link } from "gatsby" | |
import Layout from "../components/layout" | |
import styled from "styled-components" | |
const IndexPage = () => { | |
return ( | |
<Layout> | |
</Layout> |
This file contains 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 "./layout.css" | |
import styled from "styled-components" | |
const Layout = ({ children }) => { | |
const LayoutWrapper = styled.section` | |
main { | |
padding: 32px; | |
} | |
` |