frontPanel/src/App.tsx

39 lines
1001 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 "./pages/startPage/FirstQuiz";
2022-12-09 11:48:15 +00:00
import MyQuizzes from "./components/MyQuizzes";
import Navbar from "./components/Navbar/Navbar";
import NavbarCreateQuiz from "./components/Navbar/NavbarCreateQuiz";
import QuizGallery from "./components/QuizGallery";
2023-03-01 22:59:51 +00:00
// import lightTheme from "./utils/themes/light";
// import darkTheme from "./utils/themes/dark";
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 (
2023-03-01 22:59:51 +00:00
<>
2022-12-09 11:48:15 +00:00
<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 />
2023-03-01 22:59:51 +00:00
2022-12-09 12:03:27 +00:00
<NavbarCreateQuiz />
<CreateQuiz />
2023-03-01 22:59:51 +00:00
</>
2022-12-09 11:48:15 +00:00
);
2022-12-03 21:37:21 +00:00
}
export default App;