@@ -406,12 +406,40 @@ function SVGDefinitions() {
406
406
</ stop >
407
407
</ linearGradient >
408
408
409
- < clipPath id = "clip0_671_9150" >
410
- < rect x = "514" y = "113.5" width = "220" height = "220" rx = "8" fill = "white" />
411
- </ clipPath >
412
- < clipPath id = "clip1_671_9150" >
413
- < path d = "M514 113.5H734V333.5H514V113.5Z" fill = "white" />
414
- </ clipPath >
409
+ < filter id = "what-is-graphql--code-backdrop" >
410
+ < feGaussianBlur stdDeviation = "0 16" in = "SourceGraphic" result = "blur" />
411
+ < feBlend
412
+ in = "blur"
413
+ in2 = "SourceGraphic"
414
+ mode = "multiply"
415
+ result = "multiply"
416
+ />
417
+ < feColorMatrix
418
+ type = "saturate"
419
+ values = "2.0"
420
+ in = "multiply"
421
+ result = "saturated"
422
+ />
423
+ < feGaussianBlur stdDeviation = "0 2" in = "saturated" result = "blur1" />
424
+ < feColorMatrix
425
+ type = "saturate"
426
+ values = "1.7"
427
+ in = "blur1"
428
+ result = "blur1sat"
429
+ />
430
+ < feGaussianBlur stdDeviation = "0 1" in = "saturated" result = "blur2" />
431
+ < feBlend in = "blur1sat" in2 = "blur2" mode = "multiply" result = "blur" />
432
+ </ filter >
433
+ < filter id = "what-is-graphql--code-backdrop-2" >
434
+ < feMorphology operator = "erode" radius = "0 2" />
435
+ < feComponentTransfer >
436
+ < feFuncR type = "linear" slope = "1.5" />
437
+ < feFuncG type = "linear" slope = "1.5" />
438
+ < feFuncB type = "linear" slope = "1.5" />
439
+ < feFuncA type = "linear" slope = "1" />
440
+ </ feComponentTransfer >
441
+ < feGaussianBlur stdDeviation = "16" />
442
+ </ filter >
415
443
</ defs >
416
444
)
417
445
}
@@ -421,7 +449,8 @@ const components = {
421
449
< Pre
422
450
{ ...props }
423
451
containerClassName = "!absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 max-sm:scale-75"
424
- className = "!bg-transparent backdrop-blur-xl"
452
+ // the border color on white and black backgrounds blends into border-neu-200 (and border-neu-50 in dark mode)
453
+ className = "overflow-hidden border-none !bg-transparent before:absolute before:inset-0 before:-z-10 before:rounded-md before:border before:border-transparent before:bg-[rgba(55,72,13,0.12)] before:bg-clip-border before:[backdrop-filter:url(#what-is-graphql--code-backdrop)] after:absolute after:inset-[1.5px] after:z-[-9] after:rounded-[5px] after:bg-[linear-gradient(to_right,transparent,hsl(var(--color-neu-0))_15%,hsl(var(--color-neu-0))_85%,transparent)] after:[backdrop-filter:url(#what-is-graphql--code-backdrop-2)] dark:before:bg-[rgba(235,252,191,0.23)] dark:after:bg-[linear-gradient(to_right,transparent,transparent)]"
425
454
/>
426
455
) ,
427
456
code : Code ,
@@ -445,7 +474,6 @@ export function Wires({ className }: { className?: string }) {
445
474
return ( ) => animate ?. removeEventListener ( "repeatEvent" , inc )
446
475
} , [ ] )
447
476
448
- // TODO: Increment from 0 to 1 and 1 to 2 on `repeatEvent` in client and server edges.
449
477
return (
450
478
< div className = { clsx ( className , "relative" , classes . wires ) } >
451
479
< svg
0 commit comments