From a82c1d84163430504157a47f7a21c4d68ec09953 Mon Sep 17 00:00:00 2001 From: Divlo Date: Wed, 18 Mar 2020 16:26:18 +0100 Subject: [PATCH] frontend: Mise en place de NextJS --- frontend/.gitignore | 10 +- .../{src => }/components/Footer/Footer.js | 2 - frontend/components/HeadTag.js | 34 + .../{src => }/components/Header/Header.css | 3 +- .../{src => }/components/Header/Header.js | 14 +- frontend/components/Header/NavigationLink.js | 18 + frontend/components/Layout.js | 22 + frontend/next.config.js | 3 + frontend/package-lock.json | 11201 +++------------- frontend/package.json | 44 +- frontend/pages/_document.js | 22 + frontend/pages/index.js | 15 + .../{src/assets => public}/css/general.css | 7 +- frontend/{src/assets => public}/css/grid.css | 0 frontend/public/css/normalize.css | 349 + frontend/public/favicon.ico | Bin 3150 -> 0 bytes .../public/fonts/Montserrat/Montserrat.css | 217 + .../files/montserrat-latin-100.woff | Bin 0 -> 22500 bytes .../files/montserrat-latin-100.woff2 | Bin 0 -> 18376 bytes .../files/montserrat-latin-100italic.woff | Bin 0 -> 22888 bytes .../files/montserrat-latin-100italic.woff2 | Bin 0 -> 18644 bytes .../files/montserrat-latin-200.woff | Bin 0 -> 23276 bytes .../files/montserrat-latin-200.woff2 | Bin 0 -> 18968 bytes .../files/montserrat-latin-200italic.woff | Bin 0 -> 23756 bytes .../files/montserrat-latin-200italic.woff2 | Bin 0 -> 19292 bytes .../files/montserrat-latin-300.woff | Bin 0 -> 23256 bytes .../files/montserrat-latin-300.woff2 | Bin 0 -> 18988 bytes .../files/montserrat-latin-300italic.woff | Bin 0 -> 23744 bytes .../files/montserrat-latin-300italic.woff2 | Bin 0 -> 19388 bytes .../files/montserrat-latin-400.woff | Bin 0 -> 23480 bytes .../files/montserrat-latin-400.woff2 | Bin 0 -> 19172 bytes .../files/montserrat-latin-400italic.woff | Bin 0 -> 24012 bytes .../files/montserrat-latin-400italic.woff2 | Bin 0 -> 19660 bytes .../files/montserrat-latin-500.woff | Bin 0 -> 23576 bytes .../files/montserrat-latin-500.woff2 | Bin 0 -> 19272 bytes .../files/montserrat-latin-500italic.woff | Bin 0 -> 24056 bytes .../files/montserrat-latin-500italic.woff2 | Bin 0 -> 19624 bytes .../files/montserrat-latin-600.woff | Bin 0 -> 23628 bytes .../files/montserrat-latin-600.woff2 | Bin 0 -> 19264 bytes .../files/montserrat-latin-600italic.woff | Bin 0 -> 24148 bytes .../files/montserrat-latin-600italic.woff2 | Bin 0 -> 19816 bytes .../files/montserrat-latin-700.woff | Bin 0 -> 23836 bytes .../files/montserrat-latin-700.woff2 | Bin 0 -> 19480 bytes .../files/montserrat-latin-700italic.woff | Bin 0 -> 24440 bytes .../files/montserrat-latin-700italic.woff2 | Bin 0 -> 19916 bytes .../files/montserrat-latin-800.woff | Bin 0 -> 23872 bytes .../files/montserrat-latin-800.woff2 | Bin 0 -> 19440 bytes .../files/montserrat-latin-800italic.woff | Bin 0 -> 24404 bytes .../files/montserrat-latin-800italic.woff2 | Bin 0 -> 19836 bytes .../files/montserrat-latin-900.woff | Bin 0 -> 23764 bytes .../files/montserrat-latin-900.woff2 | Bin 0 -> 19240 bytes .../files/montserrat-latin-900italic.woff | Bin 0 -> 24096 bytes .../files/montserrat-latin-900italic.woff2 | Bin 0 -> 19676 bytes .../images/FunctionProject_brand-logo.png | Bin .../images/FunctionProject_icon.png | Bin .../images/FunctionProject_icon_small.png | Bin 0 -> 4318 bytes frontend/public/index.html | 17 - frontend/public/logo192.png | Bin 5347 -> 0 bytes frontend/public/logo512.png | Bin 9664 -> 0 bytes frontend/public/manifest.json | 25 - frontend/public/robots.txt | 3 - .../src/components/Header/NavigationLink.js | 22 - frontend/src/index.js | 35 - frontend/src/pages/Home/Home.js | 9 - 64 files changed, 2755 insertions(+), 9317 deletions(-) rename frontend/{src => }/components/Footer/Footer.js (78%) create mode 100644 frontend/components/HeadTag.js rename frontend/{src => }/components/Header/Header.css (98%) rename frontend/{src => }/components/Header/Header.js (69%) create mode 100644 frontend/components/Header/NavigationLink.js create mode 100644 frontend/components/Layout.js create mode 100644 frontend/next.config.js create mode 100644 frontend/pages/_document.js create mode 100644 frontend/pages/index.js rename frontend/{src/assets => public}/css/general.css (88%) rename frontend/{src/assets => public}/css/grid.css (100%) create mode 100644 frontend/public/css/normalize.css delete mode 100644 frontend/public/favicon.ico create mode 100644 frontend/public/fonts/Montserrat/Montserrat.css create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-100.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-100.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-100italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-100italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-200.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-200.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-200italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-200italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-300.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-300.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-300italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-300italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-400.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-400.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-400italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-400italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-500.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-500.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-500italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-500italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-600.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-600.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-600italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-600italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-700.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-700.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-700italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-700italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-800.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-800.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-800italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-800italic.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-900.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-900.woff2 create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-900italic.woff create mode 100644 frontend/public/fonts/Montserrat/files/montserrat-latin-900italic.woff2 rename frontend/{src/assets => public}/images/FunctionProject_brand-logo.png (100%) rename frontend/{src/assets => public}/images/FunctionProject_icon.png (100%) create mode 100644 frontend/public/images/FunctionProject_icon_small.png delete mode 100644 frontend/public/index.html delete mode 100644 frontend/public/logo192.png delete mode 100644 frontend/public/logo512.png delete mode 100644 frontend/public/manifest.json delete mode 100644 frontend/public/robots.txt delete mode 100644 frontend/src/components/Header/NavigationLink.js delete mode 100644 frontend/src/index.js delete mode 100644 frontend/src/pages/Home/Home.js diff --git a/frontend/.gitignore b/frontend/.gitignore index 4d29575..922d92a 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -8,16 +8,18 @@ # testing /coverage +# next.js +/.next/ +/out/ + # production /build # misc .DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local +.env* +# debug npm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/frontend/src/components/Footer/Footer.js b/frontend/components/Footer/Footer.js similarity index 78% rename from frontend/src/components/Footer/Footer.js rename to frontend/components/Footer/Footer.js index fda4db8..ad82cb7 100644 --- a/frontend/src/components/Footer/Footer.js +++ b/frontend/components/Footer/Footer.js @@ -1,5 +1,3 @@ -import React from 'react'; - export default function Footer() { return (