diff --git a/src/App.css b/src/App.css
index e20270c..564d81c 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1,5 +1,5 @@
.App-header {
- background-color: #222;
+ background-color: #38A1F3;
padding-bottom: 0.5rem;
color: white;
position: fixed;
diff --git a/src/App.js b/src/App.js
index 5f4cdf8..9ee15a8 100644
--- a/src/App.js
+++ b/src/App.js
@@ -3,18 +3,25 @@ import './App.css';
import timelineData from './data/timeline.json';
import Timeline from './components/Timeline';
+// import TimelineEvent from './components/TimelineEvent'; //temp
+
class App extends Component {
+
render() {
console.log(timelineData);
+ const eventObjects = timelineData.events.map((event, i) => {
+ return event;
+ });
+ console.log(eventObjects);
- // Customize the code below
return (
- Application title
+ Soash Meeds
+
);
diff --git a/src/components/Timeline.js b/src/components/Timeline.js
index 624d4ec..3ddea33 100644
--- a/src/components/Timeline.js
+++ b/src/components/Timeline.js
@@ -1,10 +1,23 @@
import React from 'react';
import './Timeline.css';
import TimelineEvent from './TimelineEvent';
+// testing
+const Timeline = (props) => {
+ const eventComponents = props.events.map((event, i) => {
+ return (
+
+ );
+ });
-const Timeline = () => {
- // Fill in your code here
- return;
+ return (
+
+ );
}
export default Timeline;
+
diff --git a/src/components/TimelineEvent.js b/src/components/TimelineEvent.js
index 9079165..c9be93d 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;