Update EmptyNotice

This commit is contained in:
Prayag Prajapati committed 2023-12-12 22:38:08 +05:30
1 parent c5922d67c4
commit c1e55c0e3f
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
+2 -2
View File
@@ -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% {