Skip to content

Commit

Permalink
Poprawiono CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
damjes committed Dec 28, 2023
1 parent 217ff00 commit cea45c2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
background-color: #f5f5f5;
background-color: ghostwhite;
font-family: 'Roboto', sans-serif;
font-size: 1em;
margin: 0;
Expand Down
23 changes: 22 additions & 1 deletion src/Gra.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
$promien: 0.5em;

.gra {
text-align: center;
width: 20em;
max-width: 30em;
margin: 0 auto;

.przyciskResetu {
margin: 1em;
border: none;
border-radius: $promien;
padding: $promien;
font-size: 1em;
color: white;
background-color: royalblue;
font-weight: bold;

&.jeszczeRaz {
background-color: green;
}

&.naPewno {
background-color: darkorange;
}
}
}
7 changes: 6 additions & 1 deletion src/Gra.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ function Gra() {
(potwierdzeniePoddaniaSię ? () => setWygranko('nie') : () => setPotwierdzeniePoddaniaSię(true)) :
resetuj

const klasaResetu = 'przyciskResetu' + (wygranko == '' ?
(potwierdzeniePoddaniaSię ? ' naPewno' : '') :
' jeszczeRaz'
)

return <div className="gra">
<div className="macierz">
{słowa}
Expand All @@ -139,7 +144,7 @@ function Gra() {
tryb oszusta (debug)
</label>
</p>
<button className="przyciskResetu" onClick={funkcjaResetu}>{napisResetu}</button>
<button className={klasaResetu} onClick={funkcjaResetu}>{napisResetu}</button>
{
wygranko != '' &&
<div className="koniecGry">
Expand Down
1 change: 1 addition & 0 deletions src/Klawiatura.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
1 change: 1 addition & 0 deletions src/Slowo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
display: flex;
flex-direction: row;
font-size: 2em;
justify-content: center;
}

0 comments on commit cea45c2

Please sign in to comment.