Skip to content

Commit 3ff932f

Browse files
committed
initial commit
1 parent 90ae4f2 commit 3ff932f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

src/components/Card/CtaList.js

+21
Original file line numberDiff line numberDiff line change
@@ -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

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

0 commit comments

Comments
 (0)