diff --git a/src/App.tsx b/src/App.tsx index 2381353..e076988 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,12 @@ import { Authenticated, AuthLoading, Unauthenticated } from 'convex/react' import { Loader2 } from 'lucide-react' -import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom' +import { + BrowserRouter, + Navigate, + Route, + Routes, + useLocation, +} from 'react-router-dom' import { Toaster } from '@/components/ui/sonner' import Navbar from './components/Navbar' import Dashboard from './pages/Dashboard' @@ -9,6 +15,14 @@ import ProfileDetail from './pages/ProfileDetail' import ProfileEditorPage from './pages/ProfileEditorPage' import ProfileFlash from './pages/ProfileFlash' +function ConditionalNavbar() { + const location = useLocation() + if (location.pathname === '/') { + return null + } + return +} + function App() { return ( @@ -19,7 +33,7 @@ function App() { - + } /> } /> @@ -28,7 +42,7 @@ function App() { - + } /> } /> diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx index 3aa0505..018a1ba 100644 --- a/src/pages/LandingPage.tsx +++ b/src/pages/LandingPage.tsx @@ -1,13 +1,16 @@ -import { useQuery } from 'convex/react' +import { useAuthActions } from '@convex-dev/auth/react' +import { Authenticated, Unauthenticated, useQuery } from 'convex/react' import { useNavigate } from 'react-router-dom' import { ProfileCardContent, profileCardClasses, } from '@/components/ProfileCard' +import { Button } from '@/components/ui/button' import { api } from '../../convex/_generated/api' export default function LandingPage() { const navigate = useNavigate() + const { signIn } = useAuthActions() const profiles = useQuery(api.profiles.listPublic) return ( @@ -20,10 +23,32 @@ export default function LandingPage() { Manage your Meshtastic fleet -

+

Create custom profiles, build firmware in the cloud, and flash directly from your browser.

+
+ + + + + + +