mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 13:01:46 -07:00
feat: loading-page for suspense
This commit is contained in:
parent
ee73374c29
commit
b8a5a37fc7
5 changed files with 55 additions and 2 deletions
32
frontend/src/components/Loading/Loading.styles.jsx
Normal file
32
frontend/src/components/Loading/Loading.styles.jsx
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Loading.styles.jsx
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
|
||||
const useStyles = makeStyles({
|
||||
root: {
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
height: "100vh",
|
||||
},
|
||||
loadingText: {
|
||||
marginTop: "16px",
|
||||
position: "relative",
|
||||
"& .loadingDots::after": {
|
||||
content: '"."',
|
||||
position: "absolute",
|
||||
left: "100%",
|
||||
marginLeft: "4px",
|
||||
animation: "$loadingDots 1s infinite",
|
||||
},
|
||||
},
|
||||
"@keyframes loadingDots": {
|
||||
"0%": { content: '"."' },
|
||||
"25%": { content: '".."' },
|
||||
"50%": { content: '"..."' },
|
||||
"75%": { content: '"...."' },
|
||||
"100%": { content: '"."' },
|
||||
},
|
||||
});
|
||||
|
||||
export default useStyles;
|
Loading…
Add table
Add a link
Reference in a new issue