-
Notifications
You must be signed in to change notification settings - Fork 52
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
83e8b3b
commit ffc47dc
Showing
2 changed files
with
42 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Button } from '@entur/button' | ||
import { Heading3 } from '@entur/typography' | ||
import Link from 'next/link' | ||
import Image from 'next/image' | ||
import BeaverIllustration from 'assets/illustrations/Beaver.png' | ||
|
||
function Custom404() { | ||
return ( | ||
<div className="mx-auto h-[70vh] lg:w-1/4 flex flex-col justify-center items-center gap-5"> | ||
<Heading3>Denne siden finnes ikke!</Heading3> | ||
<Image | ||
src={BeaverIllustration} | ||
className="w-1/2" | ||
alt="Illustrasjon av en bever" | ||
/> | ||
|
||
<Button as={Link} href="/" variant="primary"> | ||
Tilbake til forsiden | ||
</Button> | ||
</div> | ||
) | ||
} | ||
|
||
export default Custom404 |
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,14 +1,24 @@ | ||
import { Header } from 'components/Header' | ||
import { Button } from '@entur/button' | ||
import { Heading3 } from '@entur/typography' | ||
import Link from 'next/link' | ||
import Image from 'next/image' | ||
import BeaverIllustration from 'assets/illustrations/Beaver.png' | ||
|
||
function NotFoundPage() { | ||
function Custom404() { | ||
return ( | ||
<div className="root"> | ||
<div className="rootContainer"> | ||
<Header /> | ||
<p className="pl-8">Tavlen kunne ikke hentes!</p> | ||
</div> | ||
<div className="mx-auto h-[70vh] lg:w-1/4 flex flex-col justify-center items-center gap-5"> | ||
<Heading3>Denne siden finnes ikke!</Heading3> | ||
<Image | ||
src={BeaverIllustration} | ||
className="w-1/2" | ||
alt="Illustrasjon av en bever" | ||
/> | ||
|
||
<Button as={Link} href="/" variant="primary"> | ||
Tilbake til forsiden | ||
</Button> | ||
</div> | ||
) | ||
} | ||
|
||
export default NotFoundPage | ||
export default Custom404 |