diff --git a/src/App.css b/src/App.css
index e20270c..ae01abe 100644
--- a/src/App.css
+++ b/src/App.css
@@ -6,6 +6,7 @@
width: 100%;
}
+
.App-title {
text-align: center;
font-size: 1.5em;
@@ -15,3 +16,14 @@
padding-top: 7rem;
background-color: #E6ECF0;
}
+
+ul{
+ list-style: none;
+ width: 50.5%;
+ padding-left: 18em;
+}
+
+li{
+ padding: 10;
+ background: white;
+}
diff --git a/src/App.js b/src/App.js
index 5f4cdf8..5ce71af 100644
--- a/src/App.js
+++ b/src/App.js
@@ -4,17 +4,23 @@ import timelineData from './data/timeline.json';
import Timeline from './components/Timeline';
+import TimelineEvent from './components/TimelineEvent';
+import Timestamp from './components/Timestamp';
+
class App extends Component {
render() {
- console.log(timelineData);
// Customize the code below
return (
- Application title
+ {timelineData.person}'s Social Media Feed
+
);
diff --git a/src/components/Timeline.js b/src/components/Timeline.js
index 624d4ec..5ade8d1 100644
--- a/src/components/Timeline.js
+++ b/src/components/Timeline.js
@@ -2,9 +2,25 @@ import React from 'react';
import './Timeline.css';
import TimelineEvent from './TimelineEvent';
-const Timeline = () => {
- // Fill in your code here
- return;
+
+
+const Timeline = (props) => {
+ const mappedTimeline = props.eventProps.map((event, index) => {
+ return (
+
+
+
+
+ );
+ });
+ return (
+
+ );
}
export default Timeline;
diff --git a/src/components/TimelineEvent.js b/src/components/TimelineEvent.js
index 9079165..f845f69 100644
--- a/src/components/TimelineEvent.js
+++ b/src/components/TimelineEvent.js
@@ -1,10 +1,23 @@
import React from 'react';
import './TimelineEvent.css';
import Timestamp from './Timestamp';
+import Timeline from './Timeline';
-const TimelineEvent = () => {
- // Fill in your code here
- return;
+
+const TimelineEvent = (props) => {
+ let time =
+
+ return(
+
+
+
+ {props.person}
+ {props.status}
+ {time}
+
+
+
+ );
}
export default TimelineEvent;