diff --git a/app/layout.tsx b/app/layout.tsx index 976eb90..28537de 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,6 +2,8 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; +import Header from "@/components/Header" + const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], @@ -23,11 +25,13 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - - {children} + + +
+ +
{children}
+ + ); } diff --git a/app/page.tsx b/app/page.tsx index 30ebceb..60078f8 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,65 +1,23 @@ import Image from "next/image"; -export default function Home() { +export default function MeineSeite() { return ( -
-
- Next.js logo + {/* Das Hintergrundbild brecht aus allen Containern aus und füllt das Fenster */} +
+ {/* Hintergrund -
-

- Hello, PsalmTafel wurde aktualisiert! (v0.0.1.3) -

-

- Looking for a starting point or more instructions? Head over to{" "} - - Templates - {" "} - or the{" "} - - Learning - {" "} - center. -

-
-
- - Vercel logomark - Deploy Now - - - Documentation - -
-
-
+ /> */} + + + {/* Dein Inhalt auf dieser Seite */} +
+

Mein Inhalt

+
+ ); -} +} \ No newline at end of file diff --git a/components/Header.tsx b/components/Header.tsx new file mode 100644 index 0000000..ac5ac4b --- /dev/null +++ b/components/Header.tsx @@ -0,0 +1,15 @@ +import NavItem from "./NavItem"; + +export default function Header() { + return ( +
+
PsalmTafel
+ +
+ ); +} \ No newline at end of file diff --git a/components/NavItem.tsx b/components/NavItem.tsx new file mode 100644 index 0000000..ce0573c --- /dev/null +++ b/components/NavItem.tsx @@ -0,0 +1,16 @@ +"use client"; + +import Link from "next/link"; +import { usePathname } from "next/navigation"; +import { ReactNode } from "react"; + +export default function NavItem({ path, children }: { path: string; children: ReactNode }) { + const pathname = usePathname(); + const isActive = pathname === path; + + return ( + + {children} + + ); +} \ No newline at end of file diff --git a/public/bg.jpg b/public/bg.jpg new file mode 100644 index 0000000..3ea6fe4 Binary files /dev/null and b/public/bg.jpg differ diff --git a/public/fakurian_purple.jpg b/public/fakurian_purple.jpg new file mode 100644 index 0000000..3085bcf Binary files /dev/null and b/public/fakurian_purple.jpg differ