diff --git a/src/App.js b/src/App.js index 5f4cdf8..9ecd35b 100644 --- a/src/App.js +++ b/src/App.js @@ -2,19 +2,24 @@ import React, { Component } from 'react'; import './App.css'; import timelineData from './data/timeline.json'; + import Timeline from './components/Timeline'; class App extends Component { render() { console.log(timelineData); + // Customize the code below - return ( + return(
-

Application title

+

Ada Lovelace's social media feed

+ + +
); diff --git a/src/components/Timeline.js b/src/components/Timeline.js index 624d4ec..f584223 100644 --- a/src/components/Timeline.js +++ b/src/components/Timeline.js @@ -2,9 +2,24 @@ import React from 'react'; import './Timeline.css'; import TimelineEvent from './TimelineEvent'; -const Timeline = () => { - // Fill in your code here - return; +const Timeline = (props) => { + + const events = props.events.map((event, i) => { + return ( + + + + ); + }); + + return ( +
+ { events } +
+ ); } export default Timeline; diff --git a/src/components/TimelineEvent.js b/src/components/TimelineEvent.js index 9079165..1be664e 100644 --- a/src/components/TimelineEvent.js +++ b/src/components/TimelineEvent.js @@ -2,9 +2,27 @@ import React from 'react'; import './TimelineEvent.css'; import Timestamp from './Timestamp'; -const TimelineEvent = () => { - // Fill in your code here - return; +const TimelineEvent = (props) => { + + + return( +
+ +
+ {props.person} +
+ +
+ {props.status} +
+ +
+ +
+ +
+ + ); } export default TimelineEvent;