Skip to content

Commit 7da99eb

Browse files
committed
post-audit improvements
1 parent 8ac3b92 commit 7da99eb

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

src/components/index-page/graphql-advantages/optimization.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import OptimizationSvg from "./optimization.svg?svgr"
33
export function OptimizationFigure() {
44
return (
55
<div
6-
className="flex w-full bg-gradient-to-b from-[hsla(75,57%,97%,0)] to-white px-[14px] py-[30px] dark:to-neu-100/20 xl:px-[46px] [&_pre]:!h-48"
6+
className="flex w-full items-center justify-center bg-gradient-to-b from-[hsla(75,57%,97%,0)] to-white px-[14px] py-[30px] dark:to-neu-100/20 xl:px-[46px] [&_pre]:!h-48"
77
aria-hidden
88
>
99
<OptimizationSvg className="max-w-full max-sm:h-[200px]" />

src/components/index-page/graphql-advantages/productivity.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ export function ProductivityFigure() {
1414
playsInline
1515
className="hidden dark:block"
1616
>
17-
<source src={`${VIDEOS_DIR}/graphiql-dark.mp4`} type="video/mp4" />
18-
</video>
19-
<video
20-
disablePictureInPicture
21-
autoPlay
22-
muted
23-
loop
24-
playsInline
25-
className="block dark:hidden"
26-
>
27-
<source src={`${VIDEOS_DIR}/graphiql-light.mp4`} type="video/mp4" />
17+
<source
18+
src={`${VIDEOS_DIR}/graphiql-dark.mp4`}
19+
media="(prefers-color-scheme: dark)"
20+
type="video/mp4"
21+
/>
22+
<source
23+
src={`${VIDEOS_DIR}/graphiql-light.mp4`}
24+
media="(prefers-color-scheme: light)"
25+
type="video/mp4"
26+
/>
2827
</video>
2928
<div
3029
/* the video is cropped a bit short at the bottom, so we're adding missing padding */

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ function ServerEdges({
9797
<>
9898
{paths.map((d, index) => {
9999
const isHighlighted = highlighted?.includes(index)
100-
console.log(d, index, isHighlighted && index + "h")
101100
return (
102101
<Fragment key={index}>
103102
<path

0 commit comments

Comments
 (0)