File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react"
2
+ import CtaData from '../../data/ctas.json' ;
3
+ import Cta from "./Cta" ;
4
+ import Section from "../section" ;
5
+
6
+ const CtaList = ( ) => (
7
+ < Section headingTitle = "Call-to-Action" >
8
+ < div className = "cards" >
9
+ { CtaData . slice ( 0 , 3 ) . map ( ( cta ) => (
10
+ < Cta
11
+ grid = "show-1-3"
12
+ title = { cta . title }
13
+ text = { cta . text }
14
+ btn1 = { cta . btn1 }
15
+ btn2 = { cta . btn2 }
16
+ />
17
+ ) ) }
18
+ </ div >
19
+ </ Section >
20
+ )
21
+ export default CtaList
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ const Section = ( props ) => (
4
+ < section className = "l-cards container" >
5
+ < div className = "l-cards__heading" >
6
+ < h4 > { props . headingTitle } </ h4 >
7
+ </ div >
8
+ { props . children }
9
+ </ section >
10
+ )
11
+ export default Section
You can’t perform that action at this time.
0 commit comments