Skip to content

Commit f89c76e

Browse files
authored
new landing — vertical diagram (#43)
* Extract edges and boxes out from the components. * Make diagram boxes and edges responsive * Make the diagram less tall * Animate client edge on small screens * Animate server edges on small screens * Remove next step on background click per Uri's request * Rotate query sideways on small screens
1 parent fbb263d commit f89c76e

File tree

3 files changed

+405
-108
lines changed

3 files changed

+405
-108
lines changed

src/components/index-page/data-colocation/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ import {
1111
import { Pre } from "@/components/pre"
1212
import { SectionLabel } from "@/app/conf/_design-system/section-label"
1313
import InfoIcon from "@/app/conf/_design-system/pixelarticons/info.svg?svgr"
14+
import { useOnClickOutside } from "@/app/conf/_design-system/utils/useOnClickOutside"
15+
import { isSpanElement } from "@/app/conf/_design-system/utils/isSpanElement"
1416

1517
import { ComponentTree } from "./component-tree"
1618
import { FriendList } from "./friend-list"
1719

1820
import json from "./data-colocation.json"
1921
import Query from "./data-colocation.mdx"
2022
import "./data-colocation.css"
21-
import { useOnClickOutside } from "@/app/conf/_design-system/utils/useOnClickOutside"
22-
import { isSpanElement } from "@/app/conf/_design-system/utils/isSpanElement"
2323

2424
const highlightedFragments = {
2525
GetFriendList: 1,

src/components/index-page/what-is-graphql/wires.module.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,12 @@
8585
transform: rotateX(-90deg) translateY(60px) translateZ(150px);
8686
}
8787
}
88+
89+
@keyframes query-exit-sm {
90+
from {
91+
transform: rotateY(0deg) translateX(0px) translateZ(150px);
92+
}
93+
to {
94+
transform: rotateY(90deg) translateX(60px) translateZ(150px);
95+
}
96+
}

0 commit comments

Comments
 (0)