Skip to content

Commit

Permalink
add a navtob at the top screen in mobile
Browse files Browse the repository at this point in the history
relates #18
  • Loading branch information
hassanelnajjar committed Feb 16, 2021
1 parent 2bc8977 commit 8c5123f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/src/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import DesktopNavBar from '../components/DesktopNavBar';
import Footer from '../components/Footer';
import './style.css';
import AllFoodList from '../Pages/FoodList';
import NavBar from '../components/NavBar';

function App() {
return (
Expand All @@ -35,6 +36,7 @@ function App() {
<Provider>
<Router>
<DesktopNavBar />
<NavBar />
<Switch>
<Route exact path={Home} component={HomePage} />
<Route exact path={Login} component={LoginPage} />
Expand Down
5 changes: 3 additions & 2 deletions client/src/components/DesktopNavBar/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { makeStyles } from '@material-ui/core/styles';

const useStyles = makeStyles((theme) => ({
navbar: {
display: 'none',
width: '100%',
height: '3rem',
backgroundColor: theme.customColors[3],
'@media (min-device-width: 900px)': {
display: 'flex',
justifyContent: 'space-around',
alignItems: 'center',
backgroundColor: theme.customColors[3],
color: 'white',
zIndex: 100,
position: 'fixed',
Expand Down

0 comments on commit 8c5123f

Please sign in to comment.