fix lint
This commit is contained in:
parent
45e4a0a4d3
commit
4d508450a4
@ -1,11 +1,11 @@
|
|||||||
import * as React from "react"
|
import * as React from 'react'
|
||||||
import { Link } from "gatsby"
|
import { Link } from 'gatsby'
|
||||||
|
|
||||||
// styles
|
// styles
|
||||||
const pageStyles = {
|
const pageStyles = {
|
||||||
color: "#232129",
|
color: '#232129',
|
||||||
padding: "96px",
|
padding: '96px',
|
||||||
fontFamily: "-apple-system, Roboto, sans-serif, serif",
|
fontFamily: '-apple-system, Roboto, sans-serif, serif',
|
||||||
}
|
}
|
||||||
const headingStyles = {
|
const headingStyles = {
|
||||||
marginTop: 0,
|
marginTop: 0,
|
||||||
@ -17,10 +17,10 @@ const paragraphStyles = {
|
|||||||
marginBottom: 48,
|
marginBottom: 48,
|
||||||
}
|
}
|
||||||
const codeStyles = {
|
const codeStyles = {
|
||||||
color: "#8A6534",
|
color: '#8A6534',
|
||||||
padding: 4,
|
padding: 4,
|
||||||
backgroundColor: "#FFF4DB",
|
backgroundColor: '#FFF4DB',
|
||||||
fontSize: "1.25rem",
|
fontSize: '1.25rem',
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,13 +31,13 @@ const NotFoundPage = () => {
|
|||||||
<title>Not found</title>
|
<title>Not found</title>
|
||||||
<h1 style={headingStyles}>Page not found</h1>
|
<h1 style={headingStyles}>Page not found</h1>
|
||||||
<p style={paragraphStyles}>
|
<p style={paragraphStyles}>
|
||||||
Sorry{" "}
|
Sorry{' '}
|
||||||
<span role="img" aria-label="Pensive emoji">
|
<span role="img" aria-label="Pensive emoji">
|
||||||
😔
|
😔
|
||||||
</span>{" "}
|
</span>{' '}
|
||||||
we couldn’t find what you were looking for.
|
we couldn’t find what you were looking for.
|
||||||
<br />
|
<br />
|
||||||
{process.env.NODE_ENV === "development" ? (
|
{process.env.NODE_ENV === 'development' ? (
|
||||||
<>
|
<>
|
||||||
<br />
|
<br />
|
||||||
Try creating a page in <code style={codeStyles}>src/pages/</code>.
|
Try creating a page in <code style={codeStyles}>src/pages/</code>.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import * as React from "react"
|
import * as React from 'react'
|
||||||
import { graphql } from 'gatsby'
|
import { graphql } from 'gatsby'
|
||||||
import { GatsbyImage, getImage } from "gatsby-plugin-image"
|
import { GatsbyImage, getImage } from 'gatsby-plugin-image'
|
||||||
|
|
||||||
// markup
|
// markup
|
||||||
const IndexPage = ({ data }) => {
|
const IndexPage = ({ data }) => {
|
||||||
const images = React.useMemo(() => data.allFile.edges.map(edge => edge.node, [data]))
|
const images = React.useMemo(() => data.allFile.edges.map(edge => edge.node), [data])
|
||||||
console.log('images', images)
|
console.log('images', images)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user