mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
Construct timeline
This commit is contained in:
20
src/componets/TimeItem.js
Normal file
20
src/componets/TimeItem.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
|
||||
export default class TimeItem extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.date = props.date;
|
||||
this.item = (
|
||||
<>
|
||||
<h2>{props.title}</h2>
|
||||
<div className="timeline-deets">
|
||||
<p>{props.children}</p>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
return <><p className="datetext">{this.date}</p><div className="timeline-item">{this.item}</div></>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user