File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default function ResourcesPage() {
19
19
return (
20
20
< >
21
21
< 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" >
22
+ < Hero pageName = "Code of conduct" subtitle = "The Linux Foundation" colorScheme = "neutral" >
23
23
< Button
24
24
href = "https://events.linuxfoundation.org/about/code-of-conduct/"
25
25
className = "mt-[18px] w-fit"
Original file line number Diff line number Diff line change @@ -5,19 +5,28 @@ import GraphQLFoundationWordmark from "../../assets/graphql-foundation-wordmark.
5
5
6
6
import { ImageLoaded } from "../image-loaded"
7
7
import blurBean from "./blur-bean-cropped.webp"
8
+ import clsx from "clsx"
8
9
9
10
export type HeroProps = {
10
11
pageName ?: string
11
12
children : React . ReactNode
12
13
bottom ?: React . ReactNode
14
+ colorScheme ?: "primary" | "neutral"
13
15
} & (
14
16
| { year : string | number ; subtitle ?: never }
15
17
| { year ?: never ; subtitle : string }
16
18
)
17
19
18
20
export function Hero ( props : HeroProps ) {
21
+ const colorScheme = props . colorScheme || "primary"
22
+
19
23
return (
20
- < article className = "gql-conf-navbar-strip relative isolate flex flex-col justify-center bg-pri-base 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" >
24
+ < article
25
+ 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" ,
28
+ ) }
29
+ >
21
30
< article className = "relative" >
22
31
< HeroStripes />
23
32
< div className = "gql-conf-container mx-auto flex max-w-full flex-col gap-12 overflow-hidden p-4 pt-6 sm:p-8 sm:pt-12 md:gap-12 md:bg-left md:p-12 lg:px-24 lg:pb-16 lg:pt-24" >
You can’t perform that action at this time.
0 commit comments