Skip to content

Commit 0f07aea

Browse files
saihajdimaMachina
andauthored
conf page minor nits (#1869)
* make sponsors logos more responsive * consistency * text selection * Update src/app/conf/2025/sponsors.tsx Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com> * adjust the grid button * remove unused * prettier --------- Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
1 parent a0941ea commit 0f07aea

File tree

5 files changed

+28
-39
lines changed

5 files changed

+28
-39
lines changed

src/app/conf/2025/page.tsx

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Metadata } from "next"
2-
import { BusIcon, HostedByGraphQLFoundation } from "@/icons"
2+
import { HostedByGraphQLFoundation } from "@/icons"
33
import { Sponsors } from "./sponsors"
44
import { Rubik } from "next/font/google"
55
import GridButton from "../_components/grid-button"
@@ -163,16 +163,16 @@ function FAQSection() {
163163
<div id="faq" className={clsx("text-white py-16 px-4 md:px-8", styles.faq)}>
164164
<div className="max-w-7xl mx-auto grid md:grid-cols-2 gap-12">
165165
<div>
166-
<h2 className="text-4xl md:text-5xl font-bold mb-4">
166+
<h2 className="select-none text-4xl md:text-5xl font-bold mb-4">
167167
Frequently
168168
<br />
169169
Asked Questions
170170
</h2>
171-
<p className="text-sm">
171+
<p className="text-sm select-none">
172172
PLEASE CONTACT{" "}
173173
<a
174174
href="mailto:graphqlconf@graphql.org"
175-
className="text-primary hover:underline uppercase"
175+
className="text-primary hover:underline uppercase select-text"
176176
>
177177
graphqlconf@graphql.org
178178
</a>
@@ -187,7 +187,7 @@ function FAQSection() {
187187
>
188188
<summary className="py-6 flex items-center justify-start gap-2 text-left cursor-pointer list-none focus:outline-none">
189189
<ArrowRight className="shrink-0 size-5 transition-transform duration-200 group-hover:translate-x-1 group-open:rotate-90" />
190-
<span className="text-lg">{faq.question}</span>
190+
<span className="text-lg select-none">{faq.question}</span>
191191
</summary>
192192
<p
193193
className="pb-6 ml-7 -mt-4 text-gray-300 whitespace-pre-wrap [&>a]:underline"
@@ -232,20 +232,15 @@ export default function Page() {
232232
></div>
233233
</div>
234234

235-
<div className="container flex gap-20 flex-col pt-24">
236-
<div className="flex gap-12 lg:gap-24 max-md:flex-col">
237-
<div className="flex flex-col gap-5 text-white flex-1">
238-
<h2 className="text-3xl lg:text-[45px]/[4rem] font-normal">
239-
Celebrating 10 Years of GraphQL. Three transformative days of
240-
expert insights and innovation to shape the next decade of APIs
241-
together!
242-
</h2>
243-
<GridButton
244-
title="Get Tickets"
245-
href="https://cvent.me/PBNYEe?utm_source=graphql_conf_2025&utm_medium=website&utm_campaign=cta"
246-
/>
247-
</div>
248-
</div>
235+
<div className="container text-white flex flex-col mt-14 gap-14 md:mt-20 md:gap-20">
236+
<h2 className="text-3xl lg:text-5xl font-normal">
237+
Celebrating 10 Years of GraphQL. Three transformative days of expert
238+
insights and innovation to shape the next decade of APIs together!
239+
</h2>
240+
<GridButton
241+
title="Get Tickets"
242+
href="https://cvent.me/PBNYEe?utm_source=graphql_conf_2025&utm_medium=website&utm_campaign=cta"
243+
/>
249244
</div>
250245

251246
<Sponsors />
@@ -292,7 +287,7 @@ export default function Page() {
292287
href="https://cvent.me/PBNYEe?utm_source=graphql_conf_2025&utm_medium=website&utm_campaign=register_section"
293288
target="_blank"
294289
rel="noreferrer"
295-
className="relative z-0 px-28 py-4 text-white text-3xl font-semibold bg-primary hover:bg-primary flex items-center justify-center gap-2"
290+
className="px-20 md:px-28 py-4 text-center text-white text-3xl font-semibold bg-primary/85 hover:bg-primary/100 transition-colors"
296291
>
297292
Get Tickets
298293
</a>

src/app/conf/2025/sponsors.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function List({
5050
linkClassName?: string
5151
}) {
5252
return (
53-
<div className={clsx("flex gap-6 flex-col md:flex-row", className)}>
53+
<div className={clsx("flex gap-6 max-lg:flex-col", className)}>
5454
{items.map(({ link, icon, name }, i) => (
5555
<a
5656
key={i}
@@ -197,7 +197,7 @@ export function Sponsors() {
197197
href="https://events.linuxfoundation.org/wp-content/uploads/2024/12/sponsor_GraphQLConf_2025.pdf?utm_source=graphql_conf_2025&utm_medium=website&utm_campaign=sponsor_section"
198198
target="_blank"
199199
rel="noreferrer"
200-
className="relative z-0 px-28 py-4 text-white text-3xl font-semibold bg-[#E10098] hover:bg-[#ef00a3] flex items-center justify-center gap-2"
200+
className="px-20 md:px-28 py-4 text-center text-white text-3xl font-semibold bg-primary/85 hover:bg-primary/100 transition-colors"
201201
>
202202
Download Prospectus
203203
</a>

src/app/conf/_components/badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { clsx } from "clsx"
33

44
const badgeVariants = {
55
default:
6-
"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
6+
"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/85",
77
}
88

99
export function Badge({

src/app/conf/_components/grid-button.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@ const GridButton: React.FC<GridButtonProps> = ({
1616
return (
1717
<div
1818
id={id}
19-
className="relative w-full h-[500px] flex items-center justify-center overflow-hidden"
19+
className="relative w-full flex items-center justify-center overflow-hidden"
2020
>
2121
<div
22-
className="grid gap-0 md:scale-100 scale-75"
22+
className="grid"
2323
style={{
2424
gridTemplateColumns: "repeat(18, 60px)",
2525
gridTemplateRows: "repeat(6, 60px)",
26-
width: "1080px",
27-
height: "360px",
28-
boxSizing: "border-box",
2926
}}
3027
>
3128
{Array.from({ length: 18 * 5 + 2 }).map((_, index) => (
@@ -42,15 +39,13 @@ const GridButton: React.FC<GridButtonProps> = ({
4239
href={disabled ? undefined : href}
4340
target="_blank"
4441
rel="noreferrer"
45-
className="relative z-0 col-span-8 row-span-2 text-white text-3xl font-semibold bg-[#E10098] hover:bg-[#ef00a3] flex items-center justify-center gap-2"
42+
className="px-20 flex items-center justify-center md:px-28 py-4 text-center text-white text-3xl font-semibold bg-primary/85 hover:bg-primary/100 transition-colors"
4643
style={{
4744
gridColumn: "6 / span 8",
4845
gridRow: "3 / span 2",
4946
}}
5047
>
51-
<button className="text-white text-3xl font-semibold flex items-center justify-center gap-2">
52-
{title}
53-
</button>
48+
{title}
5449
</a>
5550
</div>
5651
</div>

src/code/tools/graphql-protect/general/graphql-protect.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ Getting started with GraphQL Protect is as simple as pulling the provided contai
1212
GraphQL Protect offers the following protection mechanism, and more:
1313

1414
1. [x] **Trusted Documents** (Persisted Operations)
15-
4. [x] **Max Aliases**
16-
5. [x] **Max Tokens**
17-
6. [x] **Max Depth**
18-
7. [x] **Max Batch**
19-
2. [x] **Block Field Suggestions**
20-
3. [x] **Obfuscate upstream errors**
15+
2. [x] **Max Aliases**
16+
3. [x] **Max Tokens**
17+
4. [x] **Max Depth**
18+
5. [x] **Max Batch**
19+
6. [x] **Block Field Suggestions**
20+
7. [x] **Obfuscate upstream errors**
2121
8. [x] **Enforce POST**
2222
9. [x] **Access Logging**
2323
10. [x] [... and more!](https://github.com/ldebruijn/graphql-protect?tab=readme-ov-file#features)
2424

25-
2625
Protecting your GraphQL API against abuse has never been easier, start protecting your API today.
2726

2827
The full [example can be found on GitHub](https://github.com/ldebruijn/graphql-protect?tab=readme-ov-file#installation).

0 commit comments

Comments
 (0)