From a97a46d4ae451aeb8fb02696c4f505acdf103c06 Mon Sep 17 00:00:00 2001 From: skunichetty Date: Sun, 26 May 2024 19:23:32 -0400 Subject: [PATCH] Added light mode support --- app/globals.css | 17 +++++------------ app/page.tsx | 21 +++++++++++---------- components/dropdown.tsx | 2 +- components/experience_list.tsx | 2 +- components/footer.tsx | 2 +- components/location.tsx | 2 +- components/navbar.tsx | 8 ++++---- 7 files changed, 24 insertions(+), 30 deletions(-) diff --git a/app/globals.css b/app/globals.css index 875c01e..250e5bf 100644 --- a/app/globals.css +++ b/app/globals.css @@ -3,27 +3,20 @@ @tailwind utilities; :root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; + --foreground-rgb: 12, 10, 9; + --background-rgb: 231, 229, 228; } @media (prefers-color-scheme: dark) { :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; + --foreground-rgb: 231, 229, 228; + --background-rgb: 12, 10, 9; } } body { color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); + background: rgb(var(--background-rgb)); } @layer utilities { diff --git a/app/page.tsx b/app/page.tsx index ac99f0c..b5c489b 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -100,7 +100,7 @@ function Hero() { return (
@@ -109,8 +109,9 @@ function Hero() { } function LineWithHeading({ heading, description }: LineWithHeadingProps) { return ( -

- {heading}: {description} +

+ {heading}:   + {description}

); } @@ -143,21 +144,21 @@ export default function Home() { -
-

- Bachelor of Science in Engineering, Computer Science -

-
+
+

Bachelor of Science in Engineering, Computer Science

+

University of Michigan, Ann Arbor

Aug 2020 - Apr 2024

-

Minors in Business Administration, Mathematics

+

+ Minors in Business Administration, Mathematics +

-
+
setContentVisibility(!contentVisible)} - className="text-white hover:text-blue-500 transition" + className="hover:text-blue-500 transition" >
diff --git a/components/experience_list.tsx b/components/experience_list.tsx index 07b647f..263415b 100644 --- a/components/experience_list.tsx +++ b/components/experience_list.tsx @@ -38,7 +38,7 @@ export function ExperienceItem({ ) : null} {position}

-
+
{href == undefined ? ( {company} diff --git a/components/footer.tsx b/components/footer.tsx index a159a4f..754a937 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -4,7 +4,7 @@ import SocialMediaLink from "./social"; export default function Footer() { return ( -