Skip to content

Commit 52dbf63

Browse files
committed
Add a Hero to Resources page
1 parent 76e7f67 commit 52dbf63

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function ResourcesPage() {
3939
</Button>
4040
</Hero>
4141
<main className="gql-all-anchors-focusable gql-conf-navbar-strip text-neu-900 before:bg-white/40 before:dark:bg-blk/30">
42-
<div className="gql-conf-container gql-conf-section gql-prose">
42+
<div className="gql-conf-container gql-conf-section gql-prose xl:mb-16 xl:mt-8">
4343
<ServerComponentMarkdown
4444
markdown={markdown}
4545
components={{

src/app/conf/2025/resources/page.tsx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Metadata } from "next"
22

3+
import { Button } from "@/app/conf/_design-system/button"
4+
35
import { NavbarPlaceholder } from "../components/navbar"
6+
import { Hero, HeroStripes } from "../components/hero"
47

58
import Resources from "./client-mdx"
69
import "./prose.css"
@@ -12,9 +15,28 @@ export const metadata: Metadata = {
1215
export default function ResourcesPage() {
1316
return (
1417
<>
15-
<NavbarPlaceholder className="top-0 bg-neu-0 before:bg-white/30 dark:bg-neu-0 dark:before:bg-blk/40" />
18+
<NavbarPlaceholder className="top-0 bg-neu-100 before:bg-white/30 dark:bg-[#181A12] dark:before:bg-blk/40" />
19+
<Hero
20+
pageName="Resources"
21+
year="2025"
22+
colorScheme="neutral"
23+
stripes={
24+
<HeroStripes
25+
className="-scale-x-100 dark:data-[loaded=true]:opacity-80"
26+
evenClassName="bg-[linear-gradient(180deg,hsl(var(--color-sec-light))_0%,hsl(319deg_100%_90%_/_0.2)_100%)] dark:bg-[linear-gradient(180deg,hsl(var(--color-sec-dark))_0%,hsl(var(--color-neu-100))_100%)]"
27+
oddClassName="bg-[linear-gradient(180deg,hsl(319deg_100%_90%_/_0.2)_0%,hsl(var(--color-sec-base))_100%)] dark:bg-[linear-gradient(180deg,hsl(var(--color-sec-dark))_0%,hsl(var(--color-neu-0))_100%)]"
28+
/>
29+
}
30+
>
31+
<Button
32+
href="mailto:[email protected]"
33+
className="w-fit"
34+
>
35+
Talk to us
36+
</Button>
37+
</Hero>
1638
<main className="gql-all-anchors-focusable gql-conf-navbar-strip text-neu-900 before:bg-white/40 before:dark:bg-blk/30">
17-
<div className="gql-conf-container gql-conf-section gql-prose">
39+
<div className="gql-conf-container gql-conf-section gql-prose xl:mb-16 xl:mt-8">
1840
<Resources />
1941
</div>
2042
</main>

src/app/conf/2025/resources/prose.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--grid-col-content: 1;
55

66
@apply xl:[--grid-col-content:3];
7-
@apply typography-body-md grid grid-cols-1 gap-6 xl:my-12 xl:grid-cols-[auto_1fr_var(--prose-width)_1fr];
7+
@apply typography-body-md grid grid-cols-1 gap-6 xl:grid-cols-[auto_1fr_var(--prose-width)_1fr];
88

99
& > * {
1010
grid-column: var(--grid-col-content);

src/app/conf/2025/resources/resources.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# GraphQLConf 2025 Resource Hub
2-
31
<aside className='gql-sticky-aside w-fit row-span-8 -mt-1 sm:max-xl:grid-cols-2 sm:max-xl:grid sm:max-xl:bg-neu-100 dark:sm:max-xl:bg-neu-50/50 sm:max-xl:p-4'>
42
{toc.map(({value, id, depth}) => <a key={id} data-depth={depth} className='block raw hover:bg-neu-100 dark:hover:bg-neu-50 py-2 p-4 max-xl:-ml-4 hover:text-neu-900 text-neu-800 typography-menu xl:data-[depth=2]:text-lg data-[depth=2]:font-semibold' style={{
53
paddingLeft: (depth - 2) * 16 + 16,

0 commit comments

Comments
 (0)