Restructures navigation into a components folder and adds Over mij route

Moves AppShell out of src/shared into a top-level components folder alongside the new Footer and NavigationBar, replaces the about page with over-mij.tsx, and drops the unused counter.ts.
This commit is contained in:
2026-10-02 00:18:44 +02:00
parent b3b78e7d6f
commit ce4aeb7e9c
9 changed files with 65 additions and 58 deletions
+6 -14
View File
@@ -1,20 +1,12 @@
import { createRootRoute, Link, Outlet } from '@tanstack/react-router'
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
import { createRootRoute } from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
import AppShell from "../../components/AppShell";
const RootLayout = () => (
<>
<div className="p-2 flex gap-2">
<Link to="/" className="[&.active]:font-bold">
Home
</Link>{' '}
<Link to="/about" className="[&.active]:font-bold">
About
</Link>
</div>
<hr />
<Outlet />
<AppShell />
<TanStackRouterDevtools />
</>
)
);
export const Route = createRootRoute({ component: RootLayout })
export const Route = createRootRoute({ component: RootLayout });
-9
View File
@@ -1,9 +0,0 @@
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/about')({
component: About,
})
function About() {
return <div className="p-2">Hello from About!</div>
}
+10 -9
View File
@@ -1,13 +1,14 @@
import { createFileRoute } from '@tanstack/react-router'
import { Heading } from '@chakra-ui/react';
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute('/')({
component: Index,
})
component: Index,
});
function Index() {
return (
<div className="p-2">
<h3>Welcome Home!</h3>
</div>
)
}
return (
<div className="p-2">
<Heading>Welcome Home!</Heading>
</div>
);
}
+9
View File
@@ -0,0 +1,9 @@
import { createFileRoute } from "@tanstack/react-router";
export const Route = createFileRoute("/over-mij")({
component: About,
});
function About() {
return <div className="p-2">Hello from About!</div>;
}