diff --git a/frontend/src/components/Navbar.jsx b/frontend/src/components/Navbar.jsx index 2dee3b2..bc34992 100644 --- a/frontend/src/components/Navbar.jsx +++ b/frontend/src/components/Navbar.jsx @@ -1,19 +1,28 @@ -import { AppBar, Toolbar, Typography, Button } from '@mui/material'; +import { AppBar, Toolbar, Typography, Button, Box, useMediaQuery, useTheme } from '@mui/material'; import { Link } from 'react-router-dom'; import { do_login, do_logout } from '../api'; const Navbar = ({ isLoggedIn }) => { + const theme = useTheme(); + const isSmallScreen = useMediaQuery(theme.breakpoints.down("sm")); // Adjust for small screens + return ( - + ReviewIIITH - {isLoggedIn ? ( - <> + + @@ -23,7 +32,7 @@ const Navbar = ({ isLoggedIn }) => { - + ) : ( <>