We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90ae4f2 commit 3ff932fCopy full SHA for 3ff932f
src/components/Card/CtaList.js
@@ -0,0 +1,21 @@
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
src/components/section.js
@@ -0,0 +1,11 @@
+import React from 'react'
+const Section = (props) => (
+ <section className="l-cards container">
+ <div className="l-cards__heading">
+ <h4>{props.headingTitle}</h4>
+ {props.children}
+ </section>
+export default Section
0 commit comments