From dd2d5a64149f99d3270dcda48485e54126e15663 Mon Sep 17 00:00:00 2001 From: kudindmitriy Date: Thu, 23 Apr 2026 13:21:18 +0300 Subject: [PATCH] Bob AI: Add a link to the '/products' page in the main navigation me --- src/App.tsx | 9 ++++++--- src/components/layout/MainLayout.tsx | 13 +++++++++++++ src/components/ui/Navbar.tsx | 24 ++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 src/components/layout/MainLayout.tsx create mode 100644 src/components/ui/Navbar.tsx diff --git a/src/App.tsx b/src/App.tsx index cc2eba5..6b28193 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,12 +1,15 @@ import { Routes, Route } from "react-router-dom"; import HomePage from "@/pages/HomePage"; import ProductsPage from "@/pages/ProductsPage"; +import MainLayout from "@/components/layout/MainLayout"; export default function App() { return ( - } /> - } /> + }> + } /> + } /> + ); -} +} \ No newline at end of file diff --git a/src/components/layout/MainLayout.tsx b/src/components/layout/MainLayout.tsx new file mode 100644 index 0000000..5c0fb9d --- /dev/null +++ b/src/components/layout/MainLayout.tsx @@ -0,0 +1,13 @@ +import { Outlet } from "react-router-dom"; +import Navbar from "@/components/ui/Navbar"; + +export default function MainLayout() { + return ( + <> + +
+ +
+ + ); +} \ No newline at end of file diff --git a/src/components/ui/Navbar.tsx b/src/components/ui/Navbar.tsx new file mode 100644 index 0000000..3736436 --- /dev/null +++ b/src/components/ui/Navbar.tsx @@ -0,0 +1,24 @@ +import { Link, NavLink } from "react-router-dom"; + +export default function Navbar() { + const navLinkClasses = ({ isActive }: { isActive: boolean }) => + `text-base transition-colors hover:text-[color:var(--primary-cta)] ${isActive ? 'text-[color:var(--primary-cta)]' : 'text-[color:var(--foreground)]'}`; + + return ( +
+
+ + ACME + + +
+
+ ); +} \ No newline at end of file -- 2.49.1