From 427fc265ece7377056aa7beb6da9671dd0b9bc0d Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 6 Jun 2024 14:10:12 +0200 Subject: [PATCH] feat(components): add Footer and Header components Introduced two new components: Footer and Header. The Footer includes copyright and navigation links, while the Header contains the site's logo, title, and a theme selector. --- src/components/footer.tsx | 33 +++++++++++++++++++++++++++++++++ src/components/header.tsx | 24 ++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 src/components/footer.tsx create mode 100644 src/components/header.tsx diff --git a/src/components/footer.tsx b/src/components/footer.tsx new file mode 100644 index 0000000..9cf45ca --- /dev/null +++ b/src/components/footer.tsx @@ -0,0 +1,33 @@ +import {Copyright} from "lucide-react"; +import Link from "next/link"; + + +export function Footer() { + + + return ( + + ) +} \ No newline at end of file diff --git a/src/components/header.tsx b/src/components/header.tsx new file mode 100644 index 0000000..6662c8c --- /dev/null +++ b/src/components/header.tsx @@ -0,0 +1,24 @@ +import Image from "next/image"; +import React from "react"; +import {ThemeBtnSelector} from "@/components/theme-btn-selector"; + + +export function Header({title, children}: {title?: string, children?: React.ReactNode}) { + + + + return ( +
+
+ {'Logo +

{title || 'YeloBit'}

+
+
+ {children} +
+
+ +
+
+ ) +} \ No newline at end of file