Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
avo committed Oct 27, 2024
1 parent e3aab97 commit 3fa83e5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 37 deletions.
13 changes: 13 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home: Anna Vo - Frontend Developer</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"typescript-eslint": "^8.11.0",
"vite": "^5.4.10"
},
"homepage": "https://avo.github.io/",
"homepage": "https://annavo.dev/",
"packageManager": "yarn@4.5.1"
}
69 changes: 33 additions & 36 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,39 @@ import { baseStyle } from './styles/Base';
import { elementStyle } from './styles/Element';
import { themeStyle } from './styles/Theme';

const router = createBrowserRouter(
[
{
children: [
{
element: <About />,
index: true,
},
{
element: <About />,
path: '/about',
},
{
element: <AboutSite />,
path: '/about/site',
},
{
element: <Newness />,
path: '/blog',
},
{
element: <Error />,
path: '/error',
},
{
element: <Unknown />,
path: '*',
},
],
element: <Root />,
errorElement: <Error />,
path: '/',
},
],
{ basename: import.meta.env.DEV ? '/' : '/' }
);
const router = createBrowserRouter([
{
children: [
{
element: <About />,
index: true,
},
{
element: <About />,
path: '/about',
},
{
element: <AboutSite />,
path: '/about/site',
},
{
element: <Newness />,
path: '/blog',
},
{
element: <Error />,
path: '/error',
},
{
element: <Unknown />,
path: '*',
},
],
element: <Root />,
errorElement: <Error />,
path: '/',
},
]);

function App() {
return (
Expand Down

0 comments on commit 3fa83e5

Please sign in to comment.