Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (44 sloc) 1.2 KB
import React from 'react';
import { render, Document, Artboard, Page } from 'react-sketchapp';
import ThemeProvider from './components/ThemeProvider';
import CardEventResume from './components/CardEventResume';
import Card from './components/Card';
import event from '../event.json';
function CardPage(props) {
return (
<Page style={{ flexDirection: 'row' }}>
{props.talks.map(talk => (
<Artboard style={{ marginHorizontal: 20 }}>
<Card
date={props.eventInfo.date}
time={props.eventInfo.time}
place={props.eventInfo.place}
title={talk.title}
name={talk.name}
image={talk.image}
/>
</Artboard>
))}
<Artboard>
<CardEventResume
date={props.eventInfo.date}
time={props.eventInfo.time}
place={props.eventInfo.place}
talks={props.talks}
/>
</Artboard>
</Page>
);
}
function MDocument(props) {
return (
<ThemeProvider>
<Document>
<CardPage eventInfo={props.data.info} talks={props.data.speakers} />
</Document>
</ThemeProvider>
);
}
export default () => {
render(<MDocument data={event} />);
};
You can’t perform that action at this time.