Skip to content

Commit 456a68a

Browse files
committed
wip
1 parent 827bb14 commit 456a68a

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

src/components/learn-aggregator/index.tsx

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1+
import { ReactNode } from "react"
2+
13
import { StripesDecoration } from "@/app/conf/_design-system/stripes-decoration"
4+
import { Eyebrow } from "@/_design-system/eyebrow"
25

36
import blurBean from "./learn-blur-bean.webp"
4-
import { Eyebrow } from "@/_design-system/eyebrow"
5-
import { ReactNode } from "react"
67

78
export interface TeaserSectionProps {
89
eyebrow: string
910
title: string
1011
description: string
1112
cta: ReactNode
13+
items: Array<{
14+
title: string
15+
description: string
16+
href: string
17+
}>
1218
}
1319
export function TeaserSection({
1420
eyebrow,
1521
title,
1622
description,
1723
cta,
24+
items,
1825
}: TeaserSectionProps) {
1926
return (
2027
<div className="flex items-start gap-8 max-lg:flex-col lg:gap-12 xl:gap-16">
@@ -28,11 +35,37 @@ export function TeaserSection({
2835
{cta}
2936
</div>
3037
</header>
31-
<ul></ul>
38+
<ul className="gap-4 lg:gap-8">
39+
{items.map((item, index) => {
40+
return (
41+
<TeaserSectionListItem
42+
key={index}
43+
number={index + 1}
44+
title={item.title}
45+
description={item.description}
46+
/>
47+
)
48+
})}
49+
</ul>
3250
</div>
3351
)
3452
}
3553

54+
// https://www.figma.com/design/aPUvZDSxJfYDJtPd7GF2sB/GraphQL.org--Working-File?node-id=6368-6983&t=JE1eYbp6gpQRUILY-4
55+
// https://www.figma.com/design/aPUvZDSxJfYDJtPd7GF2sB/GraphQL.org--Working-File?node-id=5830-51637&t=JE1eYbp6gpQRUILY-4
56+
interface TeaserSectionListItemProps {
57+
number: number
58+
title: string
59+
description: string
60+
}
61+
function TeaserSectionListItem({
62+
number,
63+
title,
64+
description,
65+
}: TeaserSectionListItemProps) {
66+
return <li></li>
67+
}
68+
3669
export function LearnHeroStripes() {
3770
return (
3871
<div

0 commit comments

Comments
 (0)