File size: 643 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import React from 'react';
import jumboData from '../fixtures/jumbo.json';
import { Jumbotron } from '../components';
export function JumbotronContainer() {
return (
<Jumbotron.Container>
{jumboData.map((item) => (
<Jumbotron key={item.id} direction={item.direction}>
<Jumbotron.Pane>
<Jumbotron.Title>{item.title}</Jumbotron.Title>
<Jumbotron.SubTitle>{item.subTitle}</Jumbotron.SubTitle>
</Jumbotron.Pane>
<Jumbotron.Pane>
<Jumbotron.Image src={item.image} alt={item.alt}/>
</Jumbotron.Pane>
</Jumbotron>
))}
</Jumbotron.Container>
);
}
|