Skip to content

Commit 2591c75

Browse files
committed
Draft Hero component
1 parent e2d17b3 commit 2591c75

File tree

2 files changed

+62
-29
lines changed

2 files changed

+62
-29
lines changed

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

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import { clsx } from "clsx"
2+
import Image from "next-image-export-optimizer"
3+
import Link from "next/link"
4+
import { CalendarIcon } from "../pixelarticons/calendar-icon"
5+
import { PinIcon } from "../pixelarticons/pin-icon"
6+
import { GET_TICKETS_LINK } from "../links"
7+
import { Button } from "../../_design-system/button"
8+
9+
export function Hero() {
10+
return (
11+
<section className="bg-pri-base dark:bg-pri-darker text-neu-0 dark:text-neu-900 relative flex flex-col justify-center">
12+
<div className="relative z-10 flex flex-col gap-12 px-4 py-24 md:gap-12 md:px-24">
13+
<div className="flex flex-col gap-10 md:flex-row md:items-center md:justify-between">
14+
<div className="flex flex-col gap-2">
15+
<h1 className="typography-d1 flex flex-wrap gap-2">
16+
<span>GraphQLConf</span>
17+
<span className="text-sec-base">2025</span>
18+
</h1>
19+
<div className="flex items-center gap-16">
20+
<span className="text-sm md:text-base">hosted by</span>
21+
<Image
22+
src="/assets/logo-foundation-wordmark.svg"
23+
alt="GraphQL Foundation"
24+
width={180}
25+
height={24}
26+
className="h-6 w-auto dark:invert"
27+
/>
28+
</div>
29+
</div>
30+
</div>
31+
32+
<div className="flex flex-col gap-8">
33+
<DateAndLocation />
34+
<Button className="w-fit" href={GET_TICKETS_LINK}>
35+
Get your tickets
36+
</Button>
37+
</div>
38+
</div>
39+
</section>
40+
)
41+
}
42+
43+
function DateAndLocation() {
44+
return (
45+
<div className="flex flex-col gap-4 md:flex-row md:gap-6">
46+
<div className="flex items-center gap-2">
47+
<CalendarIcon className="size-6" />
48+
<time dateTime="2025-09-08">September 08</time>
49+
<span>-</span>
50+
<time dateTime="2025-09-10">10, 2025</time>
51+
</div>
52+
<div className="flex items-center gap-2">
53+
<PinIcon className="size-6" />
54+
<address className="typography-body-md not-italic">
55+
Amsterdam, Netherlands
56+
</address>
57+
</div>
58+
</div>
59+
)
60+
}

src/app/conf/2025/page.tsx

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,13 @@ import { FAQ } from "./faq"
77
import { Register } from "./register"
88
import { Sponsors } from "./sponsors"
99
import { Speakers } from "./speakers"
10-
import { RegisterToday } from "./register-today"
10+
import { RegisterToday } from "./components/register-today"
11+
import { Hero } from "./components/hero"
1112

1213
export const metadata: Metadata = {
1314
title: "GraphQLConf 2025 — Sept 08-10",
1415
}
1516

16-
function Hero() {
17-
return (
18-
<section className="conf-hero-2025 relative">
19-
<div className="flex h-full flex-col justify-center py-16 md:py-28">
20-
<div className="flex flex-col items-center justify-center">
21-
<h1 className="text-center text-5xl font-bold md:text-7xl">
22-
GraphQLConf <span className="font-light">2025</span>
23-
</h1>
24-
<HostedByGraphQLFoundation className="mb-6 h-8 w-full shrink-0 self-start lg:h-10" />
25-
<div className="flex flex-col justify-center text-xl font-medium md:flex-row md:gap-2">
26-
<div className="flex items-center gap-1">
27-
<time dateTime="2025-09-08">September 08</time>
28-
<span>-</span>
29-
<time dateTime="2025-09-10">10, 2025</time>
30-
</div>
31-
<span className="hidden md:block">|</span>
32-
<address className="not-italic">Amsterdam, Netherlands</address>
33-
</div>
34-
</div>
35-
</div>
36-
<div
37-
className="absolute bottom-0 left-1/2 h-px w-[90%] -translate-x-1/2 bg-white/10"
38-
aria-hidden="true"
39-
/>
40-
</section>
41-
)
42-
}
43-
4417
function Intro() {
4518
return (
4619
<section className="flex flex-col gap-20 md:gap-32">

0 commit comments

Comments
 (0)