Skip to content

Commit

Permalink
Update dependency versions to the latest ones (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtunyk authored Nov 16, 2021
1 parent 66c4aac commit 9cec3c8
Show file tree
Hide file tree
Showing 17 changed files with 3,330 additions and 2,243 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ git submodule foreach git pull origin master

### Prerequisites

- [Node.js v14+](https://nodejs.org/en/download/current/)
- [Node.js v17+](https://nodejs.org/en/download/current/)

### Run website locally

Expand Down Expand Up @@ -49,20 +49,12 @@ npm start

### Generate the sitemap

Using the npm package [`sitemap`](https://www.npmjs.com/package/sitemap)

```
npm install --save sitemap
```

and then a one-liner:
Using the `npx` and npm package [`sitemap`](https://www.npmjs.com/package/sitemap), run a one-liner:

```
echo "https://co2birth.date" > listofurls.txt && find out/co2 -name "*.html" -maxdepth 1 -type f | sed 's/out/https:\/\/co2birth.date/g' >> listofurls.txt && npx sitemap --index-base-url https://co2birth.date < listofurls.txt > out/sitemap.xml && rm -f listofurls.txt && gzip out/sitemap.xml
```



### Deploy to github pages

Once everything works fine, deploy the website to GitHub Pages (branch: `gh-pages`)
Expand Down
5 changes: 3 additions & 2 deletions assets/jss/styles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import CssBaseline from '@material-ui/core/CssBaseline'
import { makeStyles, darken, lighten } from '@material-ui/core/styles'
import CssBaseline from '@mui/material/CssBaseline'
import { darken, lighten } from '@mui/material/styles'
import { makeStyles } from '@mui/styles'

const CssStyles = () => {
(makeStyles(({ palette, ...theme }) => ({
Expand Down
2 changes: 1 addition & 1 deletion components/common/link.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx'
import MuiLink from '@material-ui/core/Link'
import MuiLink from '@mui/material/Link'
import NextLink from 'next/link'
import { useRouter } from 'next/router'
import { forwardRef } from 'react'
Expand Down
12 changes: 5 additions & 7 deletions layouts/footer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Grid from '@material-ui/core/Grid'
import Box from '@material-ui/core/Box'
import Typography from '@material-ui/core/Typography'
import MuiLink from '@material-ui/core/Link'
import Grid from '@mui/material/Grid'
import Box from '@mui/material/Box'
import Typography from '@mui/material/Typography'
import MuiLink from '@mui/material/Link'

export const Copyright = ({ className }) => (
<Box mt={3} py={3} align="center" className={className}>
Expand Down Expand Up @@ -112,7 +112,7 @@ export const FooterSection = () => (
>
Mykola Tunyk
</MuiLink>
</li>
</li>
<li>
Illustration:
&nbsp;
Expand All @@ -135,8 +135,6 @@ export const FooterSection = () => (
Alfonso López-Sanz
</MuiLink>
</li>


</ul>
</Grid>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion layouts/layout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Head from 'next/head'
import Container from '@material-ui/core/Container'
import Container from '@mui/material/Container'
import { Fragment } from 'react'

import Nav from './nav'
Expand Down
10 changes: 5 additions & 5 deletions layouts/nav.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import MuiLink from '@material-ui/core/Link'
import Box from '@material-ui/core/Box'
import Grid from '@material-ui/core/Grid'
import GitHubIcon from '@material-ui/icons/GitHub'
// import SvgIcon from '@material-ui/core/SvgIcon'
import MuiLink from '@mui/material/Link'
import Box from '@mui/material/Box'
import Grid from '@mui/material/Grid'
import GitHubIcon from '@mui/icons-material/GitHub'
// import SvgIcon from '@mui/material/SvgIcon'

// import WtfplSvg from '../assets/svg/wtfpl.svg'
import LogoSvg from '../assets/svg/co2logo.svg'
Expand Down
4 changes: 2 additions & 2 deletions layouts/theme.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createMuiTheme } from '@material-ui/core/styles'
import { createTheme } from '@mui/material/styles'

const options = {
palette: {
Expand Down Expand Up @@ -39,7 +39,7 @@ const options = {
},
}

const theme = createMuiTheme(options)
const theme = createTheme(options)


export default theme
5 changes: 5 additions & 0 deletions lib/createEmotionCache.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import createCache from '@emotion/cache';

export default function createEmotionCache() {
return createCache({ key: 'css' });
}
Loading

0 comments on commit 9cec3c8

Please sign in to comment.