Skip to content

Commit fa3c5cc

Browse files
committed
Cleanup
1 parent 8946569 commit fa3c5cc

7 files changed

Lines changed: 16 additions & 124 deletions

File tree

gatsby-config.js

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -25,80 +25,10 @@ module.exports = {
2525
{
2626
resolve: `gatsby-plugin-google-analytics`,
2727
options: {
28-
// The property ID; the tracking code won't be generated without it
2928
trackingId: process.env.GOOGLE_ANALYTICS_ID,
30-
// Defines where to place the tracking script - `true` in the head and `false` in the body
3129
head: false,
32-
// Setting this parameter is optional
33-
// anonymize: true,
34-
// Setting this parameter is also optional
35-
// respectDNT: true,
36-
// Avoids sending pageview hits from custom paths
37-
// exclude: ['/preview/**', '/do-not-track/me/too/'],
38-
// Delays sending pageview hits on route update (in milliseconds)
3930
pageTransitionDelay: 0,
40-
// Enables Google Optimize using your container Id
41-
// optimizeId: 'YOUR_GOOGLE_OPTIMIZE_TRACKING_ID',
42-
// Enables Google Optimize Experiment ID
43-
// experimentId: 'YOUR_GOOGLE_EXPERIMENT_ID',
44-
// Set Variation ID. 0 for original 1,2,3....
45-
// variationId: 'YOUR_GOOGLE_OPTIMIZE_VARIATION_ID',
46-
// Defers execution of google analytics script after page load
4731
defer: true,
48-
// Any additional optional fields
49-
// sampleRate: 5,
50-
// siteSpeedSampleRate: 10,
51-
// cookieDomain: 'example.com',
52-
// defaults to false
53-
// enableWebVitalsTracking: true,
54-
},
55-
},
56-
// {
57-
// resolve: `gatsby-plugin-csp`,
58-
// options: {
59-
// disableOnDev: true,
60-
// reportOnly: false, // Changes header to Content-Security-Policy-Report-Only for csp testing purposes
61-
// mergeScriptHashes: true, // you can disable scripts sha256 hashes
62-
// mergeStyleHashes: true, // you can disable styles sha256 hashes
63-
// mergeDefaultDirectives: true,
64-
// directives: {
65-
// 'script-src': "'self' www.google-analytics.com",
66-
// 'style-src': "'self' 'unsafe-inline'",
67-
// 'img-src': "'self' data: www.google-analytics.com",
68-
// // you can add your directives or override defaults
69-
// },
70-
// },
71-
// },
72-
// {
73-
// resolve: 'gatsby-plugin-netlify',
74-
// options: {
75-
// headers: {
76-
// '/*': ['X-Frame-Options: DENY'],
77-
// },
78-
// mergeSecurityHeaders: false,
79-
// },
80-
// },
81-
{
82-
/* Include plugin */
83-
resolve: 'gatsby-omni-font-loader',
84-
85-
/* Plugin options */
86-
options: {
87-
/* Font loading mode */
88-
mode: 'async',
89-
90-
/* Enable font loading listener to handle FOUT */
91-
enableListener: true,
92-
93-
/* Self-hosted fonts config. Add font files and font CSS files to "static" folder */
94-
custom: [
95-
{
96-
/* Exact name of the font as defied in @font-face CSS rule */
97-
name: ['Apercu-Mono-Pro'],
98-
/* Path to the font CSS file inside the "static" folder with @font-face definition */
99-
file: '/assets/fonts/fonts.css',
100-
},
101-
],
10232
},
10333
},
10434
{
@@ -109,12 +39,12 @@ module.exports = {
10939
start_url: `/`,
11040
background_color: `#4FD8C3`,
11141
theme_color: `#4FD8C3`,
112-
display: `minimal-ui`,
42+
display: `standalone`,
11343
icon: `src/assets/images/favicon.svg`, // This path is relative to the root of the site.
11444
},
11545
},
11646
// this (optional) plugin enables Progressive Web App + Offline functionality
11747
// To learn more, visit: https://gatsby.dev/offline
118-
// `gatsby-plugin-offline`,
48+
`gatsby-plugin-offline`,
11949
],
12050
}

package-lock.json

Lines changed: 9 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
"babel-plugin-styled-components": "^2.0.2",
99
"dotenv": "^14.1.0",
1010
"gatsby": "^4.5.2",
11-
"gatsby-omni-font-loader": "^1.3.3",
1211
"gatsby-plugin-anchor-links": "^1.2.1",
13-
"gatsby-plugin-csp": "^1.1.3",
1412
"gatsby-plugin-google-analytics": "^4.5.0",
1513
"gatsby-plugin-image": "^2.5.1",
1614
"gatsby-plugin-manifest": "^4.5.1",
17-
"gatsby-plugin-offline": "^5.5.1",
15+
"gatsby-plugin-offline": "^5.5.2",
1816
"gatsby-plugin-react-helmet": "^5.5.0",
1917
"gatsby-plugin-sharp": "^4.5.1",
2018
"gatsby-plugin-styled-components": "^5.5.0",

src/components/Header/Header.component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Link } from 'gatsby'
33
import { Nav } from '../Nav'
44
import { StyledHeader } from './Header.styles'
55

6-
const HeaderNew = () => {
6+
const Header = () => {
77
const [navOpen, setNavOpen] = useState(false)
88
return (
99
<StyledHeader className={navOpen && `is-active`}>
@@ -32,4 +32,4 @@ const HeaderNew = () => {
3232
)
3333
}
3434

35-
export default HeaderNew
35+
export default Header

src/components/Header/Header.styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const StyledHeader = styled.header`
1010
1111
@media (max-width: 991px) {
1212
grid-template-columns: 60px 1fr;
13-
margin-bottom: 3rem;
13+
margin: 2rem auto 3rem;
1414
}
1515
1616
> a:first-of-type {

src/components/Layout.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const Layout = ({ children }) => {
2929
<>
3030
<GlobalStyle />
3131
<div className="container">
32-
{/* <Header siteTitle={data.site.siteMetadata?.title || `Title`} /> */}
3332
<Header siteTitle={data.site.siteMetadata?.title || `Title`} />
3433
<main>{children}</main>
3534
<Footer />

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import discordIcon from '../assets/images/icon-discord.svg'
77

88
const IndexPage = () => (
99
<Layout>
10-
<Seo title="CodeHelp Discord Server" />
10+
<Seo title="CodeHelp Community and Discord Server" />
1111
<StyledHome>
1212
<div>
1313
<h1>

0 commit comments

Comments
 (0)