Skip to content

Commit ae12540

Browse files
committed
Add answer css
1 parent 52090bf commit ae12540

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

style.css components/answer/answer.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ li {
22
list-style-type: none;
33
display: inline;
44
margin: 1em;
5-
}
5+
}

components/answer/answer.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import '../../style.css'
32

43
const Answer = (props) => {
54
const city = props.city;

components/app/app.test.js

-9
This file was deleted.

components/game/game.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from 'react';
2+
import Hint from '../hint/hint';
3+
import Chance from '../chance/chance';
4+
import Answer from '../answer/answer';
5+
import Letters from '../letter/letter';
6+
7+
export default class Game extends React.Component {
8+
state = {
9+
chances: 5,
10+
country: 'Italy',
11+
city: "Rome"
12+
}
13+
render() {
14+
15+
return (
16+
<React.Fragment>
17+
<Hint country={this.state.country}/>
18+
<Chance chances={this.state.chances} />
19+
<Answer city={this.state.city} />
20+
<Letters />
21+
</React.Fragment>
22+
)
23+
}
24+
}

index.html

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8-
<link rel="stylesheet" href="style.css">
98
<title>Cities Hangman</title>
109

1110
</head>

0 commit comments

Comments
 (0)