Skip to content

Commit 65d09f2

Browse files
committed
Okay, this is pretty good
1 parent 0b62b46 commit 65d09f2

File tree

1 file changed

+21
-2
lines changed
  • src/components/index-page/what-is-graphql

1 file changed

+21
-2
lines changed

src/components/index-page/what-is-graphql/wires.tsx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ function SVGDefinitions() {
431431
<feBlend in="blur1sat" in2="blur2" mode="multiply" result="blur" />
432432
</filter>
433433
<filter id="what-is-graphql--code-backdrop-2">
434-
<feMorphology operator="erode" radius="0 2" />
434+
<feMorphology operator="erode" radius="2 2" />
435435
<feComponentTransfer>
436436
<feFuncR type="linear" slope="1.5" />
437437
<feFuncG type="linear" slope="1.5" />
@@ -440,6 +440,25 @@ function SVGDefinitions() {
440440
</feComponentTransfer>
441441
<feGaussianBlur stdDeviation="16" />
442442
</filter>
443+
<filter id="what-is-graphql--code-backdrop-2-dark">
444+
<feMorphology in="SourceGraphic" operator="dilate" radius="0 2" />
445+
<feGaussianBlur stdDeviation="16" result="blur" />
446+
<feTurbulence
447+
type="fractalNoise"
448+
baseFrequency="0.01 0.5"
449+
numOctaves="1"
450+
seed="5"
451+
result="turbulence"
452+
/>
453+
<feGaussianBlur in="turbulence" stdDeviation="3" result="softMap" />
454+
<feDisplacementMap
455+
in="blur"
456+
in2="softMap"
457+
scale="110"
458+
xChannelSelector="R"
459+
yChannelSelector="G"
460+
/>
461+
</filter>
443462
</defs>
444463
)
445464
}
@@ -450,7 +469,7 @@ const components = {
450469
{...props}
451470
containerClassName="!absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 max-sm:scale-75"
452471
// 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)]"
472+
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:border-[rgba(235,252,191,0.2)] dark:before:bg-none dark:before:backdrop-blur-xl dark:before:[backdrop-filter:url(#what-is-graphql--code-backdrop-2-dark)] dark:after:bg-[linear-gradient(to_right,hsl(var(--color-neu-0)/0.5),hsl(var(--color-neu-0)/.8)_10%,hsl(var(--color-neu-0)/.8)_90%,hsl(var(--color-neu-0)/0.5))] dark:after:[backdrop-filter:blur(24px)]"
454473
/>
455474
),
456475
code: Code,

0 commit comments

Comments
 (0)