Skip to content

Commit 7a9a2c3

Browse files
committed
Make the image on the front page a clickable link to our test game in the web player
1 parent 0bb5bee commit 7a9a2c3

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

content/css/easyrpg.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

content/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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">

0 commit comments

Comments
 (0)