From 23a2fd36fd2315a93b92912eb9c79cc5a0211605 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Tue, 28 Sep 2021 19:16:31 +0200 Subject: [PATCH] Update to Gatsby 3 --- package.json | 32 +- src/components/blog.js | 4 +- src/components/footer.js | 6 +- src/components/header.js | 10 +- src/components/index.js | 6 +- src/components/layout.js | 11 +- src/components/post-link.js | 16 +- src/components/social.js | 4 +- src/pages/404.js | 2 - src/pages/blog.js | 2 - src/pages/index.js | 2 - src/styles/global.scss | 6 +- src/templates/blog-post.js | 4 +- src/templates/page.js | 4 +- yarn.lock | 10145 ++++++++++++++-------------------- 15 files changed, 4260 insertions(+), 5994 deletions(-) diff --git a/package.json b/package.json index fed8afa..e4edfda 100644 --- a/package.json +++ b/package.json @@ -5,26 +5,26 @@ "version": "2.0.0", "author": "Matus Namesny ", "dependencies": { - "@fontsource/fira-mono": "^4.2.2", - "@fontsource/open-sans": "^4.2.2", - "gatsby": "^2.24.61", - "gatsby-image": "^2.4.19", - "gatsby-plugin-manifest": "^2.4.30", - "gatsby-plugin-offline": "^3.2.28", - "gatsby-plugin-react-helmet": "^3.3.11", - "gatsby-plugin-sass": "^2.3.13", - "gatsby-plugin-sharp": "^2.6.36", - "gatsby-source-filesystem": "^2.3.30", - "gatsby-transformer-remark": "^2.8.35", - "gatsby-transformer-sharp": "^2.5.15", - "node-sass": "^4.14.1", + "@fontsource/fira-mono": "^4.5.0", + "@fontsource/open-sans": "^4.5.1", + "gatsby": "^3.14.0", + "gatsby-image": "^3.11.0", + "gatsby-plugin-manifest": "^3.14.0", + "gatsby-plugin-offline": "^4.14.0", + "gatsby-plugin-react-helmet": "^4.14.0", + "gatsby-plugin-sass": "^4.14.0", + "gatsby-plugin-sharp": "^3.14.0", + "gatsby-source-filesystem": "^3.14.0", + "gatsby-transformer-remark": "^4.11.0", + "gatsby-transformer-sharp": "^3.14.0", + "node-sass": "^6.0.1", "prop-types": "^15.7.2", - "react": "^16.12.0", - "react-dom": "^16.12.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "react-helmet": "^6.1.0" }, "devDependencies": { - "prettier": "2.1.1" + "prettier": "2.4.1" }, "keywords": [ "gatsby", diff --git a/src/components/blog.js b/src/components/blog.js index f0ce381..0aea729 100644 --- a/src/components/blog.js +++ b/src/components/blog.js @@ -1,6 +1,6 @@ import React from "react" import PostLink from "./post-link" -import styles from "../styles/blog.module.scss" +import {header} from "../styles/blog.module.scss" const Blog = ({ edges }) => { const Posts = edges @@ -8,7 +8,7 @@ const Blog = ({ edges }) => { return (
-
+

Blog

diff --git a/src/components/footer.js b/src/components/footer.js index 8a26c47..92850ef 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -1,11 +1,11 @@ import React from "react" -import styles from '../styles/footer.module.scss' +import { footer, link } from '../styles/footer.module.scss' const Footer = ({authorName}) => ( -