Skip to content

Commit

Permalink
updated styles and added image centering
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-cratebind committed May 7, 2018
1 parent 2847086 commit d7496ec
Show file tree
Hide file tree
Showing 7 changed files with 1,419 additions and 40 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONTENTFUL_TOKEN=60cbad148b9e4801a76825865de8ec2a7f7f33582aff8c1033814675300e2f25
18 changes: 16 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
require('dotenv').config({
path: '.env',
});

module.exports = {
siteMetadata: {
title: 'Matt Wood | Developer',
Expand All @@ -7,12 +11,12 @@ module.exports = {
resolve: 'gatsby-source-contentful',
options: {
spaceId: 'wetfygr1eqh0',
accessToken:
process.env.CONTENTFUL_TOKEN,
accessToken: process.env.CONTENTFUL_TOKEN,
},
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-transformer-remark',
options: {
Expand Down Expand Up @@ -42,6 +46,16 @@ module.exports = {
aliases: {},
},
},
{
resolve: 'gatsby-remark-images',
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 590,
backgroundColor: '#000',
},
},
],
},
},
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
"babel-eslint": "^8.2.3",
"bluebird": "^3.5.1",
"contentful": "^5.1.3",
"dotenv": "^5.0.1",
"gatsby": "^1.9.223",
"gatsby-link": "^1.6.38",
"gatsby-plugin-react-helmet": "^2.0.6",
"gatsby-plugin-sass": "^1.0.20",
"gatsby-plugin-sharp": "^1.6.44",
"gatsby-remark-images": "^1.5.63",
"gatsby-remark-prismjs": "^2.0.2",
"gatsby-source-contentful": "^1.3.46",
"gatsby-transformer-remark": "^1.7.40",
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/stylesheets/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
.blog-post-body {
font-size: 18px;
letter-spacing: 0.225px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

p {
margin-bottom: 35px;
Expand Down
1 change: 1 addition & 0 deletions src/layouts/stylesheets/contact.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
border-radius: 5px;
transition: all 300ms ease;
border: 0;
margin-top: 5px;

&:hover {
cursor: pointer;
Expand Down
5 changes: 5 additions & 0 deletions src/layouts/stylesheets/projects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
justify-content: center;
align-items: center;

a:hover {
color: inherit;
text-decoration: none;
}

h3 {
margin: 0;
}
Expand Down
Loading

0 comments on commit d7496ec

Please sign in to comment.