File tree Expand file tree Collapse file tree 1 file changed +36
-3
lines changed
src/components/learn-aggregator Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Original file line number Diff line number Diff line change 1+ import { ReactNode } from "react"
2+
13import { StripesDecoration } from "@/app/conf/_design-system/stripes-decoration"
4+ import { Eyebrow } from "@/_design-system/eyebrow"
25
36import blurBean from "./learn-blur-bean.webp"
4- import { Eyebrow } from "@/_design-system/eyebrow"
5- import { ReactNode } from "react"
67
78export 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}
1319export 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+
3669export function LearnHeroStripes ( ) {
3770 return (
3871 < div
You can’t perform that action at this time.
0 commit comments