Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Icon } from "@iconify/react";

const Navbar = () => {
return (
<nav className="flex justify-between py-2 px-10 w-[100vw] bg-primary text-text_secondary items-center">
<nav className="flex justify-between py-2 px-10 w-full bg-primary text-text_secondary items-center">
<Link href="/" className="flex items-center gap-5">
<Image src={logo2} alt={"Dotkomk devblog logo"} height={60}/>
<h2 className="text-3xl font-bold hover:text-background duration-100">Dotkomk Devblog</h2>
Expand Down
8 changes: 6 additions & 2 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import Image404a from "@/app/assets/404-mannen-after.jpg";
import Image404b from "@/app/assets/404-mannen-before.jpg";
import NavButton from "./components/NavButton";
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";

const NotFound = () => {
return (
<main className="grid min-w-screen min-h-screen gap-4 place-content-center">
<Navbar />
<div className="flex flex-col min-w-screen min-h-screen">
<Navbar />
<main className="grid gap-4 flex-1 place-content-center">
<h1 className="text-5xl text-center">Ser ut som du har havnet på feil sted</h1>
<p className="text-center">404: Page not found</p>
<div className="flex flex-row justify-center">
Expand All @@ -18,6 +20,8 @@ const NotFound = () => {
<NavButton buttonText="Andrej er lav :)" href="/" title="Tilbake til startsiden (Sikkert Andrej sin feil at du havna her, sorry!)" />
</div>
</main>
<Footer />
</div>
);
}

Expand Down
4 changes: 1 addition & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import Image from "next/image";
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";
import Page from "./about/page";

export default function Home() {
return (
<div className="flex flex-col min-h-screen">
<Navbar />
<Page />
<p>Home</p>
<Footer />
</div>
)
Expand Down