From c1e55c0e3fd6fc4790fec43ed36ba9a44889d6e1 Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Tue, 12 Dec 2023 22:38:08 +0530 Subject: [PATCH] Update EmptyNotice --- .../notices/emptyNotice/emptyNotice.jsx | 24 +++++++++++++++---- .../notices/errorNotice/errorNotice.jsx | 1 + src/styles/global.scss | 4 ++-- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/components/notices/emptyNotice/emptyNotice.jsx b/src/components/notices/emptyNotice/emptyNotice.jsx index 447f2cc..b900005 100644 --- a/src/components/notices/emptyNotice/emptyNotice.jsx +++ b/src/components/notices/emptyNotice/emptyNotice.jsx @@ -1,8 +1,9 @@ /** @format */ +import React from "react"; import Box from "@mui/material/Box"; -import { MdiEmoticonCry } from "../../icons/mdiEmoticonCry"; import Typography from "@mui/material/Typography"; +import { yellow } from "@mui/material/colors"; export const EmptyNotice = () => { return ( @@ -14,11 +15,26 @@ export const EmptyNotice = () => { justifyContent: "center", alignItems: "center", flexFlow: "column", - opacity: 0.2, + // opacity: 0.2, }} > - - Nothing found +
+ error +
+ + No results found + ); }; diff --git a/src/components/notices/errorNotice/errorNotice.jsx b/src/components/notices/errorNotice/errorNotice.jsx index 0f3ed43..f5fb0d8 100644 --- a/src/components/notices/errorNotice/errorNotice.jsx +++ b/src/components/notices/errorNotice/errorNotice.jsx @@ -24,6 +24,7 @@ export const ErrorNotice = ({ error, resetErrorBoundary }) => { style={{ fontSize: "10em", color: red[800], + "--clr": red[800], }} > error diff --git a/src/styles/global.scss b/src/styles/global.scss index cebc225..5e010c6 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -185,7 +185,7 @@ h1 { filter: blur(10px); animation: iconAnimation cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s 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); } 60% { - opacity: 1; + opacity: 0.1; transform: translate(-50%, -50%) scale(4); } 100% {