Add responsive Navbar

This commit is contained in:
stefan080106
2022-05-15 18:26:01 +02:00
parent cda1af7ce4
commit ce142c4a60
7 changed files with 417 additions and 64 deletions

21
pages/404.js Normal file
View File

@@ -0,0 +1,21 @@
import Head from "next/head";
import Header from "../components/Navbar";
import styles from "../styles/Home.module.css";
export default function Home() {
return (
<main
className={styles.main}
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<div style={{ padding: "2rem", boxShadow: "5px 5px 30px 5px rgba(0,0,0,0.5)" }}>
<h1>Error 404</h1>
<h3>Diese Seite ist nicht verfügbar</h3>
</div>
</main>
);
}

View File

@@ -1,7 +1,17 @@
import '../styles/globals.css'
import Navbar from "../components/Navbar";
import "../styles/globals.css";
import styles from "../styles/Home.module.css";
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
return (
<div {...pageProps} className={styles.container}>
{/* Navbar */}
<Navbar />
{/* main */}
<Component className={styles.main} />
{/* footer */}
</div>
);
}
export default MyApp
export default MyApp;