From 111e211fa7153e73184897abe69e4968a695fcb8 Mon Sep 17 00:00:00 2001 From: Mikayla Dobson Date: Thu, 5 Oct 2023 13:08:52 -0500 Subject: [PATCH] improved light/dark mode --- app/layout.tsx | 46 ++++++++++++++-------------- app/links/page.tsx | 16 +++++----- app/page.tsx | 52 +++++++++++++++++--------------- app/projects/page.tsx | 2 +- components/Links/SocialMedia.tsx | 11 +++++-- components/Navbar/index.tsx | 16 ++++++++-- package.json | 2 +- 7 files changed, 81 insertions(+), 64 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 833dbbc..e73aaf4 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -21,25 +21,25 @@ export default function RootLayout({ children }: { children: React.ReactNode }) const [pageIsScrolled, setPageIsScrolled] = useState(false); - useEffect(() => { - if (pathname === '/contact') setOverlay(true); + // useEffect(() => { + // if (pathname === '/contact') setOverlay(true); - switch (pathname) { - case '/contact': - setBg('bg-darkPlum'); - break; - case '/about': - setBg("bg-blue-100 dark:bg-slate-900"); - break; - case "/links": - setBg("bg-sky-100 dark:bg-slate-900"); - break; - case '/': - default: - setBg('bg-slate-400 dark:bg-slate-900'); - break; - } - }, [pathname]) + // switch (pathname) { + // case '/contact': + // setBg('bg-purple-300 dark:bg-darkPlum'); + // break; + // case '/about': + // setBg("bg-blue-100 dark:bg-slate-900"); + // break; + // case "/links": + // setBg("bg-sky-100 dark:bg-slate-900"); + // break; + // case '/': + // default: + // setBg('bg-slate-400 dark:bg-slate-900'); + // break; + // } + // }, [pathname]) useEffect(() => { document.addEventListener('scroll', () => { @@ -63,12 +63,10 @@ export default function RootLayout({ children }: { children: React.ReactNode }) -
-
- -
+
+ diff --git a/app/links/page.tsx b/app/links/page.tsx index e7c73f1..28e6737 100644 --- a/app/links/page.tsx +++ b/app/links/page.tsx @@ -6,8 +6,8 @@ import { RxArrowRight } from "react-icons/rx"; export default function LinksPage() { return ( -
-
+
+ {/*

Check out my work on...

@@ -22,12 +22,12 @@ export default function LinksPage() { Subsequent Media
-
+
*/} -
diff --git a/app/page.tsx b/app/page.tsx index 5409352..f92f24b 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -4,36 +4,38 @@ import Link from "next/link"; export default function Home() { return ( -
-
- +
+
+
+ - {/*
- geometric pattern in wood and metal -
*/} -
+ {/*
+ geometric pattern in wood and metal +
*/} +
-
-
- - image of Mikayla Dobson - -

Hi! My name is Mikayla.

-

I build full-stack software solutions for the web, answer open-ended questions, and pet cats.

+
+
+ + image of Mikayla Dobson + +

Hi! My name is Mikayla.

+

I build full-stack software solutions for the web, answer open-ended questions, and pet cats.

-
- - Tell me what I can do for you - - - And check out some of my work while you're at it - - - Check out my work - +
+ + Tell me what I can do for you + + + And check out some of my work while you're at it + + + Check out my work + +
-
+
) } diff --git a/app/projects/page.tsx b/app/projects/page.tsx index 26d1e9d..637831b 100644 --- a/app/projects/page.tsx +++ b/app/projects/page.tsx @@ -1,7 +1,7 @@ export default function ProjectsPage() { return (
-

Projects Page

+

Learn more about my work

Contents of this page coming soon!

diff --git a/components/Links/SocialMedia.tsx b/components/Links/SocialMedia.tsx index 8063bf8..4941ed6 100644 --- a/components/Links/SocialMedia.tsx +++ b/components/Links/SocialMedia.tsx @@ -3,10 +3,17 @@ import type { LinkProps } from "."; export default function SocialMedia({ href, label, logo, disabled = false }: LinkProps) { return ( -
- +
+ {logo} + + + <> + { logo } +

{label}

+ +
) } diff --git a/components/Navbar/index.tsx b/components/Navbar/index.tsx index 4287d17..1696ac3 100644 --- a/components/Navbar/index.tsx +++ b/components/Navbar/index.tsx @@ -12,7 +12,17 @@ export default function Navbar({ pageIsScrolled = false }) { return ( <> -
setMobileMenuOpen(false)} className={`flex flex-col z-50 rounded-bl-lg justify-end md:hidden fixed top-24 w-[35vw] text-right place-self-end bg-[#131313] ${mobileMenuOpen ? 'translate-x-[65vw]' : 'translate-x-[100vw]'} transition-all duration-500`}> - {/*
*/} +
setMobileMenuOpen(false)} passHref href="/" className="w-auto px-2">

Home

diff --git a/package.json b/package.json index 01c85b2..b0f1db6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mikayla-dobson-dev", - "version": "0.1.0", + "version": "0.1.1", "private": true, "scripts": { "dev": "next dev",