Skip to content

Commit

Permalink
Update now
Browse files Browse the repository at this point in the history
  • Loading branch information
ababol committed Dec 31, 2020
1 parent c084787 commit 699b3fe
Show file tree
Hide file tree
Showing 84 changed files with 1,826 additions and 5,385 deletions.
27 changes: 0 additions & 27 deletions .babelrc

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
yarn-error.log
.next
.DS_Store
.DS_Store
.now
.vercel
30 changes: 0 additions & 30 deletions next.config.js

This file was deleted.

15 changes: 0 additions & 15 deletions now.json

This file was deleted.

32 changes: 7 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,22 @@
"main": "index.js",
"private": true,
"scripts": {
"dev": "node server.js",
"dev": "next dev",
"build": "next build",
"now-build": "next build",
"start": "NODE_ENV=production node server.js",
"deploy": "now --target production"
"deploy": "vc --prod"
},
"author": "",
"license": "ISC",
"dependencies": {
"@zeit/next-bundle-analyzer": "^0.1.2",
"@zeit/next-sass": "^1.0.1",
"classnames": "^2.2.6",
"express": "^4.16.4",
"isomorphic-fetch": "^2.2.1",
"jump.js": "^1.0.2",
"next": "^8.1.0",
"next-compose-plugins": "^2.2.0",
"next-offline": "^3.3.8",
"node-sass": "^4.12.0",
"react": "^16.8.6",
"react-dom": "^16.8.6"
"next": "^10.0.4",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"sass": "^1.32.0"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-plugin-inline-react-svg": "^1.1.0",
"eslint": "^5.10.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^22.1.2",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-react": "^7.11.1",
"prettier": "^1.15.3",
"prettier-eslint-cli": "^4.7.1"
"prettier": "^2.2.1"
}
}
13 changes: 11 additions & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@ import React from 'react';
import Nav from '../src/components/Nav';
import Footer from '../src/components/Footer';
import '../src/stylesheets/index.scss';
import Head from 'next/head';

export default class MyApp extends App {
render() {
const { Component, pageProps } = this.props;

return (
<Container>
<>
<Head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1, minimal-ui, shrink-to-fit=no"
/>
</Head>
<Nav />
<Component {...pageProps} />
<Footer />
</Container>
</>
);
}
}
12 changes: 3 additions & 9 deletions pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import Document, { Html, Head, Main, NextScript } from 'next/document';
import HeadFavicon from '../src/components/HeadFavicon';
import HeadMeta from '../src/components/HeadMeta';
import Fonts from '../src/components/Fonts';
Expand All @@ -8,14 +8,8 @@ import HeadAnalytics from '../src/components/HeadAnalytics';
export default class MyDocument extends Document {
render() {
return (
<html lang="en">
<Html lang="en">
<Head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1, minimal-ui, shrink-to-fit=no"
/>
<HeadMeta />
<HeadFavicon />
<HeadAnalytics />
Expand All @@ -25,7 +19,7 @@ export default class MyDocument extends Document {
<NextScript />
<Fonts />
</body>
</html>
</Html>
);
}
}
Loading

0 comments on commit 699b3fe

Please sign in to comment.