diff --git a/client/.prettierrc b/client/.prettierrc index 36301bc5cf..c3e03287be 100644 --- a/client/.prettierrc +++ b/client/.prettierrc @@ -1,5 +1,5 @@ { - "semi": false, + "semi": true, "singleQuote": true, "trailingComma": "es5" } diff --git a/client/gatsby-config.js b/client/gatsby-config.js index 6e0a7100ff..f3c0d26ce2 100644 --- a/client/gatsby-config.js +++ b/client/gatsby-config.js @@ -1,6 +1,7 @@ module.exports = { siteMetadata: { - title: 'Gatsby Default Starter' + title: 'freeCodeCamp', + siteUrl: 'https://www.freecodecamp.org' }, proxy: { prefix: '/internal', @@ -15,13 +16,13 @@ module.exports = { { resolve: 'gatsby-plugin-manifest', options: { - name: 'gatsby-starter-default', - short_name: 'starter', + name: 'freeCodeCamp', + short_name: 'fCC', start_url: '/', - background_color: '#663399', - theme_color: '#663399', + background_color: '#fff', + theme_color: '#006400', display: 'minimal-ui', - icon: 'src/images/gatsby-icon.png' // This path is relative to the root of the site. + icon: 'src/images/square_puck.png' // This path is relative to the root of the site. } }, 'gatsby-plugin-sitemap' diff --git a/client/src/components/RedirectHome.js b/client/src/components/RedirectHome.js index 54503dd14e..3df1df4f09 100644 --- a/client/src/components/RedirectHome.js +++ b/client/src/components/RedirectHome.js @@ -1,7 +1,9 @@ import { navigate } from 'gatsby'; const Redirecthome = () => { - navigate('/'); + if (typeof window !== 'undefined') { + navigate('/'); + } return null; }; diff --git a/client/src/images/gatsby-icon.png b/client/src/images/gatsby-icon.png deleted file mode 100644 index 908bc78a7f..0000000000 Binary files a/client/src/images/gatsby-icon.png and /dev/null differ diff --git a/client/src/images/square_puck.png b/client/src/images/square_puck.png new file mode 100644 index 0000000000..ef9c46152e Binary files /dev/null and b/client/src/images/square_puck.png differ diff --git a/client/src/pages/certification.js b/client/src/pages/certification.js index a638817f40..b5d8fe7aa0 100644 --- a/client/src/pages/certification.js +++ b/client/src/pages/certification.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import { Router } from '@reach/router'; -import Redirecthome from '../components/RedirectHome'; +import RedirectHome from '../components/RedirectHome'; import ShowCertification from '../client-only-routes/ShowCertification'; import './certification.css'; @@ -12,7 +12,7 @@ class Certification extends Component { return ( - + ); }