-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GlobalError): add new styles (no illustrations anymore) (#2381)
- Loading branch information
1 parent
5bcb8b2
commit 94a0926
Showing
22 changed files
with
750 additions
and
1,350 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
/** | ||
* Page not found | ||
* | ||
*/ | ||
|
||
import React from 'react' | ||
import { GlobalError } from '@dnb/eufemia/src/components' | ||
import Layout from '../shared/parts/Layout' | ||
|
||
export default function PageNotFound({ location }) { | ||
const { pathname } = location | ||
|
||
return ( | ||
<Layout key="layout" location={location} hideSidebar> | ||
<GlobalError | ||
center | ||
status="404" | ||
title="We couldn't find that page!" | ||
text={ | ||
<> | ||
There's not a page at <code>{pathname}</code> | ||
</> | ||
} | ||
/> | ||
</Layout> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
/** | ||
* Page not found | ||
* | ||
*/ | ||
|
||
import React from 'react' | ||
import { GlobalError } from '@dnb/eufemia/src/components' | ||
|
||
export default function Error500() { | ||
return ( | ||
<GlobalError | ||
center | ||
status="500" | ||
title="Sorry, we got a technical issue!" | ||
text="The service is not working properly at the moment. Please try again later." | ||
/> | ||
) | ||
} |
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
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
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
62 changes: 0 additions & 62 deletions
62
packages/dnb-eufemia/src/components/global-error/GlobalError.d.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.