From a95aaca9b4b1eb57861b1c17a4531db010cb46ff Mon Sep 17 00:00:00 2001 From: guusvanmeerveld Date: Sun, 9 May 2021 21:19:04 +0100 Subject: [PATCH] Added prettier --- .prettierignore | 11 +++ package.json | 48 +++++----- public/manifest.json | 30 +++--- src/components/Footer.tsx | 57 ++++++------ src/components/Landing.tsx | 30 +++--- src/components/Layout.tsx | 14 +-- src/components/Navbar.tsx | 38 ++++---- src/components/Page.tsx | 40 ++++---- src/components/Projects.tsx | 173 ++++++++++++++++++----------------- src/pages/404.tsx | 30 +++--- src/pages/_document.tsx | 32 +++---- src/pages/binas.tsx | 52 +++++------ src/pages/index.tsx | 24 ++--- src/pages/thanks.tsx | 32 +++---- src/styles/raleway.css | 73 ++++++++------- src/styles/sass/binas.scss | 42 ++++----- src/styles/sass/contact.scss | 38 ++++---- src/styles/sass/footer.scss | 50 +++++----- src/styles/sass/index.scss | 52 +++++------ src/styles/sass/landing.scss | 48 +++++----- src/styles/sass/nav.scss | 84 ++++++++--------- src/styles/sass/page.scss | 38 ++++---- src/styles/sass/project.scss | 98 ++++++++++---------- src/styles/sass/upload.scss | 2 +- tsconfig.json | 46 +++++----- yarn.lock | 5 + 26 files changed, 606 insertions(+), 581 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..18cc72e --- /dev/null +++ b/.prettierignore @@ -0,0 +1,11 @@ +dist +node_modules +README.md +.vscode +yarn.lock +package-lock.json +LICENSE +.env +.prettierrc +.next +next-env.d.ts \ No newline at end of file diff --git a/package.json b/package.json index 4a687a5..f26745d 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,26 @@ { - "name": "portfolio", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start" - }, - "dependencies": { - "axios": "^0.21.1", - "milligram": "^1.4.1", - "next": "10.0.8", - "next-iron-session": "^4.1.12", - "next-themes": "^0.0.12", - "react": "17.0.1", - "react-dom": "17.0.1", - "react-icons": "^4.2.0", - "sass": "^1.32.8" - }, - "devDependencies": { - "@types/node": "^14.14.32", - "@types/react": "^17.0.3", - "typescript": "^4.2.3" - } + "name": "portfolio", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "pretify": "prettier --write ." + }, + "dependencies": { + "milligram": "^1.4.1", + "next": "10.0.8", + "next-themes": "^0.0.12", + "react": "17.0.1", + "react-dom": "17.0.1", + "react-icons": "^4.2.0", + "sass": "^1.32.8" + }, + "devDependencies": { + "@types/node": "^14.14.32", + "@types/react": "^17.0.3", + "prettier": "^2.2.1", + "typescript": "^4.2.3" + } } diff --git a/public/manifest.json b/public/manifest.json index 7f03146..2d2551c 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,16 +1,16 @@ { - "short_name": "Porfolio", - "name": "Guus van Meerveld's portfolio", - "icons": [ - { - "src": "/img/profile-192.png", - "type": "image/png", - "sizes": "192x192" - } - ], - "background_color": "#FFFFFF", - "display": "standalone", - "scope": "/", - "theme_color": "#9b4dca", - "description": "A simple portfolio website to display my projects." -} \ No newline at end of file + "short_name": "Porfolio", + "name": "Guus van Meerveld's portfolio", + "icons": [ + { + "src": "/img/profile-192.png", + "type": "image/png", + "sizes": "192x192" + } + ], + "background_color": "#FFFFFF", + "display": "standalone", + "scope": "/", + "theme_color": "#9b4dca", + "description": "A simple portfolio website to display my projects." +} diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index c565297..c308f2b 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,32 +1,35 @@ -import { FaTwitter, FaYoutube, FaCoffee, FaGithub } from "react-icons/fa"; +import { FaTwitter, FaYoutube, FaCoffee, FaGithub } from 'react-icons/fa'; const Footer = () => { - const year = new Date().getFullYear(); - return ( - - ); + const year = new Date().getFullYear(); + return ( + + ); }; export default Footer; diff --git a/src/components/Landing.tsx b/src/components/Landing.tsx index 8e6be32..acf2858 100644 --- a/src/components/Landing.tsx +++ b/src/components/Landing.tsx @@ -1,21 +1,21 @@ const Landing = () => ( -
-
- - - +
+
+ + + - Guus van Meerveld - - TypeScript / Dart developer,
- currently working on Argo. -
+ Guus van Meerveld + + TypeScript / Dart developer,
+ currently working on Argo. +
- - Check out my projects - -
-
+ + Check out my projects + +
+
); export default Landing; diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 7963882..4a6919a 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,12 +1,12 @@ -import Navbar from "./Navbar"; -import Footer from "./Footer"; +import Navbar from './Navbar'; +import Footer from './Footer'; const Layout = ({ children }) => ( - <> - - {children} -