diff --git a/common/app/routes/challenges/views/backend/Back-End.jsx b/common/app/routes/challenges/views/backend/Back-End.jsx index f15ed99ba4c..fd062e4e149 100644 --- a/common/app/routes/challenges/views/backend/Back-End.jsx +++ b/common/app/routes/challenges/views/backend/Back-End.jsx @@ -146,6 +146,7 @@ export class BackEnd extends PureComponent { +
({ id, - videoId, + image, title, description }) @@ -32,9 +31,9 @@ const mapStateToProps = createSelector( const propTypes = { description: PropTypes.arrayOf(PropTypes.string), id: PropTypes.string, + image: PropTypes.string, isCompleted: PropTypes.bool, - title: PropTypes.string, - videoId: PropTypes.string + title: PropTypes.string }; export class Project extends PureComponent { @@ -42,10 +41,11 @@ export class Project extends PureComponent { const { id, title, - videoId, + image, isCompleted, description } = this.props; + const imageURL = '//i.imgur.com/' + image + '.png'; return ( @@ -59,9 +59,10 @@ export class Project extends PureComponent { md={ 8 } xs={ 12 } > -
diff --git a/common/models/challenge.json b/common/models/challenge.json index 2ad70bfacbd..0126e540ac8 100644 --- a/common/models/challenge.json +++ b/common/models/challenge.json @@ -65,6 +65,9 @@ "description": { "type": "array" }, + "image": { + "type": "string" + }, "tests": { "type": "array" }, diff --git a/seed/challenges/03-front-end-libraries/front-end-libraries-projects.json b/seed/challenges/03-front-end-libraries/front-end-libraries-projects.json index 36a76315abd..ff9fada698c 100644 --- a/seed/challenges/03-front-end-libraries/front-end-libraries-projects.json +++ b/seed/challenges/03-front-end-libraries/front-end-libraries-projects.json @@ -14,9 +14,7 @@ "Once you're done, submit the URL to your working project with all its tests passing.", "Remember to use the Read-Search-Ask method if you get stuck." ], - "challengeSeed": [ - "A9mEKIF" - ], + "image": "A9mEKIF", "tests": [], "type": "zipline", "isRequired": true, @@ -43,9 +41,7 @@ "Remember to use the Read-Search-Ask method if you get stuck." ], "releasedOn": "January 10, 2017", - "challengeSeed": [ - "FFDvuCP" - ], + "image": "FFDvuCP", "tests": [], "type": "zipline", "isRequired": true, @@ -72,9 +68,7 @@ "Remember to use the Read-Search-Ask method if you get stuck." ], "releasedOn": "February 17, 2017", - "challengeSeed": [ - "OkeFgKL" - ], + "image": "OkeFgKL", "tests": [], "type": "zipline", "isRequired": true, @@ -102,9 +96,7 @@ "Once you're done, submit the URL to your working project with all its tests passing.", "Remember to use the Read-Search-Ask method if you get stuck." ], - "challengeSeed": [ - "xlAXPjX" - ], + "image": "xlAXPjX", "tests": [], "type": "zipline", "challengeType": 3, @@ -126,9 +118,7 @@ "Once you're done, submit the URL to your working project with all its tests passing.", "Remember to use the Read-Search-Ask method if you get stuck." ], - "challengeSeed": [ - "u5RTBt4" - ], + "image": "u5RTBt4", "tests": [], "type": "zipline", "isRequired": true, @@ -145,4 +135,4 @@ } } ] -} \ No newline at end of file +}