Skip to content

Commit 3c4df6a

Browse files
committed
Add KeepLearning section
1 parent adebeb9 commit 3c4df6a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// https://www.figma.com/design/aPUvZDSxJfYDJtPd7GF2sB/GraphQL.org--Working-File?node-id=2947-75981&m=dev
2+
3+
import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.svg?svgr"
4+
import blurCorner from "./[category]/blur-corner.webp"
5+
import { StripesDecoration } from "@/app/conf/_design-system/stripes-decoration"
6+
import { Anchor } from "@/app/conf/_design-system/anchor"
7+
8+
export function KeepLearning({
9+
nextTitle,
10+
nextHref,
11+
}: {
12+
nextTitle: string
13+
nextHref: string
14+
}) {
15+
return (
16+
<section className="gql-container gql-section flex">
17+
<h2 className="max-md:hidden">Keep Learning</h2>
18+
<Anchor href={nextHref} className="relative">
19+
<span className="typography-menu flex gap-1 text-pri-base dark:text-pri-dark">
20+
Next
21+
<ArrowDownIcon className="size-4 -rotate-90" />
22+
</span>
23+
<p>{nextTitle}</p>
24+
<Stripes />
25+
</Anchor>
26+
</section>
27+
)
28+
}
29+
30+
function Stripes() {
31+
return (
32+
<div
33+
className="pointer-events-none absolute inset-0"
34+
style={{
35+
maskImage: `url(${blurCorner.src})`,
36+
WebkitMaskImage: `url(${blurCorner.src})`,
37+
}}
38+
>
39+
<StripesDecoration
40+
evenClassName="bg-[linear-gradient(90deg,hsl(var(--color-sec-lighter))_0_12px,hsl(var(--color-sec-light))_12px_24px)] dark:bg-[linear-gradient(90deg,hsl(var(--color-sec-dark)/0.22)_0_12px,hsl(var(--color-sec-base)/0.22)_12px_24px)]"
41+
// oddClassName="bg-[linear-gradient(90deg,hsl(var(--color-pri-light))_0_12px,hsl(var(--color-pri-base)/0)_12px_24px)] dark:bg-[linear-gradient(90deg,hsl(var(--color-sec-base)/0.14)_0_12px,hsl(var(--color-sec-light)/0.14)_12px_24px)]"
42+
angle="-90deg"
43+
/>
44+
</div>
45+
)
46+
}

0 commit comments

Comments
 (0)