|
| 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 | +} |
0 commit comments