Skip to content

Commit 2161f98

Browse files
committed
Change colors in neutral Hero
1 parent 3000da8 commit 2161f98

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

src/app/conf/2025/code-of-conduct/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export default function ResourcesPage() {
1919
return (
2020
<>
2121
<NavbarPlaceholder className="top-0 bg-neu-0 before:bg-white/30 dark:bg-neu-0 dark:before:bg-blk/40" />
22-
<Hero pageName="Code of conduct" subtitle="The Linux Foundation" colorScheme="neutral">
22+
<Hero
23+
pageName="Code of conduct"
24+
subtitle="The Linux Foundation"
25+
colorScheme="neutral"
26+
>
2327
<Button
2428
href="https://events.linuxfoundation.org/about/code-of-conduct/"
2529
className="mt-[18px] w-fit"

src/app/conf/2025/components/hero/index.tsx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export function Hero(props: HeroProps) {
2323
return (
2424
<article
2525
className={clsx(
26-
"gql-conf-navbar-strip relative isolate flex flex-col justify-center text-neu-0 selection:bg-blk/40 before:bg-white/30 dark:bg-pri-darker dark:text-neu-900 dark:selection:bg-white/40 before:dark:bg-blk/40",
27-
colorScheme === "primary" ? "bg-pri-base" : "bg-neu-100",
26+
"gql-conf-navbar-strip relative isolate flex flex-col justify-center selection:bg-blk/40 before:bg-white/30 dark:bg-pri-darker dark:text-neu-900 dark:selection:bg-white/40 before:dark:bg-blk/40",
27+
colorScheme === "primary" ? "bg-pri-base text-neu-0" : "bg-neu-100",
2828
)}
2929
>
3030
<article className="relative">
@@ -33,7 +33,14 @@ export function Hero(props: HeroProps) {
3333
<div className="flex gap-10 max-md:flex-col md:justify-between">
3434
{props.pageName ? (
3535
<div>
36-
<span className="typography-h3 text-sec-base">
36+
<span
37+
className={clsx(
38+
"typography-h3",
39+
colorScheme === "primary"
40+
? "text-sec-base"
41+
: "text-pri-base",
42+
)}
43+
>
3744
{props.year ? `GraphQLConf ${props.year}` : props.subtitle}
3845
</span>
3946
<h1 className="typography-d1">{props.pageName}</h1>
@@ -50,7 +57,13 @@ export function Hero(props: HeroProps) {
5057
<span className="typography-body-sm whitespace-pre">
5158
hosted by
5259
</span>
53-
<GraphQLFoundationWordmark width={128} height={34.877} />
60+
<GraphQLFoundationWordmark
61+
width={128}
62+
height={34.877}
63+
className={
64+
colorScheme === "neutral" ? "[&_path]:fill-primary" : ""
65+
}
66+
/>
5467
</div>
5568
</div>
5669

0 commit comments

Comments
 (0)