File tree Expand file tree Collapse file tree 6 files changed +189
-118
lines changed Expand file tree Collapse file tree 6 files changed +189
-118
lines changed Original file line number Diff line number Diff line change 52
52
"/annual-report-1.5ebe2b34.png" : " HmbFFbaUL79rvnCKQ-2oRSLETM2FFh5v5dZxwWquuVM=" ,
53
53
"/audience.f60c1c99.jpg" : " pqx3E31xAO87mNEBlZKqCTX+LRiPlOuQThWQZf08A4A=" ,
54
54
"/banner.10d4d66b.jpg" : " 9UJqBQ9RQu2sxDdJ5uaQr3crx2ZXrlOKMAmY82R8ZBA=" ,
55
- "/blur-bean -cropped.62af4aa2.webp" : " rdPhhzi5e+RLv-u0B-uPkp-eCYnyGlO84Yn0zCLLG4c=" ,
55
+ "/-cropped.62af4aa2.webp" : " rdPhhzi5e+RLv-u0B-uPkp-eCYnyGlO84Yn0zCLLG4c=" ,
56
56
"/blur-bean.21b930bd.webp" : " eTUigN2JSyvccNXMnRwneZJ1YIeNnrVs3klseGSUa7o=" ,
57
57
"/blur-bean.314cdc4a.webp" : " YAysN2NZeYYWHNI8cFCabzsTifCknmbp-r+P1LAs1bE=" ,
58
58
"/blur-bean.d5aa6d13.webp" : " 30xrtHSB6py7q6r2HxdKzm4gt8WoCiWRownamqyf3wM=" ,
189
189
"/uri.387cb001.jpg" : " kSx4huEjQidwIg6bF8UEWLiPACDl0nQ0aqxA2R2LIe0=" ,
190
190
"/whiteboard.60eac8e3.jpg" : " NodBqUaO+IanhuPaP9o5jCIe+gSrwyZ9TZ3QUdlWbBg=" ,
191
191
"/workshop.e02e3501.jpg" : " D9ON1z6-vKcjxv50gOH+5XS9HTEWUpc4UgIPW5OXHxE="
192
- }
192
+ }
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ function HeroStripes() {
57
57
image = { logoBlurred }
58
58
className = "relative h-full bg-gradient-to-b from-pri-base to-pri-lighter opacity-0 transition-opacity duration-[1.5s] [mask-position:center_12%] [mask-size:110%] data-[loaded=true]:opacity-100 dark:to-pri-base sm:[mask-size:auto_300%] lg:[mask-position:7%_7%] lg:[mask-size:200%]"
59
59
style = { {
60
- maskImage : `url( ${ logoBlurred . src } )` ,
61
- WebkitMaskImage : `url( ${ logoBlurred . src } )` ,
60
+ maskImage : `var(-- src)` ,
61
+ WebkitMaskImage : `var(-- src)` ,
62
62
maskRepeat : "no-repeat" ,
63
63
WebkitMaskRepeat : "no-repeat" ,
64
64
} }
Original file line number Diff line number Diff line change @@ -22,19 +22,28 @@ export function HowItWorks() {
22
22
const inView = useInView ( sectionRef )
23
23
24
24
return (
25
- < section ref = { sectionRef } className = "gql-container gql-section xl:py-20" >
25
+ < section
26
+ ref = { sectionRef }
27
+ className = "gql-container gql-section xl:py-20"
28
+ // this is mostly for Playwright, we're not getting a hydration warning normally
29
+ suppressHydrationWarning
30
+ >
26
31
< SectionLabel className = "mb-6" > How it works</ SectionLabel >
27
32
< h2 className = "typography-h2 mb-6 lg:mb-16" > A GraphQL Query</ h2 >
28
- { /* todo: we need to wrap this in a vertical scrollview with max width about 420px as we now use position: absolute for dynamic content */ }
29
33
< div className = "relative" >
30
34
< ol className = "gql-radial-gradient list-none gap-px max-md:bg-gradient-to-r max-md:from-transparent max-md:via-neu-400 max-md:to-transparent lg:grid lg:grid-cols-3" >
31
35
< HowItWorksListItem text = "Describe your data" code = { < CodeA /> } />
32
36
< HowItWorksListItem
37
+ inert = { inView }
33
38
text = "Ask for what you want"
34
- icon = { < PlayButton /> }
39
+ icon = { < PlayButton disabled = { inView } /> }
35
40
code = { < CodeB /> }
36
41
/>
37
- < HowItWorksListItem text = "Get predictable results" code = { < CodeC /> } />
42
+ < HowItWorksListItem
43
+ inert = { inView }
44
+ text = "Get predictable results"
45
+ code = { < CodeC /> }
46
+ />
38
47
</ ol >
39
48
{ inView && (
40
49
< ol
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Button } from "../../../app/conf/_design-system/button"
4
4
export function PlayButton ( {
5
5
className,
6
6
...props
7
- } : React . HTMLAttributes < HTMLButtonElement > ) {
7
+ } : React . ButtonHTMLAttributes < HTMLButtonElement > ) {
8
8
return (
9
9
< Button
10
10
variant = "tertiary"
@@ -13,11 +13,12 @@ export function PlayButton({
13
13
className ,
14
14
) }
15
15
onClick = { props . onClick }
16
+ disabled = { props . disabled }
16
17
>
17
18
< svg fill = "currentColor" viewBox = "0 0 24 24" className = "size-4" >
18
19
< path d = "M10 20H8V4h2v2h2v3h2v2h2v2h-2v2h-2v3h-2v2z" />
19
20
</ svg >
20
- < span className = "sr-only" > Run query</ span >
21
+ { ! props . disabled && < span className = "sr-only" > Run query</ span > }
21
22
</ Button >
22
23
)
23
24
}
Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ export default class MiniGraphiQL extends Component<
94
94
)
95
95
96
96
return (
97
- < div className = "[&:not(:first-child)]:_mt-6 grid grid-cols-2 border border-neu-200 text-sm dark:border-neu-50" >
97
+ < div
98
+ className = "[&:not(:first-child)]:_mt-6 grid grid-cols-2 border border-neu-200 text-sm dark:border-neu-50"
99
+ suppressHydrationWarning
100
+ >
98
101
{ Object . keys ( this . state . variableToType ) . length > 0 ? (
99
102
< div className = "flex flex-col" >
100
103
{ editor }
You can’t perform that action at this time.
0 commit comments