Update EmptyNotice
This commit is contained in:
3 files changed
+23
-6
No files matched your search
@@ -1,8 +1,9 @@
|
|||||||
/** @format */
|
/** @format */
|
||||||
|
|
||||||
|
import React from "react";
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import { MdiEmoticonCry } from "../../icons/mdiEmoticonCry";
|
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
|
import { yellow } from "@mui/material/colors";
|
||||||
|
|
||||||
export const EmptyNotice = () => {
|
export const EmptyNotice = () => {
|
||||||
return (
|
return (
|
||||||
@@ -14,11 +15,26 @@ export const EmptyNotice = () => {
|
|||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
flexFlow: "column",
|
flexFlow: "column",
|
||||||
opacity: 0.2,
|
// opacity: 0.2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MdiEmoticonCry sx={{ fontSize: 200 }} />
|
<div
|
||||||
<Typography variant="h3">Nothing found</Typography>
|
className="material-symbols-rounded animate-icon"
|
||||||
|
style={{
|
||||||
|
fontSize: "10em",
|
||||||
|
color: yellow[800],
|
||||||
|
"--clr": yellow[800],
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
error
|
||||||
|
</div>
|
||||||
|
<Typography
|
||||||
|
variant="h3"
|
||||||
|
fontFamily="JetBrains Mono Variable"
|
||||||
|
fontWeight={100}
|
||||||
|
>
|
||||||
|
No results found
|
||||||
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -24,6 +24,7 @@ export const ErrorNotice = ({ error, resetErrorBoundary }) => {
|
|||||||
style={{
|
style={{
|
||||||
fontSize: "10em",
|
fontSize: "10em",
|
||||||
color: red[800],
|
color: red[800],
|
||||||
|
"--clr": red[800],
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
error
|
error
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ h1 {
|
|||||||
filter: blur(10px);
|
filter: blur(10px);
|
||||||
animation: iconAnimation cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s
|
animation: iconAnimation cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s
|
||||||
infinite;
|
infinite;
|
||||||
background: rgb(255 0 0 / 0.1);
|
background: radial-gradient(transparent, var(--clr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ h1 {
|
|||||||
transform: translate(-50%, -50%) scale(1);
|
transform: translate(-50%, -50%) scale(1);
|
||||||
}
|
}
|
||||||
60% {
|
60% {
|
||||||
opacity: 1;
|
opacity: 0.1;
|
||||||
transform: translate(-50%, -50%) scale(4);
|
transform: translate(-50%, -50%) scale(4);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
|
|||||||
Reference in new issue
Block a user