front-hub/src/pages/Landing/Landing.tsx

38 lines
1.1 KiB
TypeScript
Raw Normal View History

import { Box, CssBaseline, ThemeProvider, useTheme, useMediaQuery } from "@mui/material";
2022-11-17 12:25:23 +00:00
import Section1 from "./Section1";
import Section2 from "./Section2";
import Section3 from "./Section3";
import Section4 from "./Section4";
import Section5 from "./Section5";
2023-04-13 16:48:17 +00:00
import FloatingSupportChat from "@root/components/FloatingSupportChat/FloatingSupportChat";
2023-05-17 11:20:11 +00:00
import Footer from "@root/components/Footer";
2023-10-28 14:20:12 +00:00
import Navbar from "@root/components/NavbarLanding/Navbar";
2023-08-22 10:28:22 +00:00
import { theme } from "@root/utils/theme";
2022-11-17 12:25:23 +00:00
export default function Landing() {
const muiTheme = useTheme();
const isTablet = useMediaQuery(muiTheme.breakpoints.down(900));
return (
<ThemeProvider theme={theme}>
<CssBaseline />
<Box
sx={{
position: "relative",
paddingTop: isTablet ? "51px" : "80px",
color: "white",
}}
>
<Navbar isLoggedIn={false} />
<Section1 />
<Section2 />
<Section3 />
<Section4 />
<Section5 />
<Footer />
<FloatingSupportChat />
</Box>
</ThemeProvider>
);
}