From c51136b934497ce8256bfd14bc9f54464aba4986 Mon Sep 17 00:00:00 2001 From: Neshura Date: Thu, 15 Dec 2022 21:23:34 +0100 Subject: [PATCH] Added Navbar and Themeselector components --- components/footer.tsx | 10 +++++----- components/layout.tsx | 16 +++++++--------- components/navbar.tsx | 23 +++++++++++++---------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/components/footer.tsx b/components/footer.tsx index 414cf42..4b8550f 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -1,11 +1,11 @@ -import styles from '/styles/Home.module.css' +import { Footer } from "../components/styles/generic" -const Footer = () => { +const PageFooter = () => { return ( - ); } -export default Footer; \ No newline at end of file +export default PageFooter; \ No newline at end of file diff --git a/components/layout.tsx b/components/layout.tsx index 11d6be6..2e0a80b 100644 --- a/components/layout.tsx +++ b/components/layout.tsx @@ -1,8 +1,7 @@ -import Footer from './footer' -import Navbar from './navbar' -import styles from '/styles/Home.module.css' +import PageFooter from './footer' +import PageNavbar from './navbar' import Script from 'next/script' -import { Page } from './styles/generic' +import { Page, Main } from './styles/generic' import StyleSelector from './themeselector' @@ -28,12 +27,11 @@ const Layout = ({ children }: { children: React.ReactNode }) => { `} - - -
+ +
{children} -
-
+
+ ); } diff --git a/components/navbar.tsx b/components/navbar.tsx index fa34f8e..1201978 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -1,6 +1,6 @@ -import styles from '/styles/Home.module.css' -import Link from 'next/link' import { usePathname } from 'next/navigation' +import { NavBar, NavLink } from './styles/navbar' +import StyleSelector from './themeselector'; const navLinks = [ { name: "Home", href: "/" }, @@ -9,19 +9,22 @@ const navLinks = [ { name: "Services", href: "/services" } ] -const Navbar = () => { +const PageNavbar = () => { const path = usePathname(); return ( - + + Mastodon + + +
); } -export default Navbar; \ No newline at end of file +export default PageNavbar; \ No newline at end of file