new changes
This commit is contained in:
1 parent
14bbb241b9
commit
9159d8cf5f
2 files changed
+20
-46
No files matched your search
@@ -1,35 +1,15 @@
|
||||
/*Notfoundpage styles*/
|
||||
.not-found-page,
|
||||
.not-found-template,
|
||||
#not-found-title,
|
||||
#not-found-description {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.not-found-page {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.not-found-template {
|
||||
min-height: 170px;
|
||||
}
|
||||
|
||||
#not-found-title,
|
||||
#not-found-description {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#not-found-title {
|
||||
font-size: var(--env-var-font-size-large);
|
||||
color: var(--env-var-color-5);
|
||||
font-weight: 600;
|
||||
margin-bottom: var(--env-var-spacing-2);
|
||||
}
|
||||
|
||||
#not-found-description {
|
||||
.not-found-page button,
|
||||
.not-found-page p {
|
||||
font-size: var(--env-var-font-size-medium);
|
||||
font-weight: 500;
|
||||
margin-bottom: calc(var(--env-var-spacing-4) + var(--env-var-spacing-2));
|
||||
}
|
||||
.not-found-page h1 {
|
||||
font-size: var(--env-var-font-size-large);
|
||||
font-weight: 600;
|
||||
}
|
||||
.not-found-page h1,
|
||||
.not-found-page p {
|
||||
color: var(--env-var-color-5);
|
||||
}
|
||||
@@ -31,21 +31,15 @@ const DefaultValue = {
|
||||
*/
|
||||
const NotFound = ({ title = DefaultValue.title, desc = DefaultValue.desc }) => {
|
||||
return (
|
||||
<Stack className="not-found-page">
|
||||
<Stack className="not-found-template">
|
||||
<Typography id="not-found-title">{title}</Typography>
|
||||
<Typography id="not-found-description">{desc}</Typography>
|
||||
<div
|
||||
className="button-container"
|
||||
style={{ display: "flex", justifyContent: "center" }}
|
||||
>
|
||||
<Button
|
||||
label="Go to the main dashboard"
|
||||
level="primary"
|
||||
id="not-found-page-action"
|
||||
sx={{ fontSize: "var(--env-var-font-size-medium)" }}
|
||||
/>
|
||||
</div>
|
||||
<Stack className="not-found-page" justifyContent="center">
|
||||
<Stack gap="20px" alignItems="center">
|
||||
<Typography component="h1">{title}</Typography>
|
||||
<Typography>{desc}</Typography>
|
||||
<Button
|
||||
label="Go to the main dashboard"
|
||||
level="primary"
|
||||
sx={{ mt: "24px" }}
|
||||
/>
|
||||
</Stack>
|
||||
</Stack>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user