File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { Card, CardContent } from "@/components/ui/card";
66import { SPONSORS , type Sponsor } from "@/constants/site-constants" ;
77import { HugeiconsIcon } from "@hugeicons/react" ;
88import { LinkSquare02Icon } from "@hugeicons/core-free-icons" ;
9+ import { cn } from "@/utils/ui" ;
910
1011export 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" >
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export type Sponsor = {
4848 url : string ;
4949 logo : string ;
5050 description : string ;
51+ invertOnDark ?: boolean ;
5152} ;
5253
5354export 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] ;
You can’t perform that action at this time.
0 commit comments