File tree Expand file tree Collapse file tree 3 files changed +9
-21
lines changed
Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ module.exports = {
99 } ,
1010 plugins : [
1111 `gatsby-plugin-react-helmet` ,
12+ `gatsby-plugin-image` ,
1213 {
1314 resolve : `gatsby-source-filesystem` ,
1415 options : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33import React from 'react' ;
44import { Link , Trans , useTranslation } from 'gatsby-plugin-react-i18next' ;
55import { graphql , Link as GatsbyLink } from 'gatsby' ;
6+ import { StaticImage } from 'gatsby-plugin-image' ;
67import Layout from '../components/layout' ;
7- import Image from '../components/image' ;
88import SEO from '../components/seo' ;
99
1010const IndexPage = ( ) => {
@@ -22,7 +22,13 @@ const IndexPage = () => {
2222 < Trans > Now go build something great.</ Trans >
2323 </ p >
2424 < div style = { { maxWidth : `300px` , marginBottom : `1.45rem` } } >
25- < Image />
25+ < StaticImage
26+ src = "../images/gatsby-astronaut.png"
27+ alt = "Hi people"
28+ placeholder = "none"
29+ width = { 300 }
30+ height = { 300 }
31+ />
2632 </ div >
2733 < p >
2834 < Link to = "/page-2/" >
You can’t perform that action at this time.
0 commit comments