From d89838c4e953cfacd9b448bbc8634fc4f1ede85e Mon Sep 17 00:00:00 2001 From: bobgus39 Date: Tue, 16 Jan 2024 17:05:36 +0100 Subject: [PATCH] 7 --- ...b.com!bobgus39!marielWebPage.github.io.git | 1 + node_modules/.vite/deps/_metadata.json | 20 +++++++++---------- package.json | 3 +-- src/App.jsx | 10 ++++++++-- src/components/Header.jsx | 12 ++++++++--- vite.config.js | 7 ++++--- 6 files changed, 33 insertions(+), 20 deletions(-) create mode 160000 node_modules/.cache/gh-pages/git@github.com!bobgus39!marielWebPage.github.io.git diff --git a/node_modules/.cache/gh-pages/git@github.com!bobgus39!marielWebPage.github.io.git b/node_modules/.cache/gh-pages/git@github.com!bobgus39!marielWebPage.github.io.git new file mode 160000 index 0000000..8cf4a07 --- /dev/null +++ b/node_modules/.cache/gh-pages/git@github.com!bobgus39!marielWebPage.github.io.git @@ -0,0 +1 @@ +Subproject commit 8cf4a07f1628ca925b60e2def82abf657d5b9322 diff --git a/node_modules/.vite/deps/_metadata.json b/node_modules/.vite/deps/_metadata.json index c2a9457..42ab359 100644 --- a/node_modules/.vite/deps/_metadata.json +++ b/node_modules/.vite/deps/_metadata.json @@ -1,43 +1,43 @@ { - "hash": "fb398d08", - "configHash": "6926a29b", - "lockfileHash": "2e31aea4", - "browserHash": "a36716d3", + "hash": "3faf3143", + "configHash": "5e0c9c72", + "lockfileHash": "1e8ecdf9", + "browserHash": "afbfde9c", "optimized": { "react": { "src": "../../react/index.js", "file": "react.js", - "fileHash": "c3502dc7", + "fileHash": "e4a083c6", "needsInterop": true }, "react/jsx-dev-runtime": { "src": "../../react/jsx-dev-runtime.js", "file": "react_jsx-dev-runtime.js", - "fileHash": "8eea0ee7", + "fileHash": "5ed1fba0", "needsInterop": true }, "react/jsx-runtime": { "src": "../../react/jsx-runtime.js", "file": "react_jsx-runtime.js", - "fileHash": "ff5825ed", + "fileHash": "2354422d", "needsInterop": true }, "react-dom/client": { "src": "../../react-dom/client.js", "file": "react-dom_client.js", - "fileHash": "a2c01a0a", + "fileHash": "25eec84f", "needsInterop": true }, "react-leaflet": { "src": "../../react-leaflet/lib/index.js", "file": "react-leaflet.js", - "fileHash": "19b2a344", + "fileHash": "a3fdf63d", "needsInterop": false }, "react-router-dom": { "src": "../../react-router-dom/dist/index.js", "file": "react-router-dom.js", - "fileHash": "fd177ae4", + "fileHash": "529dc993", "needsInterop": false } }, diff --git a/package.json b/package.json index ae75e67..a40fdd4 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,11 @@ { "name": "mariu", "private": true, - "homepage": "http://marielWebPage.github.io", "version": "0.0.0", "type": "module", "scripts": { "predeploy": "npm run build", - "deploy": "gh-pages -d build", + "deploy": "gh-pages -d dist", "dev": "vite", "build": "vite build", "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", diff --git a/src/App.jsx b/src/App.jsx index 3653a63..2943c8f 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -9,8 +9,14 @@ function App() { <> - }> - }> + } + > + } + > diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 147cbc2..e0805bf 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -5,7 +5,7 @@ import { NavLink, useLocation } from "react-router-dom"; function Header() { const [menu, setMenu] = useState(true); const location = useLocation(); - + console.log(location); useEffect(() => { const handleResize = () => { const width = window.innerWidth; @@ -66,7 +66,9 @@ function Header() {
  • @@ -75,7 +77,11 @@ function Header() {
  • Menu diff --git a/vite.config.js b/vite.config.js index 5a33944..aa326e1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,8 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], -}) + base: "http://bobgus39.github.io/marielWebPage.github.io", +});