diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8d76bfc..23881be 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -27,7 +27,7 @@ const jbMono = Noto_Serif({ export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - + {children} diff --git a/src/app/page.tsx b/src/app/page.tsx index 2bbd237..053a036 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,50 +1,46 @@ import SocialLinks from "@/components/Nav/SocialLinks"; +import Greeting from "@/components/Greeting"; import Link from "next/link"; +const interests = [ + "distributed systems", + "film photography", + "type-safe APIs", + "generative art", + "running", + "mechanical keyboards", +]; + +function CurrentInterest() { + const index = Math.floor(Date.now() / 86400000) % interests.length; + return {interests[index]}; +} + export default function Home() { return (
- Liam Monaghan{" "} + {" "} 💡
- I'm a Christian, student, developer,{" "} + Christian. Developer.{" "} - photographer - - , Pittsburgh and Ohio State sports fan, and can't live without music. You can usually find me{" "} - - coding - {" "} - or hanging out with friends. I also occasionally{" "} - - write about things + Photographer - . -
- - {/*
- I'm currently hacking on{" "} - - Promptiac - - . -
*/} - -
- I'm currently studying computer science at{" "} + . Studying CS at{" "} Purdue .
-
- I was previously a software engineer intern for{" "} + +
+ Previously built software at{" "} Flowglad {" "} @@ -52,17 +48,26 @@ export default function Home() { Roda - . -
- -
- Wanna chat?{" "} + . I{" "} + + code + + ,{" "} + + write + + , and{" "} - Book a call + chat .
+
+ Currently into {" "} + . +
+
diff --git a/src/components/Greeting.tsx b/src/components/Greeting.tsx new file mode 100644 index 0000000..04b3820 --- /dev/null +++ b/src/components/Greeting.tsx @@ -0,0 +1,22 @@ +"use client"; + +import { useState, useEffect } from "react"; + +function getGreeting(): string { + const hour = new Date().getHours(); + if (hour < 5) return "Up late? I'm Liam Monaghan"; + if (hour < 12) return "Good morning, I'm Liam Monaghan"; + if (hour < 17) return "Good afternoon, I'm Liam Monaghan"; + if (hour < 21) return "Good evening, I'm Liam Monaghan"; + return "Up late? I'm Liam Monaghan"; +} + +export default function Greeting() { + const [greeting, setGreeting] = useState("Liam Monaghan"); + + useEffect(() => { + setGreeting(getGreeting()); + }, []); + + return <>{greeting}; +}