Skip to content

Commit f923747

Browse files
feat: description
1 parent cebd877 commit f923747

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,20 @@ <h1>Arx Chess</h1>
1818
</li>
1919
<li><a href="play" class="filled">Local game</a></li>
2020
<li><a href="#" class="filled">Online game (soon)</a></li>
21-
<li><a href="play?tutorial" class="filled">Tutorial</a></li>
22-
<li><a href="pieces">Pieces</a></li>
21+
<li>
22+
The main objective of Arx Chess is to capture all of the opponent's castles. To achieve this, you must gain
23+
control of the board and acquire new pieces. These include not only regular pieces but also compound ones. You
24+
unlock the compound pieces by purchasing the basic ones first. You need to manage your gold wisely between
25+
expanding your forces and upgrading your castles. Have fun!
26+
</li>
27+
<li>
28+
To buy new pieces or upgrade a castle: <span class="touch">long-press</span><span class="no-touch">right-click
29+
on</span> the castle.
30+
</li>
31+
<li>
32+
To move a piece: left-click on the piece, then click on the desired destination.
33+
</li>
34+
<li><a href="pieces">All pieces</a></li>
2335
<li><a href="https://github.com/kacperwyczawski/arx-chess">Source code</a></li>
24-
<li><a href="https://github.com/kacperwyczawski/arx-chess/blob/main/README.md">About</a></li>
2536
</menu>
2637
</body>

play.css

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ menu {
4545

4646
& li {
4747
width: 100%;
48-
max-width: 16rem;
48+
max-width: 24rem;
49+
text-align: justify;
4950

5051
&:first-child {
5152
display: flex;
@@ -61,7 +62,7 @@ menu {
6162
background-color: transparent;
6263
color: var(--dark);
6364
padding: 1rem 2rem;
64-
max-width: 16rem;
65+
max-width: 24rem;
6566
width: 100%;
6667
display: block;
6768
text-align: center;
@@ -77,6 +78,24 @@ menu {
7778
}
7879
}
7980

81+
span.touch {
82+
display: none;
83+
}
84+
85+
span.no-touch {
86+
display: inline;
87+
}
88+
89+
@media not (hover: hover) {
90+
span.touch {
91+
display: inline;
92+
}
93+
94+
span.no-touch {
95+
display: none;
96+
}
97+
}
98+
8099
#white,
81100
#black {
82101
position: absolute;
@@ -305,4 +324,4 @@ a.button {
305324
& p {
306325
margin-top: 0;
307326
}
308-
}
327+
}

0 commit comments

Comments
 (0)