Skip to content

Commit

Permalink
Attempt #7
Browse files Browse the repository at this point in the history
  • Loading branch information
macareonie committed Jun 27, 2024
1 parent 856cb19 commit 2fa3b12
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "me",
"hostpage": "https://macareonie.github.io/me",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
8 changes: 4 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import Footer from "./components/footer/Footer";
function App() {
return (
<div>
<Router>
<Router basename={"/"}>
<NavBar />
<Routes>
<Route exact path="/me/" element={<Home />} />
<Route exact path="/me/about" element={<About />} />
<Route exact path="/me/foodblog" element={<FoodBlog />} />
<Route exact path="/" element={<Home />} />
<Route exact path="/about" element={<About />} />
<Route exact path="/foodblog" element={<FoodBlog />} />
<Route exact path="*" element={<div>Page Not Found</div>} />
</Routes>
</Router>
Expand Down
6 changes: 3 additions & 3 deletions src/components/header/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
import { Bars3Icon, BellIcon, XMarkIcon } from "@heroicons/react/24/outline";

const navigation = [
{ name: "Home", href: "/me/", current: true },
{ name: "About Me", href: "/me/about", current: false },
{ name: "Food Blog", href: "/me/foodblog", current: false },
{ name: "Home", href: "/", current: true },
{ name: "About Me", href: "/about", current: false },
{ name: "Food Blog", href: "/foodblog", current: false },
];

function classNames(...classes) {
Expand Down
3 changes: 1 addition & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "/me/",
publicDir: "public",
base: "./",
});

0 comments on commit 2fa3b12

Please sign in to comment.