diff --git a/apps/web/src/components/NotFound.tsx b/apps/web/src/components/NotFound.tsx new file mode 100644 index 0000000..be4219d --- /dev/null +++ b/apps/web/src/components/NotFound.tsx @@ -0,0 +1,43 @@ +import { Link } from "@tanstack/react-router"; + +export default function NotFound() { + return ( +
+
+
+
+
+ +
+ + lost in translation + +
+ +

+ 4 + + 0 + + 4 +

+ +

+ This page doesn't exist. Maybe it never did - or maybe you{" "} + + just guessed wrong + + . +

+ +
+ + Back to home + +
+
+ ); +} diff --git a/apps/web/src/components/landing/Hero.tsx b/apps/web/src/components/landing/Hero.tsx index 6a6de87..81f7bba 100644 --- a/apps/web/src/components/landing/Hero.tsx +++ b/apps/web/src/components/landing/Hero.tsx @@ -7,8 +7,8 @@ const Hero = () => { return (
-
-
+
+
@@ -28,9 +28,11 @@ const Hero = () => {

- A word appears. You pick the translation. You score points. - Then you queue up a room and{" "} - beat friends{" "} + A word appears. You pick the translation. You score points. Then you + queue up a room and{" "} + + beat friends + {" "} in real time.

diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsx index 1dc4378..4dcdf3c 100644 --- a/apps/web/src/routes/__root.tsx +++ b/apps/web/src/routes/__root.tsx @@ -1,6 +1,7 @@ import { createRootRoute, Outlet } from "@tanstack/react-router"; import { TanStackRouterDevtools } from "@tanstack/react-router-devtools"; import Navbar from "../components/navbar/NavBar"; +import NotFound from "../components/NotFound"; const RootLayout = () => { return ( @@ -14,4 +15,7 @@ const RootLayout = () => { ); }; -export const Route = createRootRoute({ component: RootLayout }); +export const Route = createRootRoute({ + component: RootLayout, + notFoundComponent: NotFound, +});