diff --git a/imgur-client/sass/topic.scss b/imgur-client/sass/topic.scss index f0bb9ad..dc31fcd 100644 --- a/imgur-client/sass/topic.scss +++ b/imgur-client/sass/topic.scss @@ -1,3 +1,16 @@ .topic { text-align: center; + + .image-preview { + animation: fadein .65s ease-out; + + @keyframes fadein { + 0% { + opacity: 0; + } + 100% { + opacity: 1.0; + } + } + } } diff --git a/imgur-client/src/components/comment-box.jsx b/imgur-client/src/components/comment-box.jsx index 4c4b824..a212176 100644 --- a/imgur-client/src/components/comment-box.jsx +++ b/imgur-client/src/components/comment-box.jsx @@ -2,9 +2,17 @@ var React = require('react'); module.exports = React.createClass({ render: function(){ - return
- I am a comment box. - {this.props.comments} -
+ return + }, + renderComments: function() { + return this.props.comments.slice(0, 20).map(function(comment){ + return
  • + {comment.ups} +
    {comment.author}
    + {comment.comment} +
  • + }) } });