Skip to content

Commit 3064ec7

Browse files
committed
Tweak styles for mobiles and large screen sizes
1 parent ed2bb15 commit 3064ec7

File tree

3 files changed

+36
-28
lines changed

3 files changed

+36
-28
lines changed

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

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,36 @@ import { ImageLoaded } from "./image-loaded"
1414

1515
export function Hero() {
1616
return (
17-
<section className="isolate flex flex-col justify-center bg-pri-base text-neu-0 dark:bg-pri-darker dark:text-neu-900">
18-
<div className="relative mx-auto flex w-[90rem] max-w-full flex-col gap-12 overflow-hidden p-4 pt-6 md:gap-12 md:bg-left md:px-24 xl:pb-16 xl:pt-24">
17+
<article className="relative isolate flex flex-col justify-center bg-pri-base text-neu-0 dark:bg-pri-darker dark:text-neu-900">
18+
<article className="relative">
1919
<Stripes />
20-
<div className="flex gap-10 max-md:flex-col md:justify-between">
21-
<h1 className="flex flex-wrap gap-2 typography-d1">
22-
<span>GraphQLConf</span>
23-
<span className="text-sec-base">2025</span>
24-
</h1>
25-
<div className="flex h-min items-center gap-4">
26-
<span className="whitespace-pre typography-body-sm">hosted by</span>
27-
<img
28-
src={graphqlFoundationWordmarkSvg.src}
29-
alt="GraphQL Foundation"
30-
width={128}
31-
height={34.877}
32-
/>
20+
<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">
21+
<div className="flex gap-10 max-md:flex-col md:justify-between">
22+
<h1 className="flex flex-wrap gap-2 typography-d1">
23+
<span>GraphQLConf</span>
24+
<span className="text-sec-base">2025</span>
25+
</h1>
26+
<div className="flex h-min items-center gap-4">
27+
<span className="whitespace-pre typography-body-sm">
28+
hosted by
29+
</span>
30+
<img
31+
src={graphqlFoundationWordmarkSvg.src}
32+
alt="GraphQL Foundation"
33+
width={128}
34+
height={34.877}
35+
/>
36+
</div>
3337
</div>
34-
</div>
3538

36-
<div className="flex flex-col gap-8">
37-
<DateAndLocation />
38-
<Button className="md:w-fit" href={GET_TICKETS_LINK}>
39-
Get your tickets
40-
</Button>
39+
<div className="flex flex-col gap-8">
40+
<DateAndLocation />
41+
<Button className="md:w-fit" href={GET_TICKETS_LINK}>
42+
Get your tickets
43+
</Button>
44+
</div>
4145
</div>
42-
</div>
46+
</article>
4347
<div className="bg-[#000]">
4448
<Image
4549
src={heroPhoto}
@@ -49,7 +53,7 @@ export function Hero() {
4953
className="mx-auto h-[560px] w-[1920px] max-w-full object-cover"
5054
/>
5155
</div>
52-
</section>
56+
</article>
5357
)
5458
}
5559

@@ -82,13 +86,12 @@ function Stripes() {
8286
<ImageLoaded
8387
role="presentation"
8488
image={blurBean}
85-
className="pointer-events-none absolute inset-x-0 bottom-[-385px] top-[-203px] -z-10 translate-y-12 opacity-0 transition duration-500 ease-linear data-[loaded=true]:translate-y-0 data-[loaded=true]:opacity-100"
89+
className="pointer-events-none absolute inset-x-0 bottom-[-385px] top-[-203px] -z-10 translate-y-12 opacity-0 transition duration-[400ms] ease-linear [mask-size:100%_50%] data-[loaded=true]:translate-y-0 data-[loaded=true]:opacity-100 sm:[mask-size:125%] xl:[mask-size:100%]"
8690
// todo: animate opacity up after the image is loaded
8791
style={{
8892
maskImage: `url(${blurBean.src})`,
8993
WebkitMaskImage: `url(${blurBean.src})`,
90-
maskSize: "100%",
91-
WebkitMaskSize: "100%",
94+
// maskSize: "100%", // todo: I need the newly exported full blur bean with rotation to match the mobile design.
9295
maskRepeat: "no-repeat",
9396
WebkitMaskRepeat: "no-repeat",
9497
maskPosition: "center",

src/app/conf/2025/sponsors.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Grafbase from "public/img/conf/Sponsors/Grafbase.svg"
22

33
import { clsx } from "clsx"
44
import NextImage from "next-image-export-optimizer"
5+
import { Fragment } from "react"
56

67
type LogosType = {
78
icon: string
@@ -97,7 +98,7 @@ export function Sponsors() {
9798
<section>
9899
<h1 className="conf-heading mb-12">Sponsors</h1>
99100
{SPONSORS.map(({ title, logos }, i) => (
100-
<>
101+
<Fragment key={i}>
101102
<div className="mb-2 flex items-center gap-2 border-b-2 border-dotted border-white/40 pb-1.5">
102103
{/* Square box */}
103104
<div className="size-2.5 bg-primary" />
@@ -108,7 +109,7 @@ export function Sponsors() {
108109
className="flex"
109110
linkClassName="p-8 lg:p-16 h-28 lg:h-[220px]"
110111
/>
111-
</>
112+
</Fragment>
112113
))}
113114
</section>
114115
)

src/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,3 +507,7 @@ div[id^="headlessui-menu-items"] {
507507
.gql-focus-visible {
508508
@apply focus-visible:outline focus-visible:outline-[3px] focus-visible:outline-offset-[5px] focus-visible:outline-neu-900;
509509
}
510+
511+
.gql-conf-container {
512+
@apply w-[120rem];
513+
}

0 commit comments

Comments
 (0)