Skip to content

Commit

Permalink
Merge pull request #24 from helxplatform/staging
Browse files Browse the repository at this point in the history
Merge to main branch
  • Loading branch information
suejinkim20 authored Mar 6, 2024
2 parents 157408d + 646a099 commit d190b85
Show file tree
Hide file tree
Showing 93 changed files with 11,830 additions and 13,646 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build and Deploy
on:
push:
branches:
- main

permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: enriikke/gatsby-gh-pages-action@v2
with:
deploy-branch: gh-pages
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.cache/
public
.DS_Store
22 changes: 22 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import { ThemeProvider } from '@mui/material/styles'
import { Layout } from './src/components/layout'
import { theme } from './src/theme'
import { CssBaseline } from '@mui/material'

export const wrapRootElement = ({ element, props }) => {
return (
<ThemeProvider theme={ theme }>
<CssBaseline />
{ element }
</ThemeProvider>
)
}

export const wrapPageElement = ({ element, props }) => {
return (
<Layout>
{ element }
</Layout>
)
}
47 changes: 35 additions & 12 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,40 @@ module.exports = {
title: `helx-marketing-site`,
siteUrl: `https://www.yourdomain.tld`
},
plugins: [{
resolve: 'gatsby-plugin-google-analytics',
options: {
"trackingId": ""
}
}, "gatsby-plugin-image", "gatsby-plugin-sharp", "gatsby-transformer-sharp", {
resolve: 'gatsby-source-filesystem',
options: {
"name": "images",
"path": "./src/images/"
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
icon: `src/images/helxLogo.svg`
}
},
__key: "images"
}]
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: 'gatsby-source-filesystem',
options: {
"name": "images",
"path": "./src/images/"
},
__key: "images"
},
"gatsby-plugin-material-ui",
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`open sans\:300,400,500,600`,
`montserrat\:500,600,700,800,900`
],
display: 'swap'
}
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: ["G-PEWT74G972"],
},
},
]
};
20 changes: 20 additions & 0 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import { ThemeProvider } from '@mui/material/styles'
import { Layout } from './src/components/layout'
import { theme } from './src/theme'

export const wrapRootElement = ({ element, props }) => {
return (
<ThemeProvider theme={ theme }>
{ element }
</ThemeProvider>
)
}

export const wrapPageElement = ({ element, props }) => {
return (
<Layout>
{ element }
</Layout>
)
}
Loading

0 comments on commit d190b85

Please sign in to comment.