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