make lives counter

This commit is contained in:
Alexander Popov 2021-02-25 02:14:07 +03:00
parent 68de320f6d
commit e063744f7b
2 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,10 @@
font-display: swap;
}
:root {
/*--font-size: 2rem;*/
}
body.dark {
--bg-color: #000;
--bg-secondary-color: #131316;
@ -20,3 +24,7 @@ body.dark {
body {
font-family: 'F5.6';
}
p#word {
font-size: 4rem;
}

View File

@ -20,7 +20,11 @@
<div class="nav-left">
<a class="brand" href="#">Hangman game</a>
</div>
<div class="nav-center">
<p id="lives" class="button error">loading...</p>
</div>
<div class="nav-right">
<a class="button dropdown">Язык</a>
<a class="button dark" id="theme-switch" onclick="switchMode(this)">☀️</a>
</div>
</nav>