frontPanel/src/App.tsx

38 lines
1002 B
TypeScript
Raw Normal View History

2022-12-09 11:48:15 +00:00
import { CssBaseline, ThemeProvider } from "@mui/material";
2022-12-09 12:03:27 +00:00
import { styled } from "@mui/material/styles";
2022-12-09 11:48:15 +00:00
import CreateQuiz from "./components/CreateQuiz/CreateQuiz";
import FirstQuiz from "./components/FirstQuiz";
import MyQuizzes from "./components/MyQuizzes";
import Navbar from "./components/Navbar/Navbar";
import NavbarCreateQuiz from "./components/Navbar/NavbarCreateQuiz";
import QuizGallery from "./components/QuizGallery";
import lightTheme from "./utils/themes/light";
2022-12-03 21:37:21 +00:00
2022-12-09 12:03:27 +00:00
const Divider = styled("div")(() => ({
height: "30px",
backgroundColor: "black",
}));
2022-12-03 21:37:21 +00:00
function App() {
2022-12-09 12:03:27 +00:00
2022-12-09 11:48:15 +00:00
return (
<ThemeProvider theme={lightTheme}>
<CssBaseline />
2022-12-09 12:03:27 +00:00
<Navbar isLoggedIn={true} />
<FirstQuiz />
<Divider />
<MyQuizzes />
<Divider />
2022-12-09 11:48:15 +00:00
<QuizGallery />
2022-12-09 12:03:27 +00:00
<Divider />
<NavbarCreateQuiz />
<CreateQuiz />
2022-12-09 11:48:15 +00:00
</ThemeProvider>
);
2022-12-03 21:37:21 +00:00
}
export default App;