Added a loading page to the App.jsx
This commit is contained in:
parent
85ffbc8da8
commit
98fcda5dcb
16
src/App.jsx
16
src/App.jsx
@ -1,7 +1,15 @@
|
|||||||
export default () => {
|
import { LinearProgress, Stack, useTheme} from "@mui/material";
|
||||||
return (
|
import LightLogo from "@/common/assets/images/logo/light.webp";
|
||||||
<div className="App">
|
import DarkLogo from "@/common/assets/images/logo/dark.webp";
|
||||||
|
|
||||||
</div>
|
export default () => {
|
||||||
|
const theme = useTheme();
|
||||||
|
const logo = theme.palette.mode === "dark" ? DarkLogo : LightLogo;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Stack sx={{height: "100vh"}} justifyContent="center" alignItems="center" gap={5}>
|
||||||
|
<img src={logo} alt="Logo" style={{width: "25rem"}}/>
|
||||||
|
<LinearProgress variant="indeterminate" sx={{width: "20rem"}}/>
|
||||||
|
</Stack>
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user