File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 11.topic {
22 text-align : center ;
3+
4+ .image-preview {
5+ animation : fadein .65s ease-out ;
6+
7+ @keyframes fadein {
8+ 0% {
9+ opacity : 0 ;
10+ }
11+ 100% {
12+ opacity : 1.0 ;
13+ }
14+ }
15+ }
316}
Original file line number Diff line number Diff line change @@ -2,9 +2,17 @@ var React = require('react');
22
33module . exports = React . createClass ( {
44 render : function ( ) {
5- return < div >
6- I am a comment box.
7- { this . props . comments }
8- </ div >
5+ return < ul className = "list-group" >
6+ { this . renderComments ( ) }
7+ </ ul >
8+ } ,
9+ renderComments : function ( ) {
10+ return this . props . comments . slice ( 0 , 20 ) . map ( function ( comment ) {
11+ return < li className = "list-group-item comment-box" key = { comment . id } >
12+ < span className = "badge" > { comment . ups } </ span >
13+ < h5 > { comment . author } </ h5 >
14+ { comment . comment }
15+ </ li >
16+ } )
917 }
1018} ) ;
You can’t perform that action at this time.
0 commit comments