-
Notifications
You must be signed in to change notification settings - Fork 10.3k
/
Copy pathindex.js
58 lines (53 loc) · 1.74 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
53
54
55
56
57
58
import React from "react"
import { Link } from "gatsby"
import * as PropTypes from "prop-types"
import { rhythm } from "../utils/typography"
const propTypes = {
children: PropTypes.node.isRequired,
}
const DefaultLayout = ({ children }) => (
<>
<header
style={{
textAlign: "center",
backgroundColor: `tomato`,
padding: rhythm(1 / 2),
}}
>
<Link style={{ textDecoration: `none` }} to="/">
<h4 style={{ color: `white`, marginBottom: 0 }}>
Example of using Contentful as a data source for a Gatsby site
</h4>
</Link>
</header>
<div
style={{
margin: `0 auto`,
marginTop: rhythm(1.5),
marginBottom: rhythm(1.5),
maxWidth: 650,
paddingLeft: rhythm(3 / 4),
paddingRight: rhythm(3 / 4),
}}
>
{children}
<hr style={{ marginTop: rhythm(3) }} />
<p>
The src for this website is at
{` `}
<a href="https://github.com/gatsbyjs/gatsby/tree/master/examples/using-contentful">
https://github.com/gatsbyjs/gatsby/tree/master/examples/using-contentful
</a>
</p>
<p>
The Contentful site that is providing the data for this site is at
{` `}
<a href="https://discovery.contentful.com/entries/by-content-type/2PqfXUJwE8qSYKuM0U6w8M?delivery_access_token=e481b0f7c5572374474b29f81a91e8ac487bb27d70a6f14dd12142837d8e980a&space_id=ubriaw6jfhm1">
https://discovery.contentful.com/entries/by-content-type/2PqfXUJwE8qSYKuM0U6w8M?delivery_access_token=e481b0f7c5572374474b29f81a91e8ac487bb27d70a6f14dd12142837d8e980a&space_id=ubriaw6jfhm1
</a>
</p>
</div>
</>
)
DefaultLayout.propTypes = propTypes
export default DefaultLayout