Skip to content

Commit

Permalink
feat: update tips ui
Browse files Browse the repository at this point in the history
  • Loading branch information
monodyle committed Jul 12, 2022
1 parent bef0eda commit dfe85f5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
4 changes: 2 additions & 2 deletions components/axie-figure/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

.overlay {
position: absolute;
width: 645px;
width: 720px;
height: 383px;
display: flex;
}
Expand Down Expand Up @@ -65,6 +65,6 @@
.canvas {
overflow: hidden;
border-radius: 4px;
width: 645px;
width: 720px;
height: 383px;
}
11 changes: 7 additions & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ const Home = () => {
<main>
<AxieFigure />
<div className={s.directions}>
<p className={s.directionsText}>
Directions: Use arrow keys to make the Axie run. Press &quot;e&quot;
to attack. Press &quot;Space&quot; to jump!
</p>
<div className={s.key}></div>
<div className={s.key}></div>
<span className={s.text}>to run,</span>
<div className={s.key}>E</div>
<span className={s.text}>to attack, and</span>
<div className={s.key}>Space</div>
<span className={s.text}>to jump.</span>
</div>
</main>
</div>
Expand Down
18 changes: 15 additions & 3 deletions pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@
display: flex;
justify-content: center;
align-items: center;
gap: 4px;
}

.directionsText {
width: 600px;
margin: 0px;
.key {
border: solid 1px #5c627e;
color: #5c627e;
border-bottom-width: 2px;
border-radius: 4px;
padding: 1px 5px;
font-size: 11px;
line-height: 21px;
font-weight: 700;
}

.text {
color: #5c627e;
line-height: 21px;
}

0 comments on commit dfe85f5

Please sign in to comment.