Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lujia-Cheng committed Feb 3, 2024
1 parent d10348d commit 56c6de8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from "react";
import React, {useEffect} from "react";
import useMediaQuery from "@mui/material/useMediaQuery";
import { createTheme, ThemeProvider } from "@mui/material/styles";
import {createTheme, ThemeProvider} from "@mui/material/styles";
import CssBaseline from "@mui/material/CssBaseline";
import GreetingMsg from "./components/GreetingMsg";
import NavBar from "./components/NavBar";
Expand Down Expand Up @@ -53,7 +53,7 @@ function App() {

return (
<ThemeProvider theme={theme}>
<CssBaseline />
<CssBaseline/>
<Box
display="flex"
flexDirection="column"
Expand All @@ -65,20 +65,20 @@ function App() {
justifyContent="center"
alignItems="center"
>
{showGreetingMsg ? <GreetingMsg /> : null}
{showGreetingMsg ? <GreetingMsg/> : null}
</Box>
{/* todo evaluate the bar when scrolling https://mui.com/material-ui/react-app-bar/#back-to-top*/}
<AppBar
id="navbar"
position={showGreetingMsg ? "relative" : "sticky"}
top="0"
>
<NavBar value={section} onChange={changeSection} />
<NavBar value={section} onChange={changeSection}/>
</AppBar>
</Box>
<Box padding="0 8em">
{/* todo sticky navbar while scrolling */}
<Content value={section} />
{/* todo sticky navbar while scrolling */}
<Content value={section}/>
</Box>
</ThemeProvider>
);
Expand Down

0 comments on commit 56c6de8

Please sign in to comment.