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 {
|
.not-found-page {
|
||||||
display: flex;
|
height: 100vh;
|
||||||
min-height: 100vh;
|
|
||||||
}
|
}
|
||||||
|
.not-found-page button,
|
||||||
.not-found-template {
|
.not-found-page p {
|
||||||
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 {
|
|
||||||
font-size: var(--env-var-font-size-medium);
|
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 }) => {
|
const NotFound = ({ title = DefaultValue.title, desc = DefaultValue.desc }) => {
|
||||||
return (
|
return (
|
||||||
<Stack className="not-found-page">
|
<Stack className="not-found-page" justifyContent="center">
|
||||||
<Stack className="not-found-template">
|
<Stack gap="20px" alignItems="center">
|
||||||
<Typography id="not-found-title">{title}</Typography>
|
<Typography component="h1">{title}</Typography>
|
||||||
<Typography id="not-found-description">{desc}</Typography>
|
<Typography>{desc}</Typography>
|
||||||
<div
|
<Button
|
||||||
className="button-container"
|
label="Go to the main dashboard"
|
||||||
style={{ display: "flex", justifyContent: "center" }}
|
level="primary"
|
||||||
>
|
sx={{ mt: "24px" }}
|
||||||
<Button
|
/>
|
||||||
label="Go to the main dashboard"
|
|
||||||
level="primary"
|
|
||||||
id="not-found-page-action"
|
|
||||||
sx={{ fontSize: "var(--env-var-font-size-medium)" }}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user