diff --git a/src/App.tsx b/src/App.tsx index 987586b..8ea022e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,28 @@ import { BrowserRouter, Route, Routes } from "react-router-dom"; import Index from "@/Index"; +import Settings from "./Settings"; +import Layout from "./Layout"; function App() { return ( - } /> + + + + } + /> + + + + } + /> ); diff --git a/src/Index.tsx b/src/Index.tsx index 8dd2bf7..e26ff2e 100644 --- a/src/Index.tsx +++ b/src/Index.tsx @@ -1,17 +1,5 @@ -import ThemeToggle from "./components/theme-toggle"; - function Index() { - return ( -
-
-

The Shape of Sound

- -
-
-
-
{" "} -
- ); + return
; } export default Index; diff --git a/src/Layout.tsx b/src/Layout.tsx new file mode 100644 index 0000000..25ac1e8 --- /dev/null +++ b/src/Layout.tsx @@ -0,0 +1,27 @@ +import ThemeToggle from "@/components/theme-toggle"; +import { Link, useLocation } from "react-router-dom"; +import { Home, Settings } from "lucide-react"; + +export default function Layout({ children }: { children: React.ReactNode }) { + const router = useLocation(); + + return ( +
+
+ +

The Shape of Sound

+ {router.pathname !== "/settings" && ( + + + + )} + {router.pathname !== "/" && ( + + + + )} +
+
{children}
+
+ ); +} diff --git a/src/Settings.tsx b/src/Settings.tsx new file mode 100644 index 0000000..955efef --- /dev/null +++ b/src/Settings.tsx @@ -0,0 +1,7 @@ +export default function Settings() { + return ( +
+

Settings Page

+
+ ); +} diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index d7be2d2..f0dec4b 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -16,7 +16,7 @@ const buttonVariants = cva( "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50", secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", - dummy: "bg-transparent hover:bg-accent/50 dark:hover:bg-accent/30", + dummy: "bg-transparent", link: "text-primary underline-offset-4 hover:underline", }, size: {