Skip to content

Commit

Permalink
Merge pull request #154 from peter-jerry-ye/fix-snake
Browse files Browse the repository at this point in the history
fix: css
  • Loading branch information
bzy-debug authored Feb 6, 2024
2 parents 657003a + 422af21 commit d590573
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
11 changes: 5 additions & 6 deletions examples/snake/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="container">
</div>
<canvas id="canvas"></canvas>
<div class="information">
<div>
<p>up: go up</p>
<p>left: go left</p>
<p>right: go right</p>
<p>down: go down</p>
<p><kbd>up</kbd>: go up</p>
<p><kbd>left</kbd>: go left</p>
<p><kbd>right</kbd>: go right</p>
<p><kbd>down</kbd>: go down</p>
</div>
</div>
</body>
Expand Down
4 changes: 1 addition & 3 deletions examples/snake/lib/moon.pkg.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"name": "lib"
}
{ }
11 changes: 2 additions & 9 deletions examples/snake/style.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
body {
margin: 0;
width: 100%;
height: 100vh;
display: flex;
display: grid;
align-items: center;
justify-content: center;
margin-top: 10vh;

background-color: rgb(54, 44, 44);
background-position: center;
}

.container {
display: flex;
flex-direction: column;
margin-right: 5rem;
}

canvas {
border: 2px solid rgb(109, 109, 109);
}
Expand Down

0 comments on commit d590573

Please sign in to comment.