Skip to content

Commit

Permalink
Attempt #8
Browse files Browse the repository at this point in the history
  • Loading branch information
macareonie committed Jun 27, 2024
1 parent 490754f commit 57f6c7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import Footer from "./components/footer/Footer";
function App() {
return (
<div>
<Router basename={"/"}>
<Router basename={"/me"}>
<NavBar />
<Routes>
<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>} />
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/foodblog" element={<FoodBlog />} />
<Route path="*" element={<div>Page Not Found</div>} />
</Routes>
</Router>
<Footer />
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { Bars3Icon, BellIcon, XMarkIcon } from "@heroicons/react/24/outline";

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

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

0 comments on commit 57f6c7c

Please sign in to comment.