diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-03-03 07:01:17 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-03-03 07:01:17 +0100 |
| commit | 719e0d4398b72c1fe8279b7e38d1b953f19eab46 (patch) | |
| tree | 430f687d03293281f849c8a2dc2286085b11e06c /apps/web/src/app/sponsors | |
| parent | df518cbf4eef279ee119bc679554c0d2d21a6563 (diff) | |
| download | opencut-719e0d4398b72c1fe8279b7e38d1b953f19eab46.tar.gz | |
fix: invert logos in /sponsors when dark mode
Diffstat (limited to 'apps/web/src/app/sponsors')
| -rw-r--r-- | apps/web/src/app/sponsors/page.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/web/src/app/sponsors/page.tsx b/apps/web/src/app/sponsors/page.tsx index 5d8b4e6d..a1a57fce 100644 --- a/apps/web/src/app/sponsors/page.tsx +++ b/apps/web/src/app/sponsors/page.tsx @@ -6,6 +6,7 @@ import { Card, CardContent } from "@/components/ui/card"; import { SPONSORS, type Sponsor } from "@/constants/site-constants"; import { HugeiconsIcon } from "@hugeicons/react"; import { LinkSquare02Icon } from "@hugeicons/core-free-icons"; +import { cn } from "@/utils/ui"; export const metadata: Metadata = { title: "Sponsors - OpenCut", @@ -61,7 +62,10 @@ function SponsorCard({ sponsor }: { sponsor: Sponsor }) { alt={`${sponsor.name} logo`} width={50} height={50} - className="object-contain" + className={cn( + "object-contain", + sponsor.invertOnDark && "invert-0 dark:invert", + )} /> <div className="flex flex-col gap-2"> <div className="flex items-center gap-2"> |
