From de65e93e8858965a1b159fc88f5be65e2e674b2f Mon Sep 17 00:00:00 2001 From: Audrey Lebret Date: Tue, 3 Aug 2021 14:46:52 +0200 Subject: [PATCH 01/25] =?UTF-8?q?feat(saisir=20coordonn=C3=A9es):=20Initia?= =?UTF-8?q?lisation=20du=20menu=20&=20footer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 27 +- pages/_app.js | 39 ++ pages/index.js | 228 +------ public/img/logo-1000j.png | Bin 0 -> 6729 bytes src/bootstrap-theme.scss | 6 + src/components/Footer.js | 59 ++ src/components/Layout.js | 20 + src/components/Nav.js | 42 ++ src/main.scss | 21 + yarn.lock | 1282 ++++++++++++++++++++++++++++++++++++- 10 files changed, 1503 insertions(+), 221 deletions(-) create mode 100644 pages/_app.js create mode 100644 public/img/logo-1000j.png create mode 100644 src/bootstrap-theme.scss create mode 100644 src/components/Footer.js create mode 100644 src/components/Layout.js create mode 100644 src/components/Nav.js create mode 100644 src/main.scss diff --git a/package.json b/package.json index 28167d2..dacf069 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,36 @@ { - "name": "learn-starter", + "name": "nos1000jours-web-pro", "version": "0.1.0", "private": true, + "license": "MIT", + "repository": "https://github.com/SocialGouv/nos1000jours-web-pro", "scripts": { "dev": "next dev", "build": "next build", "start": "next start" }, "dependencies": { + "bootstrap": "^4.6.0", "next": "^11.0.0", "react": "17.0.2", - "react-dom": "17.0.2" + "react-bootstrap": "^1.5.2", + "react-dom": "17.0.2", + "react-leaflet": "^3.1.0", + "sass": "^1.32.10", + "styled-components": "^5.2.3" + }, + "devDependencies": { + "@socialgouv/eslint-config-react": "^1.61.0" + }, + "eslintConfig": { + "rules": { + "react/prop-types": "warn", + "simple-import-sort/sort": "off", + "jsx-a11y/anchor-is-valid": "warn", + "react/no-unescaped-entities": "warn" + }, + "extends": [ + "@socialgouv/eslint-config-react" + ] } -} +} \ No newline at end of file diff --git a/pages/_app.js b/pages/_app.js new file mode 100644 index 0000000..9b86b2f --- /dev/null +++ b/pages/_app.js @@ -0,0 +1,39 @@ +import "bootstrap/dist/css/bootstrap.css"; +import "../src/bootstrap-theme.scss"; +import "../src/main.scss"; + +import App from "next/app"; +import Head from "next/head"; +import React from "react"; +import { ThemeProvider } from "styled-components"; + +const theme = { + colors: {}, +}; + +class MyApp extends App { + render() { + const { Component, pageProps } = this.props; + return ( + + + + + + + + + + + ); + } +} + +export default MyApp; + diff --git a/pages/index.js b/pages/index.js index 0443431..9d72320 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,209 +1,33 @@ -import Head from 'next/head' +import React from "react"; -export default function Home() { - return ( -
- - Create Next App - - - -
-

- Welcome to Next.js! -

- -

- Get started by editing pages/index.js -

- -
- -

Documentation →

-

Find in-depth information about Next.js features and API.

-
- - -

Learn →

-

Learn about Next.js in an interactive course with quizzes!

-
- - -

Examples →

-

Discover and deploy boilerplate example Next.js projects.

-
- - -

Deploy →

-

- Instantly deploy your Next.js site to a public URL with Vercel. -

-
-
-
- - - - +function Home() { + return ( +
- + +); diff --git a/public/img/logo-1000j.png b/public/img/logo-1000j.png new file mode 100644 index 0000000000000000000000000000000000000000..2aeb2d221f06656c790cd3075519cf67ae98d6a8 GIT binary patch literal 6729 zcmbVRRZtuXti|2kcX24iodt>&7ARJvxR%1=(&D$xHzU=#mm zhzMyJ6#tTlt{)X-5Gp5V4*mrwR?;fc2nf|N*iUAt2ndwxigMCg9*8GK*cqhS&##%O z%`v{GNKphi9PIBafia!_yw9y2Z;nj#o0VUNWlD+@J{0iew^(AKn3bnNG4F~=*f#VP zp#?GlSTY?1(x`e;H|^fH>mdI9*T*%Gdo##=V$AY(z5V#rzr!bV*?S_@^~>+4iPIe2=sT2T3&P}}mP3mU7G zWA`%I_*@aJeW#;QN(KWJ4PoFr+Y5c%sr!Q*0m=X?b?ME}jV%`l?>pfc0UIax0^Z>- zeUSOdb%DLi4eyA5LHw zVPM(fjFyphV*7$Sh__O8*_B}88-L=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