@@ -25,6 +25,7 @@ export function FlowExampleSection({ content }: FlowExampleSectionProps) {
2525 content . flow ?. items ?. map ( ( item , index ) => ( {
2626 id : String ( item . id ?? index ) ,
2727 node : {
28+ icon : getIcon ( item . icon , 16 ) ,
2829 color : item . color as NodeAccent ,
2930 outline : item . outline !== false ,
3031 segments : item . segments . map ( ( segment ) => ( {
@@ -33,11 +34,10 @@ export function FlowExampleSection({ content }: FlowExampleSectionProps) {
3334 } ) ) ,
3435 } ,
3536 } ) ) ?? [ ]
36- const isCenter = content . sectionLayout === "flowCenter"
37- const isRight = content . sectionLayout === "flowRight"
37+ const isFlowRight = content . flowLayout === "right"
3838 const showBorder = Boolean ( content . showBorder )
3939 const flow = (
40- < div className = { cn ( "relative m-2 min-w-0 overflow-hidden rounded-2xl border border-white/10 bg-light" , isCenter ? "min-h-72" : "min-h-72 lg:min-h-96", isRight && "lg:order-2" ) } >
40+ < div className = { cn ( "relative m-2 min-h-72 min- w-0 overflow-hidden rounded-2xl border border-white/10 bg-light lg:min-h-96" , isFlowRight && "lg:order-2" ) } >
4141 < DotBackground
4242 className = "opacity-50 mask-[radial-gradient(ellipse_at_center,black_35%,transparent_85%)]"
4343 dotColor = "rgba(255,255,255,0.14)"
@@ -52,10 +52,9 @@ export function FlowExampleSection({ content }: FlowExampleSectionProps) {
5252 className = { cn (
5353 "flex flex-col justify-center" ,
5454 showBorder && "p-8 md:p-10" ,
55- ! showBorder && isCenter && "pt-8 md:pt-10" ,
56- ! showBorder && ! isCenter && ! isRight && "py-8 pl-8 md:py-10 md:pl-10" ,
57- ! showBorder && isRight && "py-8 pr-8 md:py-10 md:pr-10" ,
58- isRight && "lg:order-1"
55+ ! showBorder && ! isFlowRight && "py-8 pl-8 md:py-10 md:pl-10" ,
56+ ! showBorder && isFlowRight && "py-8 pr-8 md:py-10 md:pr-10" ,
57+ isFlowRight && "lg:order-1"
5958 ) }
6059 delayChildren = { 0.06 }
6160 staggerChildren = { 0.08 }
@@ -72,26 +71,22 @@ export function FlowExampleSection({ content }: FlowExampleSectionProps) {
7271 ) }
7372 </ StaggerContainer >
7473 )
75-
7674 const example = (
77- < article className = { cn ( "relative z-10 overflow-hidden" , isCenter ? "flex flex-col" : "grid lg:grid-cols-2" ) } >
78- { isCenter ? (
79- < >
80- { flow }
81- { ( content . contentHeading || content . contentDescription ) && body }
82- </ >
83- ) : (
84- < >
85- { flow }
86- { body }
87- </ >
88- ) }
75+ < article className = "relative z-10 grid min-h-96 overflow-hidden lg:grid-cols-2" >
76+ { flow }
77+ { body }
8978 </ article >
9079 )
9180
9281 return (
93- < Section heading = { content . sectionHeading } description = { content . sectionDescription } linkButton = { content . sectionLinkButton } funnelType = "center" animation = { { preset : "none" } } >
94- < div className = { cn ( "mx-auto w-full" , isCenter && "max-w-5xl" ) } >
82+ < Section
83+ heading = { content . sectionHeading }
84+ description = { content . sectionDescription }
85+ linkButton = { content . sectionLinkButton }
86+ funnelType = { content . sectionLayout ?? "center" }
87+ animation = { { preset : "none" } }
88+ >
89+ < div className = "mx-auto w-full" >
9590 { showBorder ? (
9691 < Card size = "lg" variant = "light" className = "p-2!" >
9792 { example }
0 commit comments