diff --git a/tetris.html b/tetris.html index 238b230..6c56b14 100644 --- a/tetris.html +++ b/tetris.html @@ -5,6 +5,8 @@ display: grid; grid-template-columns: 150px auto 200px; gap: 10px; + background-color: light-dark(white, #333); + color: light-dark(black, white); } section { @@ -17,7 +19,7 @@ height: 19px; } #board div { - background: lightgrey; + background-color: light-dark(lightgrey, #555); } #board { @@ -384,6 +386,7 @@

Tetris

} document.querySelector('#start').addEventListener('click', start); + document.addEventListener('keydown', (e) => { if (!running) return; if (e.keyCode == LEFT_CODE) moveLeft();