-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8239181
commit 7cef9c1
Showing
4 changed files
with
47 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,53 @@ | ||
import { Heading, Text } from '@kadena/kode-ui'; | ||
import { | ||
SectionCard, | ||
SectionCardBody, | ||
SectionCardContentBlock, | ||
SectionCardHeader, | ||
} from '@kadena/kode-ui/patterns'; | ||
import { MonoFindInPage } from '@kadena/kode-icons/system'; | ||
import { Button, Card, Heading, Stack, Text } from '@kadena/kode-ui'; | ||
import { CardContentBlock } from '@kadena/kode-ui/patterns'; | ||
import { warningIconColorClass } from './styles.css'; | ||
|
||
export const NotFound = () => { | ||
const handleBack = () => { | ||
if (!window.history) return; | ||
window.history.back(); | ||
}; | ||
|
||
return ( | ||
<> | ||
<SectionCard> | ||
<SectionCardContentBlock> | ||
<SectionCardHeader title="Page not found" description={<></>} /> | ||
<SectionCardBody> | ||
<Card> | ||
<CardContentBlock | ||
visual={ | ||
<Stack className={warningIconColorClass}> | ||
<MonoFindInPage width={36} height={36} /> | ||
</Stack> | ||
} | ||
title="Page not found" | ||
> | ||
<Stack | ||
flexDirection="column" | ||
gap="xxl" | ||
style={{ marginBlockStart: '-80px' }} | ||
marginBlockEnd="xxxl" | ||
> | ||
<Stack flexDirection="column"> | ||
<Heading variant="h5">Something is wrong</Heading> | ||
<Text> | ||
It seems that the page you are trying to access in not available. | ||
</Text> | ||
</Stack> | ||
|
||
<Heading variant="h5">Reach out!</Heading> | ||
<Stack flexDirection="column"> | ||
<Heading variant="h6">Reach out!</Heading> | ||
<Text> | ||
Please don’t hesitate to reach out if you have any concerns or | ||
believe there may be an issue with the system. We’re here to help! | ||
</Text> | ||
</SectionCardBody> | ||
</SectionCardContentBlock> | ||
</SectionCard> | ||
</> | ||
</Stack> | ||
|
||
<Stack justifyContent="flex-end" gap="md"> | ||
<Button variant="outlined">Get support</Button> | ||
<Button variant="primary" onPress={handleBack}> | ||
Go Back | ||
</Button> | ||
</Stack> | ||
</Stack> | ||
</CardContentBlock> | ||
</Card> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { style } from '@kadena/kode-ui'; | ||
import { token } from '@kadena/kode-ui/styles'; | ||
|
||
export const warningIconColorClass = style({ | ||
color: token('color.icon.semantic.negative.default'), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters