Skip to content

Commit 719e0d4

Browse files
committed
fix: invert logos in /sponsors when dark mode
1 parent df518cb commit 719e0d4

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

apps/web/src/app/sponsors/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Card, CardContent } from "@/components/ui/card";
66
import { SPONSORS, type Sponsor } from "@/constants/site-constants";
77
import { HugeiconsIcon } from "@hugeicons/react";
88
import { LinkSquare02Icon } from "@hugeicons/core-free-icons";
9+
import { cn } from "@/utils/ui";
910

1011
export const metadata: Metadata = {
1112
title: "Sponsors - OpenCut",
@@ -61,7 +62,10 @@ function SponsorCard({ sponsor }: { sponsor: Sponsor }) {
6162
alt={`${sponsor.name} logo`}
6263
width={50}
6364
height={50}
64-
className="object-contain"
65+
className={cn(
66+
"object-contain",
67+
sponsor.invertOnDark && "invert-0 dark:invert",
68+
)}
6569
/>
6670
<div className="flex flex-col gap-2">
6771
<div className="flex items-center gap-2">

apps/web/src/constants/site-constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export type Sponsor = {
4848
url: string;
4949
logo: string;
5050
description: string;
51+
invertOnDark?: boolean;
5152
};
5253

5354
export const SPONSORS: Sponsor[] = [
@@ -56,11 +57,13 @@ export const SPONSORS: Sponsor[] = [
5657
url: "https://fal.ai?utm_source=opencut",
5758
logo: "/logos/others/fal.svg",
5859
description: "Generative image, video, and audio models all in one place.",
60+
invertOnDark: true,
5961
},
6062
{
6163
name: "Vercel",
6264
url: "https://vercel.com?utm_source=opencut",
6365
logo: "/logos/others/vercel.svg",
6466
description: "Platform where we deploy and host OpenCut.",
67+
invertOnDark: true,
6568
},
6669
];

0 commit comments

Comments
 (0)