Skip to content

Commit

Permalink
Add and style a rounds-won score counter for later js implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Robrowno committed Apr 13, 2022
1 parent 9fe0540 commit f1e9cc9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 10 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ h1 {
}

/*-- Timer box styling --*/
#timer {
#timer, #rounds {
background: #fff;
border: 3px solid black;
display: flex;
Expand All @@ -136,6 +136,15 @@ h1 {
width: 70px
}

#rounds-label {
margin: 0 auto;
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
}


/* 'Arena styling */
.arena-block {
background-color: lightgreen;
Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2 class="subheading"> Choose Your Weapon!</h2>
</div>
</div>

<div id="timer">0:00</div>
<div id="timer">00:00</div>

<div class="content-block">
<div class="block">
Expand All @@ -75,7 +75,8 @@ <h2 class="subheading"></h2>
<div id="comp-score"> Comp</div>
</div>
</div>

<label id="rounds-label">Rounds</label>
<div id="rounds"><span id="u-rounds">0</span>:<span id="c-rounds">0</span></div>
<div id="reset">Reset</div>
</main>

Expand Down

0 comments on commit f1e9cc9

Please sign in to comment.