File tree 1 file changed +23
-6
lines changed
1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
+ import { graphql , useStaticQuery } from 'gatsby'
2
3
import Home from '../components/home/Home'
3
4
import { Seo } from '../components/Seo'
4
5
5
- const IndexPage = ( ) => (
6
- < >
7
- < Seo title = "Home" keywords = { [ `gatsby` , `application` , `react` ] } />
8
- < Home />
9
- </ >
10
- )
6
+ const IndexPage = ( ) => {
7
+ const {
8
+ image : {
9
+ childImageSharp : { gatsbyImageData : image } ,
10
+ } ,
11
+ } = useStaticQuery ( graphql `
12
+ query {
13
+ image: file(absolutePath: { glob: "**/src/assets/captures/pages/home.png" }) {
14
+ childImageSharp {
15
+ gatsbyImageData(layout: FIXED, width: 1200, quality: 100)
16
+ }
17
+ }
18
+ }
19
+ ` )
20
+
21
+ return (
22
+ < >
23
+ < Seo title = "Home" keywords = { [ `dataviz` , `charts` , `react` , `svg` ] } image = { image } />
24
+ < Home />
25
+ </ >
26
+ )
27
+ }
11
28
12
29
export default IndexPage
You can’t perform that action at this time.
0 commit comments