network-resurrector/src/components/layout/Main.js

39 lines
821 B
JavaScript
Raw Normal View History

2020-12-16 03:09:24 +02:00
import React from "react";
2020-12-19 01:28:53 +02:00
import ApplicationStepper from "./stepper/ApplicationStepper";
2020-12-16 03:09:24 +02:00
import Switcher from "./Switcher";
2020-12-19 02:08:36 +02:00
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles(theme => ({
app: {
textAlign: "center",
backgroundColor: "#282c34",
minHeight: "100vh",
display: "flex",
flexDirection: "column"
},
content: {
minHeight: "80vh",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
fontSize: "calc(10px + 2vmin)",
color: "white"
}
}));
2020-12-16 03:09:24 +02:00
const Main = () => {
2020-12-19 02:08:36 +02:00
const classes = useStyles();
2020-12-16 03:09:24 +02:00
return (
2020-12-19 02:08:36 +02:00
<div className={classes.app}>
2020-12-19 01:28:53 +02:00
<ApplicationStepper />
2020-12-19 02:08:36 +02:00
<header className={classes.content}>
2020-12-16 03:14:50 +02:00
<Switcher />
</header>
2020-12-19 02:08:36 +02:00
</div>
2020-12-16 03:09:24 +02:00
);
};
export default Main;