Skip to content

Commit 01c46ca

Browse files
committed
initial commit
0 parents  commit 01c46ca

18 files changed

+9022
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Project dependencies
2+
.cache
3+
/node_modules
4+
yarn-error.log
5+
6+
# Build directory
7+
/public
8+
.DS_Store

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "es5"
5+
}

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 gatsbyjs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# gatsby-starter-default
2+
The default Gatsby starter.
3+
4+
For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.org/docs/building-with-components/).
5+
6+
## Install
7+
8+
Make sure that you have the Gatsby CLI program installed:
9+
```sh
10+
npm install --global gatsby-cli
11+
```
12+
13+
And run from your CLI:
14+
```sh
15+
gatsby new gatsby-example-site
16+
```
17+
18+
Then you can run it by:
19+
```sh
20+
cd gatsby-example-site
21+
npm run develop
22+
```
23+
24+
## Deploy
25+
26+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-default)

gatsby-browser.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Implement Gatsby's Browser APIs in this file.
3+
*
4+
* See: https://www.gatsbyjs.org/docs/browser-apis/
5+
*/
6+
7+
// You can delete this file if you're not using it

gatsby-config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
siteMetadata: {
3+
title: 'Know Your User',
4+
},
5+
plugins: ['gatsby-plugin-react-helmet', 'gatsby-plugin-sass'],
6+
}

gatsby-node.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Implement Gatsby's Node APIs in this file.
3+
*
4+
* See: https://www.gatsbyjs.org/docs/node-apis/
5+
*/
6+
7+
// You can delete this file if you're not using it

gatsby-ssr.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
3+
*
4+
* See: https://www.gatsbyjs.org/docs/ssr-apis/
5+
*/
6+
7+
// You can delete this file if you're not using it

package.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "know-your-user",
3+
"description": "Know your User landing page",
4+
"version": "1.0.0",
5+
"author": "Dave Connis",
6+
"dependencies": {
7+
"bootstrap": "^4.1.1",
8+
"gatsby": "^1.9.247",
9+
"gatsby-link": "^1.6.40",
10+
"gatsby-plugin-react-helmet": "^2.0.10",
11+
"gatsby-plugin-sass": "^1.0.26",
12+
"react": "^16.3.2",
13+
"react-addons-transition-group": "^15.6.2",
14+
"react-bootstrap": "^0.32.1",
15+
"react-dom": "^16.3.2",
16+
"react-helmet": "^5.2.0",
17+
"reactstrap": "^6.0.1"
18+
},
19+
"keywords": [
20+
"gatsby"
21+
],
22+
"license": "MIT",
23+
"scripts": {
24+
"build": "gatsby build",
25+
"develop": "gatsby develop",
26+
"format": "prettier --write 'src/**/*.js'",
27+
"test": "echo \"Error: no test specified\" && exit 1"
28+
},
29+
"devDependencies": {
30+
"prettier": "^1.12.0"
31+
}
32+
}

src/components/header.js

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React from 'react'
2+
import Link from 'gatsby-link'
3+
4+
const Header = ({ siteTitle }) => (
5+
<div
6+
style={{
7+
background: 'rebeccapurple',
8+
marginBottom: '1.45rem',
9+
}}
10+
>
11+
<div
12+
style={{
13+
margin: '0 auto',
14+
maxWidth: 960,
15+
padding: '1.45rem 1.0875rem',
16+
}}
17+
>
18+
<h1 style={{ margin: 0 }}>
19+
<Link
20+
to="/"
21+
style={{
22+
color: 'white',
23+
textDecoration: 'none',
24+
}}
25+
>
26+
{siteTitle}
27+
</Link>
28+
</h1>
29+
</div>
30+
</div>
31+
)
32+
33+
export default Header

src/components/testimonial.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react'
2+
3+
const Testimonial = () => (
4+
<div>
5+
<img src="#" />
6+
<q>
7+
"I've learned so much about customer development by reading articles
8+
shared in Know Your Users."
9+
</q>
10+
<p>-Joelle Goodman, Partner at ChurnBuster, Co-host of RocketShip</p>
11+
</div>
12+
)
13+
14+
export default Testimonial

src/layouts/index.js

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import React from 'react'
2+
import PropTypes from 'prop-types'
3+
import Helmet from 'react-helmet'
4+
import Header from '../components/header'
5+
import 'bootstrap/dist/css/bootstrap.css'
6+
import '../styles/index.scss'
7+
8+
const Layout = ({ children, data }) => (
9+
<div>
10+
<Helmet
11+
title={data.site.siteMetadata.title}
12+
meta={[
13+
{ name: 'description', content: 'Sample' },
14+
{ name: 'keywords', content: 'sample, something' },
15+
]}
16+
/>
17+
<Header siteTitle={data.site.siteMetadata.title} />
18+
<div
19+
style={{
20+
margin: '0 auto',
21+
maxWidth: 960,
22+
padding: '0px 1.0875rem 1.45rem',
23+
paddingTop: 0,
24+
}}
25+
>
26+
{children()}
27+
</div>
28+
</div>
29+
)
30+
31+
Layout.propTypes = {
32+
children: PropTypes.func,
33+
}
34+
35+
export default Layout
36+
37+
export const query = graphql`
38+
query SiteTitleQuery {
39+
site {
40+
siteMetadata {
41+
title
42+
}
43+
}
44+
}
45+
`

src/pages/404.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
3+
const NotFoundPage = () => (
4+
<div>
5+
<h1>NOT FOUND</h1>
6+
<p>You just hit a route that doesn't exist... the sadness.</p>
7+
</div>
8+
)
9+
10+
export default NotFoundPage

src/pages/index.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from 'react'
2+
import Link from 'gatsby-link'
3+
import Testimonial from '../components/testimonial'
4+
import { Button } from 'reactstrap'
5+
6+
const IndexPage = ({ Testimonial }) => (
7+
<div>
8+
<div>
9+
<h1>Get our best links every weekday</h1>
10+
<div>
11+
<p>
12+
We handpick new content on product development, user experience,
13+
analytics, and more sent right to your inbox.
14+
</p>
15+
<div>
16+
<input type="form" placeholder="Your email address" />
17+
</div>
18+
<div>
19+
<Button color="primary" size="large ">
20+
Subscribe
21+
</Button>{' '}
22+
</div>
23+
<div>{Testimonial}</div>
24+
</div>
25+
</div>
26+
</div>
27+
)
28+
29+
export default IndexPage

src/pages/page-2.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react'
2+
import Link from 'gatsby-link'
3+
4+
const SecondPage = () => (
5+
<div>
6+
<h1>Hi from the second page</h1>
7+
<p>Welcome to page 2</p>
8+
<Link to="/">Go back to the homepage</Link>
9+
</div>
10+
)
11+
12+
export default SecondPage

src/styles/index.scss

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'pages/index.scss';

src/styles/pages/_index.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)