Skip to content

Commit a2b7e62

Browse files
johanbookJohan Book
and
Johan Book
authored
feat(web-ui): improve loading screen (#920)
Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
1 parent 6f90c6a commit a2b7e62

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

services/web-ui/src/views/LoadingView/LoadingView.tsx

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { ReactElement } from "react";
22

3-
import { Box, CircularProgress } from "@mui/material";
3+
import { Favorite } from "@mui/icons-material";
4+
import { Box } from "@mui/material";
5+
import { motion } from "framer-motion";
46

57
export function LoadingView(): ReactElement {
68
return (
@@ -12,7 +14,15 @@ export function LoadingView(): ReactElement {
1214
height: "100vh",
1315
}}
1416
>
15-
<CircularProgress />
17+
<Favorite
18+
animate={{
19+
scale: [1, 1.5, 1],
20+
}}
21+
color="primary"
22+
component={motion.svg}
23+
sx={{ fontSize: 60, mb: 2 }}
24+
transition={{ repeat: Number.POSITIVE_INFINITY }}
25+
/>
1626
</Box>
1727
);
1828
}

0 commit comments

Comments
 (0)