-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.js
52 lines (49 loc) · 1.69 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import React from 'react'
import Layout from '../components/Layout'
import AstronautImage from '../components/AstronautImage'
import SEO from '../components/SEO'
import StyledBackgroundSection from '../components/BackgroundSection'
import {
StyledContentWrapperLeft,
StyledImageWrapper,
StyledLink,
StyledWrapper,
} from '../components/SharedStyledComponents'
const IndexPage = () => (
<Layout>
<div style={{ height: 4000, display: 'block' }}></div>
<StyledBackgroundSection>
<StyledWrapper>
<StyledContentWrapperLeft>
<div>
<SEO
title="gatsby-background-image/src test"
keywords={[`gatsby`, `application`, `react`]}
/>
<h1>Hi people</h1>
<p>
Welcome to the <code>gatsby-background-image/src</code> test site.
</p>
<p>
As the left background, you see an image rendered by{' '}
<code>gatsby-background-image/src</code>
</p>
<p>
To the right, the same image rendered by <code>gatsby-image</code>
</p>
<StyledImageWrapper>
<AstronautImage />
</StyledImageWrapper>
Go to <StyledLink to="/image-stack/">image stack</StyledLink> to see
an example of
<strong> multiple stacked background images</strong>.<br />
Go to <StyledLink to="/art-direction/">art direction</StyledLink> to
see an example of
<strong> art-directed background images</strong>.
</div>
</StyledContentWrapperLeft>
</StyledWrapper>
</StyledBackgroundSection>
</Layout>
)
export default IndexPage