Skip to content

Commit

Permalink
Add 'note about resume' blurb
Browse files Browse the repository at this point in the history
  • Loading branch information
notlesh committed Jul 27, 2019
1 parent 84f29d3 commit a2e2124
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"html-react-parser": "^0.9.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
Expand Down
4 changes: 4 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
font-size: 1.1rem;
}

.extraEndContainer {
margin: 2px 8px 12px 26px;
}

.leftInfoBox {
margin: 8px 4px 18px 10px;
}
Expand Down
17 changes: 17 additions & 0 deletions src/ExtraEndContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import parse from 'html-react-parser';

import './App.css';

function ExtraEndContainer(props) {
return (
<div>
<p className="sectionHeader">{props.extra.headline}</p>
<div className="extraEndContainer">
<span className="extraText">{parse(props.extra.body)}</span>
</div>
</div>
);
}

export default ExtraEndContainer;
5 changes: 5 additions & 0 deletions src/MainContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import './App.css';
import RoleContainer from './RoleContainer';
import EducationContainer from './EducationContainer';
import ExtraEndContainer from './ExtraEndContainer';

function MainContent(props) {
return (
Expand All @@ -24,6 +25,10 @@ function MainContent(props) {
<EducationContainer key={education.text} education={education} />
)}
</div>

{ props.data.extraEnd.map(extra =>
<ExtraEndContainer key={extra.headline} extra={extra} />
)}
</div>
);
}
Expand Down
6 changes: 6 additions & 0 deletions src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ const content = {
text: "Studied Computer Science (University of North Texas)",
},
],
extraEnd: [
{ headline: "Note about this resume",
/* note that this is passed through html-react-parser, and is susceptible to injection attacks */
body: "This resume was created with ReactJS (Javascript/HTML/CSS). See the related github repo at <a href='https://github.com/notlesh/stephen-shelton-resume'>https://github.com/notlesh/stephen-shelton-resume</a> for more info.",
},
],
};

export default content;

0 comments on commit a2e2124

Please sign in to comment.