diff --git a/src/App.js b/src/App.js
index 76d86d2..983afcb 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,21 +1,18 @@
import React from 'react';
-import logo from './logo.svg';
import './App.css';
import timelineData from './data/timeline.json';
import Timeline from './components/Timeline';
function App() {
- console.log(timelineData);
-
- // Customize the code below
return (
-
+
- Application title
+ {`${timelineData.person}'s Social Media Feed`}
+
-
+
);
}
diff --git a/src/components/Timeline.css b/src/components/Timeline.css
index e31f946..a62b7e4 100644
--- a/src/components/Timeline.css
+++ b/src/components/Timeline.css
@@ -1,5 +1,7 @@
.timeline {
- width: 30%;
+ width: 80%;
+ padding: 20px;
+ word-wrap: break-word;
margin: auto;
text-align: left;
}
diff --git a/src/components/Timeline.js b/src/components/Timeline.js
index 463eb3e..a208594 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 = () => {
-
- return;
+const Timeline = (props) => {
+ const eventComponents = props.events.map((event) => {
+
+ return(
+
+ );
+
+ });
+
+ return (
+
+ );
}
export default Timeline;
\ No newline at end of file
diff --git a/src/components/TimelineEvent.css b/src/components/TimelineEvent.css
index ea6407a..5632221 100644
--- a/src/components/TimelineEvent.css
+++ b/src/components/TimelineEvent.css
@@ -1,6 +1,6 @@
.timeline-event {
display: grid;
- grid-template: 2rem auto 2rem / 1fr 1fr;
+ grid-template: 3rem auto 2rem / 8fr 8fr;
padding: 0.5rem;
border-bottom: 1px solid #E6ECF0;
background-color: #FFF;
diff --git a/src/components/TimelineEvent.js b/src/components/TimelineEvent.js
index cc476c2..e8454cf 100644
--- a/src/components/TimelineEvent.js
+++ b/src/components/TimelineEvent.js
@@ -2,9 +2,16 @@ import React from 'react';
import './TimelineEvent.css';
import Timestamp from './Timestamp';
-const TimelineEvent = () => {
+const TimelineEvent = (event) => {
- return;
+ return(
+
+ {event.person}
+ {event.status}
+
+
+ );
+
}
export default TimelineEvent;
\ No newline at end of file