Skip to content

Commit

Permalink
altered routes to properly render, removed unused packages from packa…
Browse files Browse the repository at this point in the history
…ge.json. Added _redirects file on last commit for netlify deployment
  • Loading branch information
matthewtodor committed Apr 18, 2023
1 parent 757153a commit 4f8c569
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 179 deletions.
150 changes: 0 additions & 150 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"@types/node": "^18.11.18",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"dotenv": "^16.0.3",
"dotenv-webpack": "^8.0.1",
"fs": "^0.0.1-security",
"os": "^0.1.2",
"path": "^0.12.7",
"react": "^18.0.0",
"react-code-blocks": "^0.0.9-0",
"react-dom": "^18.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import "@fontsource/raleway";

import "./App.css";
import Footer from "./components/footer/footer";
import Nav from "./components/nav/nav";
const theme = createTheme({
palette: {
mode: "dark",
Expand Down Expand Up @@ -43,6 +44,7 @@ function App() {
<CssBaseline />
{/* this is here to keep the footer at the bottom of the page */}
<div className="container">
<Nav />
<Outlet />
</div>
<Footer />
Expand Down
41 changes: 17 additions & 24 deletions src/routes/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createBrowserRouter } from "react-router-dom";
import App from "../App";
import Nav from "../components/nav/nav";
import Home from "../components/pages/home/home";
import Portfolio from "../components/pages/portfolio/portfolio";
import Algorithms from "../components/pages/algorithms/algorithms";
Expand All @@ -14,29 +13,23 @@ const router = createBrowserRouter([
children: [
{
path: "/",
element: <Nav />,
children: [
{
path: "/",
element: <Home />,
},
{
path: "portfolio",
element: <Portfolio />,
},
{
path: "algorithms",
element: <Algorithms />,
},
{
path: "resume",
element: <Resume />,
},
{
path: "contact",
element: <Contact />,
},
],
element: <Home />,
},
{
path: "portfolio",
element: <Portfolio />,
},
{
path: "algorithms",
element: <Algorithms />,
},
{
path: "resume",
element: <Resume />,
},
{
path: "contact",
element: <Contact />,
},
],
},
Expand Down

0 comments on commit 4f8c569

Please sign in to comment.