From 4e6f571f2cf60ffdf9e8e7d270d282c81a78c8db Mon Sep 17 00:00:00 2001 From: Felipe Ricardo Date: Sat, 7 Feb 2026 09:59:56 -0300 Subject: [PATCH] v1.1.1 --- package.json | 2 +- src/App.tsx | 2 ++ src/components/command-step.tsx | 7 +++++- src/components/mode-toggle.tsx | 2 +- src/pages/Builder.tsx | 33 ++++++++++++++++++++++------ src/pages/LandingPage.tsx | 38 ++++++++++++++++++++++----------- src/pages/NotFound.tsx | 25 ++++++++++++++++++++++ vercel.json | 3 +++ 8 files changed, 91 insertions(+), 21 deletions(-) create mode 100644 src/pages/NotFound.tsx create mode 100644 vercel.json diff --git a/package.json b/package.json index 6425076..689619d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "stack-builder", "private": true, - "version": "1.1.0", + "version": "1.1.1", "type": "module", "scripts": { "dev": "vite", diff --git a/src/App.tsx b/src/App.tsx index 3035ae3..b170dd0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,6 +3,7 @@ import Buildpage from "./pages/Builder"; import LandingPage from "./pages/LandingPage"; import i18n from "./i18n"; import { useEffect } from "react"; +import NotFound from "./pages/NotFound"; function LangLayout() { const { lang } = useParams(); @@ -33,6 +34,7 @@ function LangLayout() { } /> } /> + } /> ); } diff --git a/src/components/command-step.tsx b/src/components/command-step.tsx index e9a17b7..b5c9ca7 100644 --- a/src/components/command-step.tsx +++ b/src/components/command-step.tsx @@ -35,7 +35,12 @@ export default function CommandStep({ step, index }: CommandStepProps) { {step.label} - @@ -554,7 +557,7 @@ function ShareDialog({ selections }: { selections: Set }) {
- @@ -785,7 +793,12 @@ export default function BuilderPage() { - @@ -795,7 +808,10 @@ export default function BuilderPage() { - @@ -837,7 +853,12 @@ export default function BuilderPage() { {t("command_label")} - @@ -354,7 +368,7 @@ export default function LandingPage() {

{t("join_thousands")}

- @@ -364,7 +378,7 @@ export default function LandingPage() { target="_blank" rel="noopener noreferrer" > - diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx new file mode 100644 index 0000000..301e11c --- /dev/null +++ b/src/pages/NotFound.tsx @@ -0,0 +1,25 @@ +import { Link, useLocation } from "react-router-dom"; +import { useEffect } from "react"; + +const NotFound = () => { + const location = useLocation(); + + useEffect(() => { + console.error( + "404 Error: User attempted to access non-existent route:", + location.pathname, + ); + }, [location.pathname]); + + return ( +
+

404

+

Oops! Page not found

+ + Return to Home + +
+ ); +}; + +export default NotFound; diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..3a48e56 --- /dev/null +++ b/vercel.json @@ -0,0 +1,3 @@ +{ + "rewrites": [{ "source": "/(.*)", "destination": "/" }] +}