Skip to content

GraphQLConf 2025 — Bring the color back to sponsor logos #2068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/img/conf/Sponsors/Meta-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/img/conf/Sponsors/Meta.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 56 additions & 12 deletions src/app/conf/2025/components/sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ import Apollo from "public/img/conf/Sponsors/Apollo.svg?svgr"

import { clsx } from "clsx"
import { ChevronRight } from "../../_design-system/pixelarticons/chevron-right"
import { ComponentPropsWithoutRef } from "react"

interface Sponsor {
icon: React.FC<React.SVGProps<SVGElement>>
icon:
| React.FC<React.SVGProps<SVGElement>>
| React.FC<React.ImgHTMLAttributes<HTMLImageElement>>
| React.FC<React.HTMLAttributes<HTMLDivElement>>
name: string
link: string
}
Expand All @@ -15,11 +19,56 @@ const sponsorDiamond: Sponsor[] = []
const sponsorPlatinum: Sponsor[] = []

const sponsorGold: Sponsor[] = [
{ icon: Apollo, name: "Apollo", link: "https://www.apollographql.com" },
{
icon: (props: React.SVGProps<SVGElement>) => (
<Apollo
{...props}
className={clsx(
props.className,
"[&_path]:fill-[#15252D] dark:[&_path]:fill-white",
)}
/>
),
name: "Apollo",
link: "https://www.apollographql.com",
},
]

const sponsorSilver: Sponsor[] = [
{ icon: Grafbase, name: "Grafbase", link: "https://grafbase.com/" },
{
icon: (props: React.SVGProps<SVGElement>) => (
<Grafbase
{...props}
className={clsx(
props.className,
"[&_path]:fill-blk dark:[&_path]:fill-white",
)}
/>
),
name: "Grafbase",
link: "https://grafbase.com/",
},
{
icon: (props: React.HTMLAttributes<HTMLDivElement>) => (
<div {...props} className={clsx(props.className, "relative")}>
<img
src={
new URL("/public/img/conf/Sponsors/Meta.svg", import.meta.url).href
}
className="absolute inset-0 dark:hidden"
/>
<img
src={
new URL("/public/img/conf/Sponsors/Meta-dark.svg", import.meta.url)
.href
}
className="absolute inset-0 hidden dark:block"
/>
</div>
),
name: "Meta",
link: "https://about.facebook.com/meta/",
},
]

export interface SponsorsProps {
Expand Down Expand Up @@ -74,27 +123,22 @@ export function Sponsors({ heading }: SponsorsProps) {
function Tier({ tier, logoHeight }: { tier: Tier; logoHeight: number }) {
return (
<div className="flex gap-x-12 gap-y-4 border-t border-neu-200 py-4 dark:border-neu-50 max-md:flex-col">
<h3 className="flex w-[80px] shrink-0 items-center gap-1 self-start whitespace-nowrap font-mono text-sm/none font-normal uppercase text-primary">
<h3 className="flex w-[80px] shrink-0 items-center gap-1 self-start whitespace-nowrap font-mono text-sm/none font-normal uppercase text-pri-base">
<ChevronRight className="shrink-0 translate-y-[-0.5px]" />
{tier.name}
</h3>
<div
className={clsx(
"grid justify-center gap-x-8 gap-y-4",
tier.items.length > 2 && "sm:grid-cols-2 xl:grid-cols-3",
)}
>
<div className="flex flex-wrap justify-center gap-y-4">
{tier.items.map(({ link, icon: Icon, name }, i) => (
<a
key={i}
href={link}
target="_blank"
rel="noreferrer"
title={name}
className="group flex min-h-24 items-center justify-center opacity-75 [--fill:hsl(var(--color-neu-700))] hover:bg-neu-500/10 hover:[--fill:hsl(var(--color-neu-800))] dark:opacity-90"
className="group flex min-h-24 items-center justify-center hover:bg-neu-500/10 dark:opacity-90 dark:hover:opacity-100"
>
<Icon
className="aspect-[3] w-auto max-w-[80%] shrink-0 fill-[--fill] [&_path]:fill-[--fill]"
className="aspect-[3] w-auto max-w-[80%] shrink-0"
style={{
height: logoHeight,
}}
Expand Down