diff --git a/vinvoor/src/App.tsx b/vinvoor/src/App.tsx index 27477c6..cdebc6f 100644 --- a/vinvoor/src/App.tsx +++ b/vinvoor/src/App.tsx @@ -25,7 +25,9 @@ export const App = () => { minHeight: "100vh", }} > - + + + { const { data: user } = useUser(); const [selectedPage, setSelectedPage] = useState(""); + const showSeasons = useMediaQuery("(min-width:400px)"); const screenSize = { mobile: { xs: "flex", md: "none" }, @@ -42,42 +44,42 @@ export const NavBar = () => { return ( - - - {/* Display either the ZeSS logo or a sandwich menu */} + + {/* Display either the ZeSS logo or a sandwich menu */} + + + + + {user && ( + + )} + + + {/* Display either all the pages or the ZeSS logo */} - - + {user && ( + + )} - {user && ( - - )} - - - {/* Display either all the pages or the ZeSS logo */} - - - {user && ( - - )} + + - - - - {/* Display a season selector */} + {/* Display a season selector */} + {showSeasons && ( { > + )} - {/* Display a dark mode switch and the user menu */} + {/* Display a dark mode switch and the user menu */} - + + - - - - + + + + ); };