File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 22 display : inline-block ;
33 position : relative ;
44
5+ .inset {
6+ position : absolute ;
7+ bottom : 5px ;
8+ left : 0px ;
9+ width : 100% ;
10+ background-color : white ;
11+ text-align : center ;
12+ opacity : .7 ;
13+ }
14+
515 .glyphicon {
616 position : absolute ;
717 top : 50% ;
Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ module.exports = React.createClass({
1414 >
1515 { this . props . animated && this . state . hovering ? this . video ( ) : this . image ( ) }
1616 { this . props . animated && ! this . state . hovering ? this . icon ( ) : null }
17+ { this . state . hovering ? this . inset ( ) : null }
18+ </ div >
19+ } ,
20+ inset : function ( ) {
21+ return < div className = "inset" >
22+ Views: { this . props . views }
23+ < br />
24+ Upvotes: { this . props . ups }
1725 </ div >
1826 } ,
1927 image : function ( ) {
You can’t perform that action at this time.
0 commit comments