diff --git a/src/App.js b/src/App.js
index 5f4cdf8..80f2769 100644
--- a/src/App.js
+++ b/src/App.js
@@ -5,20 +5,21 @@ import timelineData from './data/timeline.json';
import Timeline from './components/Timeline';
class App extends Component {
+
render() {
console.log(timelineData);
-
- // Customize the code below
return (
- Application title
+ Welcome, {timelineData.person}
+
);
}
}
+
export default App;
diff --git a/src/components/Timeline.css b/src/components/Timeline.css
index e31f946..46a9763 100644
--- a/src/components/Timeline.css
+++ b/src/components/Timeline.css
@@ -1,5 +1,6 @@
.timeline {
- width: 30%;
+ width: 50%;
margin: auto;
text-align: left;
+ font-size: 1.5rem;
}
diff --git a/src/components/Timeline.js b/src/components/Timeline.js
index 624d4ec..1973b87 100644
--- a/src/components/Timeline.js
+++ b/src/components/Timeline.js
@@ -2,9 +2,20 @@ import React from 'react';
import './Timeline.css';
import TimelineEvent from './TimelineEvent';
-const Timeline = () => {
- // Fill in your code here
- return;
+const Timeline = (props) => {
+ const timelineComponents = props.items.map((event, i) => {
+ return (
+
+ );
+ });
+ return(
+
+ );
}
+
export default Timeline;
diff --git a/src/components/TimelineEvent.js b/src/components/TimelineEvent.js
index 9079165..e72aa5c 100644
--- a/src/components/TimelineEvent.js
+++ b/src/components/TimelineEvent.js
@@ -2,9 +2,14 @@ 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;
diff --git a/src/components/Timestamp.js b/src/components/Timestamp.js
index 9a39231..073178d 100644
--- a/src/components/Timestamp.js
+++ b/src/components/Timestamp.js
@@ -7,7 +7,7 @@ const Timestamp = (props) => {
const relative = time.fromNow();
return (
- {relative}
+ {relative}
);
};
diff --git a/src/data/timeline.json b/src/data/timeline.json
index b33813e..1f82960 100644
--- a/src/data/timeline.json
+++ b/src/data/timeline.json
@@ -25,11 +25,6 @@
"person": "Stephanie Hurlburt",
"status": "I don’t think you can do good work if you’re not at least occasionally talking to a person you’re building for.",
"timeStamp": "2018-05-18T23:09:38Z"
- },
- {
- "person": "Yan Zhu",
- "status": "//for a good time, paste this into twitter page console: c=new AudioContext;n=setInterval(\"for(n+=7,i=k,P='\u25b2.\\\n';i-=1/k;P+=P[i%2?(i%2*j-j+n/k^j)&1:2])j=k/i;doc.innerHTML=P;with(c.createOscillator())frequency.value=200*(j+n/k^j),connect(c.destination),start(),stop(n/k)\",k=64)",
- "timeStamp": "2018-05-18T23:51:01Z"
}
]
}