From 1463722a84e62ec5f4f2767bf550534562180593 Mon Sep 17 00:00:00 2001 From: Aidan Honor Date: Sat, 15 Mar 2025 15:43:44 -0400 Subject: [PATCH] design: improved site-wide light/dark theme, home footer is looking normal again, misc tweaks --- app/globals.css | 21 +++---- app/page.tsx | 4 +- app/privacy/page.tsx | 2 +- components/pages/main/FeatureCard.tsx | 9 ++- components/pages/main/Footer.tsx | 67 ++++++++++++---------- components/pages/main/Hero.tsx | 4 +- components/pages/main/Navbar.tsx | 8 +-- components/pages/main/PoweredBySection.tsx | 8 +-- components/pages/main/Pricing.tsx | 17 +++--- 9 files changed, 73 insertions(+), 67 deletions(-) diff --git a/app/globals.css b/app/globals.css index 67dfe39..c407292 100644 --- a/app/globals.css +++ b/app/globals.css @@ -71,10 +71,10 @@ @utility container { margin-inline: auto; padding-inline: 2rem; - @media (width >= --theme(--breakpoint-sm)) { + @media (min-width: theme('screens.sm')) { max-width: none; } - @media (width >= 1400px) { + @media (min-width: 1400px) { max-width: 1400px; } } @@ -99,7 +99,7 @@ @layer base { :root { - --background: 0 0% 100%; + --background: 30 20% 98%; --foreground: 222.2 84% 4.9%; --muted: 210 40% 96.1%; @@ -120,7 +120,7 @@ --secondary: 210 40% 96.1%; --secondary-foreground: 222.2 47.4% 11.2%; - --accent: 210 40% 96.1%; + --accent: 210 60% 95%; --accent-foreground: 222.2 47.4% 11.2%; --destructive: 0 84.2% 60.2%; @@ -130,20 +130,13 @@ --radius: 0.5rem; - --sidebar-background: 0 0% 98%; - + --sidebar-background: 215 25% 97%; --sidebar-foreground: 240 5.3% 26.1%; - --sidebar-primary: 240 5.9% 10%; - --sidebar-primary-foreground: 0 0% 98%; - - --sidebar-accent: 240 4.8% 95.9%; - + --sidebar-accent: 215 10% 92%; --sidebar-accent-foreground: 240 5.9% 10%; - - --sidebar-border: 220 13% 91%; - + --sidebar-border: 220 13% 88%; --sidebar-ring: 217.2 91.2% 59.8%; } diff --git a/app/page.tsx b/app/page.tsx index 7d71df5..d4d6745 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -42,13 +42,13 @@ export default function Home() { ] return ( -
+
-

Our Services

+

Our Services

{features.map((feature, index) => ( diff --git a/app/privacy/page.tsx b/app/privacy/page.tsx index 0dee0f3..6d5da1e 100644 --- a/app/privacy/page.tsx +++ b/app/privacy/page.tsx @@ -6,7 +6,7 @@ import Link from "next/link" export default function Privacy() { return ( -
+
diff --git a/components/pages/main/FeatureCard.tsx b/components/pages/main/FeatureCard.tsx index 2c7d887..acf4881 100644 --- a/components/pages/main/FeatureCard.tsx +++ b/components/pages/main/FeatureCard.tsx @@ -7,17 +7,20 @@ interface FeatureCardProps { icon: React.ElementType } +/* TODO: I plan to add a better animation in the future, hover effects are not + good here, in my opinion. */ + const FeatureCard = ({ title, description, icon: Icon }: FeatureCardProps) => { return ( - + - + {title} - {description} + {description} ) diff --git a/components/pages/main/Footer.tsx b/components/pages/main/Footer.tsx index f7ab094..9c2556f 100644 --- a/components/pages/main/Footer.tsx +++ b/components/pages/main/Footer.tsx @@ -1,39 +1,48 @@ +"use client" + import { RiOpenSourceFill } from "react-icons/ri" import { ArrowUp } from "lucide-react" import Link from "next/link" export default function Footer() { + const scrollToTop = () => { + window.scrollTo({ + top: 0, + behavior: "smooth", + }) + } + return ( -
-
-
-
-
- - - Open Source & Public Domain - -
-
- - Privacy Policy - - - - -
+
+
+
+
+
+
+ + Privacy Policy + +
-
-
+
+
) } \ No newline at end of file diff --git a/components/pages/main/Hero.tsx b/components/pages/main/Hero.tsx index 2d8d191..6bfa437 100644 --- a/components/pages/main/Hero.tsx +++ b/components/pages/main/Hero.tsx @@ -9,7 +9,7 @@ const Hero = () => { const phrases = ["everyone", "developers", "students", "non-profits", "teachers", "workers", "friends"] return ( -
+

@@ -18,7 +18,7 @@ const Hero = () => { for

-

+

Experience FOSS at its best with LibreCloud, a free service provider built with everyone in mind.

diff --git a/components/pages/main/Navbar.tsx b/components/pages/main/Navbar.tsx index be776de..2e28766 100644 --- a/components/pages/main/Navbar.tsx +++ b/components/pages/main/Navbar.tsx @@ -8,12 +8,12 @@ const Navbar = () => { const [isOpen, setIsOpen] = useState(false) return ( -