File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,31 @@ $darkgrey: #202020;
117117 text-align : center ;
118118 padding : 1.5em 0 ;
119119
120+ #play-overlay {
121+ position : relative ;
122+ display : inline-block ;
123+
124+ a {
125+ position : absolute ;
126+ top : 0 ;
127+ left : 0 ;
128+ right : 0 ;
129+ bottom : 0 ;
130+ color : $lightgrey ;
131+ background : rgba (0 , 0 , 0 , 0.6 );
132+ font-size : 24px ;
133+ display : flex ;
134+ align-items : center ;
135+ justify-content : center ;
136+ opacity : 0 ;
137+ transition : opacity 0.3s ease ;
138+
139+ & :hover {
140+ opacity : 1 ;
141+ }
142+ }
143+ }
144+
120145 img {
121146 vertical-align : middle ;
122147 }
Original file line number Diff line number Diff line change @@ -17,9 +17,14 @@ <h1>Play your own RPG games anywhere</h1>
1717 Learn more about EasyRPG</ a >
1818 </ p >
1919 </ div >
20- < img src ="/images/easyrpg-player.png "
21- alt ="EasyRPG Player screenshot "
22- title ="EasyRPG Player ">
20+ < div id ="play-overlay ">
21+ < img src ="/images/easyrpg-player.png "
22+ alt ="EasyRPG Player screenshot "
23+ title ="EasyRPG Player ">
24+ < a href ="https://easyrpg.org/play/ ">
25+ Play our sample game
26+ </ a >
27+ </ div >
2328 </ div >
2429</ div >
2530< div id ="content ">
You can’t perform that action at this time.
0 commit comments