add game explanation, remove test tiles
This commit is contained in:
+18
-30
@@ -9,6 +9,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>2048</h1>
|
<h1>2048</h1>
|
||||||
|
<p class="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p>
|
||||||
|
|
||||||
<div class="game-container">
|
<div class="game-container">
|
||||||
<div class="grid-container">
|
<div class="grid-container">
|
||||||
@@ -42,38 +43,25 @@
|
|||||||
<div class="tile tile-2 tile-position-1-1">
|
<div class="tile tile-2 tile-position-1-1">
|
||||||
2
|
2
|
||||||
</div>
|
</div>
|
||||||
<div class="tile tile-4 tile-position-2-1">
|
<div class="tile tile-4 tile-position-2-3">
|
||||||
4
|
4
|
||||||
</div>
|
</div>
|
||||||
<div class="tile tile-8 tile-position-3-1">
|
<div class="tile tile-512 tile-position-3-2">
|
||||||
8
|
512
|
||||||
</div>
|
</div>
|
||||||
<div class="tile tile-16 tile-position-4-1">
|
<div class="tile tile-2048 tile-position-4-4">
|
||||||
16
|
2048
|
||||||
</div>
|
</div>
|
||||||
<div class="tile tile-32 tile-position-1-2">
|
|
||||||
32
|
|
||||||
</div>
|
|
||||||
<div class="tile tile-64 tile-position-2-2">
|
|
||||||
64
|
|
||||||
</div>
|
|
||||||
<div class="tile tile-128 tile-position-3-2">
|
|
||||||
128
|
|
||||||
</div>
|
|
||||||
<div class="tile tile-256 tile-position-4-2">
|
|
||||||
256
|
|
||||||
</div>
|
|
||||||
<div class="tile tile-512 tile-position-1-3">
|
|
||||||
512
|
|
||||||
</div>
|
|
||||||
<div class="tile tile-1024 tile-position-2-3">
|
|
||||||
1024
|
|
||||||
</div>
|
|
||||||
<div class="tile tile-2048 tile-position-3-3">
|
|
||||||
2048
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="game-explanation">
|
||||||
|
<strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two tiles with the same number touch, they <strong>merge into one!</strong>
|
||||||
|
</p>
|
||||||
|
<hr>
|
||||||
|
<p>
|
||||||
|
Created by <a href="http://gabrielecirulli.com" target="_blank">Gabriele Cirulli.</a> Based on <a href="https://itunes.apple.com/us/app/1024!/id823499224" target="_blank">1024 by Veewo Studio.</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+28
-2
@@ -4,7 +4,8 @@ html, body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
background: #faf8ef;
|
background: #faf8ef;
|
||||||
color: #776e65;
|
color: #776e65;
|
||||||
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif; }
|
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
|
||||||
|
font-size: 18px; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 80px 0; }
|
margin: 80px 0; }
|
||||||
@@ -14,12 +15,31 @@ h1 {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 0; }
|
margin: 0; }
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
line-height: 1.65; }
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #776e65;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: underline; }
|
||||||
|
|
||||||
|
strong.important {
|
||||||
|
text-transform: uppercase; }
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid #d8d4d0;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 30px; }
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 500px;
|
width: 500px;
|
||||||
margin: 0 auto; }
|
margin: 0 auto; }
|
||||||
|
|
||||||
.game-container {
|
.game-container {
|
||||||
margin-top: 50px;
|
margin-top: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
@@ -184,3 +204,9 @@ h1 {
|
|||||||
background: #edc22e;
|
background: #edc22e;
|
||||||
box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.55556), inset 0 0 0 1px rgba(255, 255, 255, 0.33333);
|
box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.55556), inset 0 0 0 1px rgba(255, 255, 255, 0.33333);
|
||||||
font-size: 35px; }
|
font-size: 35px; }
|
||||||
|
|
||||||
|
.game-intro {
|
||||||
|
margin-bottom: 0; }
|
||||||
|
|
||||||
|
.game-explanation {
|
||||||
|
margin-top: 50px; }
|
||||||
|
|||||||
+33
-1
@@ -21,6 +21,7 @@ html, body {
|
|||||||
background: #faf8ef;
|
background: #faf8ef;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
|
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -33,13 +34,38 @@ h1 {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
line-height: 1.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $text-color;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
strong {
|
||||||
|
&.important {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid lighten($text-color, 40%);
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: $field-width;
|
width: $field-width;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-container {
|
.game-container {
|
||||||
margin-top: 50px;
|
margin-top: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: $grid-spacing;
|
padding: $grid-spacing;
|
||||||
|
|
||||||
@@ -179,4 +205,10 @@ h1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.game-intro {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-explanation {
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user