Skip to content

Commit 8ec413b

Browse files
npalmJeroenKnoops
authored andcommitted
Update footer, add about, some layouting
1 parent 82f7ee3 commit 8ec413b

File tree

3 files changed

+41
-170
lines changed

3 files changed

+41
-170
lines changed

content/pages/about/about.md

Lines changed: 9 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,168 +1,20 @@
11
---
2-
title: "About gatsby-starter-morning-dew"
3-
slug: gatsby-starter-morning-dew
4-
cover: ./gatsby-cover.png
2+
title: "About the blog"
3+
slug: about
54
date: 2018-09-30
65
language: en
7-
disqus: true
6+
disqus: false
87
type: page
98
---
109

11-
[![Build Status](https://travis-ci.org/maxpou/gatsby-starter-morning-dew.svg?branch=master)](https://travis-ci.org/maxpou/gatsby-starter-morning-dew) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![Maintainability](https://api.codeclimate.com/v1/badges/e09f1ac1a5cdb2987a6f/maintainability)](https://codeclimate.com/github/maxpou/gatsby-starter-morning-dew/maintainability)
10+
# The blog
1211

12+
The 040 code blog is an initiative from Developers that have a relation with the city [Eindhoven](https://www.thisiseindhoven.com/en), in the [Netherlonds](https://www.youtube.com/watch?v=eE_IUPInEuc). The name `040` points to area code used at the time we used the old landline for calling our friends and family.
1313

14-
## gatsby-starter-morning-dew
14+
Articles on this blog are our ideas, experiments and opinion. For each blog post we make a nice picture from a place in Eindhoven that we like for some reason.
15+
<p><br></p>
1516

16-
Gatsby starter for creating a new blog!
17+
# Credits
1718

18-
[Demo website.](https://maxpou.github.io/gatsby-starter-morning-dew/)
19+
This blog is created with the [Gatsby](https://www.gatsbyjs.org/), an awesome framework to create a static blog using [React](https://reactjs.org/) and [GraphQL](https://graphql.org/). And to get even faster started we have based the blog on the React Starter [gatsby-starter-morning-dew](https://github.com/maxpou/gatsby-starter-morning-dew)
1920

20-
![screenshot](https://i.imgur.com/aRTBbKs.jpg)
21-
22-
23-
## Installation
24-
25-
26-
* with Gatsby-cli: `gatsby new gatsby-blog https://github.com/maxpou/gatsby-starter-morning-dew`
27-
28-
* without Gatsby-cli
29-
30-
```bash
31-
git clone my-site [email protected]:maxpou/gatsby-starter-morning-dew.git
32-
cd my-site
33-
yarn install
34-
```
35-
36-
## Features
37-
38-
- [💜 Gatsby v2](https://www.gatsbyjs.org/) / React 16
39-
- 🔍 SEO optimized (robot.txt)
40-
- 💌 Write posts/pages in Markdown
41-
- 🎨 Code syntax highlight
42-
- 📚 Multilang support (blog post only)
43-
- 📱 Responsive design
44-
- ✨ PWA ready
45-
- ✈️ Offline support
46-
- 📃 Manifest support
47-
- [🔧 Fully configurable (see data/siteConfig.js)](./data/siteConfig.js)
48-
- 💬 Disqus support
49-
- 💅 css-in-js (with [styled-components](https://www.styled-components.com))
50-
- 🔖 Groups post with tags
51-
- 📊 Google Analytics support
52-
- 🐦 post preview image generation (Twitter, Facebook)
53-
- 💎 Developer tools (eslint, prettier)
54-
- 👷 Travis CI support
55-
56-
57-
![Lighthouse scores (locally :bowtie:)](https://lighthouse.now.sh/?perf=97&pwa=100&a11y=92&bp=100&seo=100)
58-
59-
60-
## Commands
61-
62-
```sh
63-
# working locally
64-
yarn dev
65-
66-
# generate build
67-
yarn build
68-
69-
# format code
70-
yarn format
71-
72-
# lint code
73-
yarn lint
74-
75-
# Generate generate post preview images (yarn dev need to run before)
76-
yarn generatePostPreviewImages
77-
```
78-
79-
**:warning: Add `--prefix-paths` if you are using path prefix!**
80-
81-
## Configure
82-
83-
```js
84-
module.exports = {
85-
siteTitle: 'gatsby-starter-morning-dew',
86-
siteDescription: "👋 Hey I'm a Gatsby starter!",
87-
authorName: 'Maxence Poutord',
88-
twitterUsername: '_maxpou',
89-
authorAvatar: '/images/avatar.jpeg',
90-
multilangPosts: true, // enable/disable flags in post lists
91-
authorDescription: `
92-
For the last decade, Maxence Poutord has worked with a variety of web technologies. He is currently focused on front-end development.
93-
On his day to day job, he is working as a senior front-end engineer at VSware. He is also a frequent tech speaker and a mentor.
94-
As a new digital nomad, he is living where the WIFI and sun is 😎 <br>
95-
Do you want to know more? <a href="https://www.maxpou.fr/about" target="_blank">Visit my website!</a>
96-
`,
97-
siteUrl: 'https://maxpou.github.io/',
98-
disqusSiteUrl: 'https://www.maxpou.fr/',
99-
// Prefixes all links. For cases when deployed to maxpou.fr/gatsby-starter-morning-dew/
100-
pathPrefix: '/gatsby-starter-morning-dew', // Note: it must *not* have a trailing slash.
101-
siteCover: '/images/cover.jpg',
102-
googleAnalyticsId: 'UA-67868977-1',
103-
background_color: '#ffffff',
104-
theme_color: '#222222',
105-
display: 'minimal-ui',
106-
icon: 'src/assets/gatsby-icon.png',
107-
disqusShortname: 'maxpou',
108-
postsPerPage: 6,
109-
headerLinks: [
110-
{
111-
label: '🏡',
112-
url: '/',
113-
},
114-
{
115-
label: 'Blog',
116-
url: '/',
117-
},
118-
{
119-
label: 'About',
120-
url: '/about',
121-
},
122-
{
123-
label: 'Installation',
124-
url: '/how-to-install',
125-
},
126-
],
127-
// Footer information (ex: Github, Netlify...)
128-
websiteHost: {
129-
name: 'GitHub',
130-
url: 'https://github.com',
131-
},
132-
footerLinks: [
133-
[
134-
'Explore',
135-
{
136-
label: 'Blog',
137-
url: '/',
138-
},
139-
{
140-
label: 'About',
141-
url: '/about',
142-
},
143-
{
144-
label: 'Installation',
145-
url: '/how-to-install',
146-
},
147-
],
148-
[
149-
'Follow the author',
150-
{
151-
label: 'Github',
152-
url: 'https://github.com/maxpou/gatsby-starter-morning-dew',
153-
iconClassName: 'fa fa-github',
154-
},
155-
{
156-
label: 'Website',
157-
url: 'https://www.maxpou.fr',
158-
iconClassName: 'fa fa-globe',
159-
},
160-
{
161-
label: 'Twitter',
162-
url: 'https://twitter.com/_maxpou',
163-
iconClassName: 'fa fa-twitter',
164-
},
165-
],
166-
],
167-
}
168-
```

data/siteConfig.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,33 @@ module.exports = {
4242
],
4343
// Footer information (ex: Github, Netlify...)
4444
footerLinks: [
45-
45+
[
46+
'040 code © 2019',
47+
{
48+
label: 'Gatsby',
49+
prefix: 'Buildt with ',
50+
url: 'https://www.gatsbyjs.org/',
51+
},
52+
],
53+
[
54+
'Blog',
55+
{
56+
label: 'home',
57+
prefix: '',
58+
url: '/',
59+
},
60+
{
61+
label: 'about',
62+
prefix: '',
63+
url: '/about',
64+
},
65+
],
66+
[
67+
'Source',
68+
{
69+
label: 'Github',
70+
url: 'https://github.com/040code/',
71+
},
72+
],
4673
],
4774
}

src/components/Footer.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const FooterWrapper = styled.footer`
1010
color: #ffffff;
1111
padding-left: 20px;
1212
padding-right: 20px;
13-
margin: 0 auto;
13+
margin: 3.5em auto 0 0 ;
1414
1515
& nav {
1616
display: flex;
@@ -88,6 +88,7 @@ class Footer extends React.Component {
8888
if (item.url.startsWith('/')) {
8989
return (
9090
<span className="footer-item">
91+
{item.prefix}
9192
<Link className="footer-link" to={item.url}>
9293
{item.label}
9394
</Link>
@@ -96,6 +97,8 @@ class Footer extends React.Component {
9697
}
9798
return (
9899
<span className="footer-item">
100+
{item.prefix}
101+
<i className={item.iconClassName}></i>
99102
<a className="footer-link" href={item.url}>
100103
{item.label}
101104
</a>
@@ -116,17 +119,6 @@ class Footer extends React.Component {
116119
return (
117120
<FooterWrapper>
118121
<nav>
119-
<div className="footer-col">
120-
<h5 className="footer-title">{authorName} © 2019</h5>
121-
<p className="footer-item-text">
122-
Built with{' '}
123-
<a className="footer-link" href="https://www.gatsbyjs.org">
124-
Gatsby
125-
</a>
126-
.
127-
</p>
128-
129-
</div>
130122
{footerLinks.map((column, i) => {
131123
return <FooterColumn column={column} key={`footer-column-${i}`} />
132124
})}

0 commit comments

Comments
 (0)