-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from Vizzuality/AF-404-500-page
[FE](feat): 404 not found page
- Loading branch information
Showing
13 changed files
with
63 additions
and
25 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,29 @@ | ||
import '@/styles/globals.css'; | ||
import '@/styles/mapbox.css'; | ||
|
||
import dynamic from 'next/dynamic'; | ||
|
||
import Providers from '@/app/(landing)/layout-providers'; | ||
|
||
import Sidebar from '@/containers/sidebar'; | ||
|
||
const Map = dynamic(() => import('@/containers/map'), { | ||
ssr: false, | ||
}); | ||
|
||
export const metadata = { | ||
title: 'AFoCO', | ||
description: '', | ||
}; | ||
|
||
export default function LandingLayout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<Providers> | ||
<div className="relative h-screen w-screen"> | ||
<Sidebar /> | ||
<Map /> | ||
{children} | ||
</div> | ||
</Providers> | ||
); | ||
} |
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
File renamed without changes.
File renamed without changes.
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,11 +1,20 @@ | ||
import Link from 'next/link'; | ||
|
||
import { Button } from '@/components/ui/button'; | ||
|
||
export default function NotFound() { | ||
return ( | ||
<div className="flex h-screen w-screen flex-col items-center justify-center"> | ||
<h2>Not Found</h2> | ||
<p>Could not find requested resource</p> | ||
<Link href="/projects">Return Home</Link> | ||
<h2 className="mb-24 text-[200px] font-extrabold leading-10 text-green-400">404</h2> | ||
<h3 className="mb-4 text-[52px]">Page not found</h3> | ||
<p className="mb-6 text-base font-light"> | ||
It looks like the links is broken or the page has been removed. | ||
</p> | ||
<Link href="/projects"> | ||
<Button variant="primary" size="base"> | ||
Go to home page | ||
</Button> | ||
</Link> | ||
</div> | ||
); | ||
} |
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