Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
added custom 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Yven Riexinger committed Nov 4, 2023
1 parent f5b5a1b commit d297613
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
25 changes: 25 additions & 0 deletions src/app/(components)/NotFound.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Link from 'next/link'

export default function NotFound() {
return (
<>
<div className="px-4 py-5 my-5 text-center" data-bs-theme="light">
<img
className="d-block mx-auto mb-4"
src="/wappen.svg"
alt="Das Wappen der Stadt Ratingen"
height="250em"
/>
<h1
data-bs-theme="light"
className="display-5 fw-bold text-body-emphasis"
>
Seite nicht gefunden
</h1>
<Link href="/" className="btn btn-primary mt-5">
Zur Startseite
</Link>
</div>
</>
);
}
10 changes: 2 additions & 8 deletions src/app/impressum/page.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import Footer from '../(components)/Footer';
import Impressum from '../(components)/Impressum';
import Impressum from "../(components)/Impressum";

export default function Home() {
return (
<>
<Impressum />
<Footer />
</>
);
return <Impressum />;
}
3 changes: 3 additions & 0 deletions src/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ config.autoAddCss = false;

import '@/styles/styles.scss';

import Footer from './(components)/Footer';

const inter = Inter({ subsets: ['latin'] });

export const metadata = {
Expand All @@ -19,6 +21,7 @@ export default function RootLayout({ children }) {
<html lang="de" data-bs-theme="light">
<body data-bs-theme="light" className={inter.className}>
{children}
<Footer></Footer>
</body>
</html>
);
Expand Down
7 changes: 7 additions & 0 deletions src/app/not-found.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import NotFound from './(components)/NotFound'

export default function FourOhFour() {
return (
<NotFound></NotFound>
)
}
2 changes: 0 additions & 2 deletions src/app/page.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Footer from './(components)/Footer';
import Hero from './(components)/Hero';
import SideLinkBar from './(components)/SideLinkBar';

Expand All @@ -7,7 +6,6 @@ export default function Home() {
<>
<Hero></Hero>
<SideLinkBar mastername="Ihre Dienstleistungen"></SideLinkBar>
<Footer></Footer>
</>
);
}

0 comments on commit d297613

Please sign in to comment.