Skip to content

Commit 0b62b46

Browse files
committed
wip
1 parent 7c9dcb6 commit 0b62b46

File tree

3 files changed

+38
-9
lines changed

3 files changed

+38
-9
lines changed

src/app/colors.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--color-neu-300: 76 14% 85%;
2020
--color-neu-400: 77 14% 80%;
2121
--color-neu-500: 74 14% 70%;
22-
--color-neu-600: 76 15% 60%;
22+
--color-neu-600: 76 15% 60%;
2323
--color-neu-700: 76 15% 40%;
2424
--color-neu-800: 77 14% 20%;
2525
--color-neu-900: 75 15% 5%;

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

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,40 @@ function SVGDefinitions() {
406406
</stop>
407407
</linearGradient>
408408

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>
415443
</defs>
416444
)
417445
}
@@ -421,7 +449,8 @@ const components = {
421449
<Pre
422450
{...props}
423451
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)]"
425454
/>
426455
),
427456
code: Code,
@@ -445,7 +474,6 @@ export function Wires({ className }: { className?: string }) {
445474
return () => animate?.removeEventListener("repeatEvent", inc)
446475
}, [])
447476

448-
// TODO: Increment from 0 to 1 and 1 to 2 on `repeatEvent` in client and server edges.
449477
return (
450478
<div className={clsx(className, "relative", classes.wires)}>
451479
<svg

tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Config } from "tailwindcss"
33
import typography from "@tailwindcss/typography"
44
import plugin from "tailwindcss/plugin"
55
import containerQueries from "@tailwindcss/container-queries"
6+
67
const config: Config = {
78
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}", "./theme.config.tsx"],
89
theme: {

0 commit comments

Comments
 (0)