{message}
-{details}
+{message}
+{details}
++ Take me{" "} + + home + +
{stack && (
{stack}
diff --git a/app/routes.ts b/app/routes.ts
index 102b402..992d712 100644
--- a/app/routes.ts
+++ b/app/routes.ts
@@ -1,3 +1,10 @@
-import { type RouteConfig, index } from "@react-router/dev/routes";
+import {
+ type RouteConfig,
+ index,
+ layout,
+ route,
+} from "@react-router/dev/routes";
-export default [index("routes/home.tsx")] satisfies RouteConfig;
+export default [
+ layout("./templates/base.tsx", [index("./routes/home.tsx")]),
+] satisfies RouteConfig;
diff --git a/app/routes/home.tsx b/app/routes/home.tsx
index 398e47c..5f8da5e 100644
--- a/app/routes/home.tsx
+++ b/app/routes/home.tsx
@@ -1,13 +1,10 @@
import type { Route } from "./+types/home";
-import { Welcome } from "../welcome/welcome";
+import HomePage from "../pages/home";
export function meta({}: Route.MetaArgs) {
- return [
- { title: "New React Router App" },
- { name: "description", content: "Welcome to React Router!" },
- ];
+ return [{ title: "Home" }];
}
export default function Home() {
- return ;
+ return ;
}
diff --git a/app/templates/base.tsx b/app/templates/base.tsx
new file mode 100644
index 0000000..8e0e10b
--- /dev/null
+++ b/app/templates/base.tsx
@@ -0,0 +1,11 @@
+import { Outlet } from "react-router";
+import Navbar from "../components/navbar";
+
+export default function Base() {
+ return (
+ <>
+
+
+ >
+ );
+}
diff --git a/app/welcome/logo-dark.svg b/app/welcome/logo-dark.svg
deleted file mode 100644
index dd82028..0000000
--- a/app/welcome/logo-dark.svg
+++ /dev/null
@@ -1,23 +0,0 @@
-
diff --git a/app/welcome/logo-light.svg b/app/welcome/logo-light.svg
deleted file mode 100644
index 7328492..0000000
--- a/app/welcome/logo-light.svg
+++ /dev/null
@@ -1,23 +0,0 @@
-
diff --git a/app/welcome/welcome.tsx b/app/welcome/welcome.tsx
deleted file mode 100644
index 8ac6e1d..0000000
--- a/app/welcome/welcome.tsx
+++ /dev/null
@@ -1,89 +0,0 @@
-import logoDark from "./logo-dark.svg";
-import logoLight from "./logo-light.svg";
-
-export function Welcome() {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-const resources = [
- {
- href: "https://reactrouter.com/docs",
- text: "React Router Docs",
- icon: (
-
- ),
- },
- {
- href: "https://rmx.as/discord",
- text: "Join Discord",
- icon: (
-
- ),
- },
-];
diff --git a/package.json b/package.json
index c3a43a7..11e45e7 100644
--- a/package.json
+++ b/package.json
@@ -27,5 +27,10 @@
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vite-tsconfig-paths": "^5.1.4"
+ },
+ "pnpm": {
+ "onlyBuiltDependencies": [
+ "esbuild"
+ ]
}
}
\ No newline at end of file