Skip to content

Commit faca818

Browse files
added body background color fixed issue with resizing
1 parent ee9ba2c commit faca818

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

Diff for: src/components/HangmanSvg/HangmanSVG.module.css

-4
This file was deleted.

Diff for: src/components/HangmanSvg/HangmanSvg.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// import HangmanSVG from "./HangmanSVG.module.css"
1+
22

33
function HangmanSvg() {
44
// TODO fix svg with "-" add capital letter
@@ -10,8 +10,8 @@ const sadMouth = <path id="sadMouth" d="M103 65.9927C106.279 63.4315 108.258 63.
1010
const mouth = gameIsActive ? happyMouth : sadMouth
1111

1212
return (
13-
<div /* className={HangmanSVG.container} */>
14-
<svg width="60vw" height="70vh" viewBox="0 0 173 300" fill="none">
13+
14+
<svg width="60vw" height="60vh" viewBox="0 0 173 300" fill="none">
1515
<g id="allHangmanGraph">
1616
<g id="structure">
1717
<g id="Group">
@@ -205,7 +205,7 @@ const mouth = gameIsActive ? happyMouth : sadMouth
205205
</clipPath>
206206
</defs>
207207
</svg>
208-
</div>
208+
209209
)
210210
}
211211

Diff for: style.css

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
body {
44
margin:0;
5+
background-color: #ffe6a7;
56
}

0 commit comments

Comments
 (0)