This repository was archived by the owner on Jul 25, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathindex.js
157 lines (144 loc) · 9.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import React from 'react'
import { Link } from 'gatsby'
import { graphql } from 'gatsby'
import PropTypes from 'prop-types'
import { Icon, Box } from '../components/common'
import { Layout } from '../components/common/layout'
import { HomeHeader, HomeAPIBox, HomeFAQLink } from '../components/home'
import { Spirit } from '../styles/spirit-styles'
import { MetaData, getMetaImageUrls } from '../components/common/meta'
const HomePage = ({ data, location }) => {
// Add meta title and description for this page here to overwrite the site meta data as set in the config
const title = `Ghost Docs`
const description = `Get familiar with Ghost - the open source professional publishing platform. Install guides, tutorials, API docs and FAQs.`
const imageUrl = getMetaImageUrls()
return (
<>
<MetaData
data={data}
location={location}
type="website"
title={title}
description={description}
image={imageUrl}
/>
<Layout
headerDividerStyle="shadow"
bodyClass="bg-white"
mainClass="bg-whitegrey-l2 pb-vw6 pb-vw3-ns"
header={<HomeHeader />}
>
<div className="pt-vw3 home-main-box-padding-ns">
<div className={`${Spirit.page.xl} grid-12 gutter-row-20 gutter-40-ns`}>
<section className="col-12 col-6-ns flex flex-column justify-between mt4 mt0-ns">
<Link to="/api/" className={`${Spirit.h3} link darkgrey hover-midgrey flex-grow-0`}>API Reference</Link>
<Box className="mt5 tdn flex-auto flex flex-column items-stretch" elevation="1">
<HomeAPIBox
to="/api/#frontend-sdk"
title="Frontend SDKs"
icon="sdks"
>
Frameworks for working with the Ghost API to build a publication website
</HomeAPIBox>
<HomeAPIBox
to="/api/#rest-api"
title="Rest API"
icon="rest-api"
>
A full reference of API Endpoints
</HomeAPIBox>
<HomeAPIBox
to="/api/#tools"
title="Tools"
icon="tools"
>
Utilities to help build and manage Ghost
</HomeAPIBox>
</Box>
</section>
<section className="col-12 col-6-ns mt0-ns bt bn-ns b--whitegrey nl5 nr5 nl0-ns nr0-ns ml0-ns mr0-ns pl5 pr5 pl0-ns pr0-ns pt5 pt0-ns ">
<a href="https://docs.ghost.org/faq/" className={`${Spirit.h3} link darkgrey hover-midgrey`}>FAQ</a>
<div className="mt3 mt7-ns">
<HomeFAQLink to="https://docs.ghost.org/faq/upgrade-to-ghost-2-0/" title="Upgrade to Ghost 2.0">
Ghost 2.0 was released in September 2018 and the second major upgrade since the platform launched. Learn how to upgrade
</HomeFAQLink>
<HomeFAQLink to="https://docs.ghost.org/faq/using-custom-domains/" title="Using Custom Domains">
Map any domain you own directly to your Ghost(Pro) publication and make your site more memorable!
</HomeFAQLink>
<HomeFAQLink to="https://docs.ghost.org/faq/upgrading-from-deprecated-ghost-cli/" title="Upgrading from deprecated Ghost CLI">
If you are using a deprecated version and need to upgrade in order to upgrade or manage your Ghost site, some extra steps may be required.
</HomeFAQLink>
<a href="https://docs.ghost.org/faq/" className={`${Spirit.p} midgrey fw5 link hover-blue`}>More FAQ...</a>
</div>
</section>
</div>
<section className={`${Spirit.page.xl} col-12 mt8 mt-vw3-ns bt bn-ns b--whitegrey pt5 pt0-ns`}>
<a href="https://ghost.org/integrations/" className={`${Spirit.h3} link darkgrey hover-midgrey`}>Integrations</a>
<p className={`${Spirit.p} mt2 midgrey flex flex-column flex-row-ns justify-between items-center-ns`}>
All your favourite apps and tools, integrated with Ghost.
<a to="https://ghost.org/integrations/" className="blue link din nb1 mt2 mt0-ns hover-underline-blue">
<span className="flex items-center fw5">Browse all integrations <Icon name="arrow-right" className="w3 h3 ml1 fill-blue" /></span>
</a>
</p>
<div className="grid-integrations-index mt4 mt6-l f8">
<Box href="https://ghost.org/integrations/zapier/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn tc" elevation="2" radius="4">
<img className="w10 mb1" src="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit,f_auto/https://docs.ghost.io/content/images/2018/09/zapier.png" alt="Zapier" />
Zapier
</Box>
<Box href="https://ghost.org/integrations/disqus/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn tc" elevation="2" radius="4">
<img className="w10 mb1" src="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit,f_auto/https://docs.ghost.io/content/images/2018/09/disqus.svg" alt="Disqus" />
Disqus
</Box>
<Box href="https://ghost.org/integrations/slack/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn tc" elevation="2" radius="4">
<img className="w10 mb1" src="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit,f_auto/https://docs.ghost.io/content/images/2018/09/slack.png" alt="Slack" />
Slack
</Box>
<Box href="https://ghost.org/integrations/unsplash/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn tc" elevation="2" radius="4">
<img className="w10 mb1" src="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit,f_auto/https://docs.ghost.io/content/images/2018/09/unsplash.svg" alt="Unsplash" />
Unsplash
</Box>
<Box href="https://ghost.org/integrations/google/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn tc" elevation="2" radius="4">
<img className="w10 mb1" src="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit,f_auto/https://docs.ghost.io/content/images/2018/09/google-analytics-1.png" alt="Google Analytics" />
Google Analytics
</Box>
<Box href="https://ghost.org/integrations/mailchimp/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn tc" elevation="2" radius="4">
<img className="w10 mb1" src="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit,f_auto/https://docs.ghost.io/content/images/2018/09/mailchimp.png" alt="Mailchimp" />
Mailchimp
</Box>
<Box href="https://ghost.org/integrations/google-amp/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn tc" elevation="2" radius="4">
<img className="w10 mb1" src="https://res.cloudinary.com/tryghost/image/fetch/w_120,h_100,c_fit,f_auto/https://docs.ghost.io/content/images/2018/09/amp.jpg" alt="Google AMP" />
Google AMP
</Box>
<Box href="https://ghost.org/integrations/" className="flex flex-column justify-between items-center middarkgrey pa2 pt5 pb5 tdn" elevation="2" radius="4">
<Icon name="more" className="w8 nudge-top--6" />
See More
</Box>
</div>
</section>
</div>
</Layout>
</>
)
}
HomePage.propTypes = {
data: PropTypes.shape({
site: PropTypes.shape({
siteMetadata: PropTypes.shape({
siteUrl: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
}).isRequired,
}).isRequired,
}).isRequired,
location: PropTypes.shape({
pathname: PropTypes.string.isRequired,
}).isRequired,
}
export default HomePage
export const pageQuery = graphql`
query {
site {
...SiteMetaFields
}
}
`