Skip to content

Commit 607045d

Browse files
author
1317421
committed
Further neatening
1 parent b1f6b3b commit 607045d

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

src/components/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class Card extends Component {
3434
onClick = {clickFunction}
3535
onContextMenu = {this.props.discard}
3636
className = {"card " + this.state.player + "-card noselect animated flipInX"}>
37-
<div className="unique">{this.state.name}</div>
37+
<div className="card-name">{this.state.name}</div>
3838
<div className="center">
3939
<div className="stat attack">{this.state.attack}</div>
4040
<div className="stat health">{this.state.health}</div>

src/components/Dialog.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import '../css/Dialog.css';
33

44
function generateName(){
55
let choices_array = ['mage','wizard','knight','strange man','strange woman','mysterious old woman','mysterious old man'];
6-
76
let choice = Math.floor(Math.random()*choices_array.length);
8-
97
return choices_array[choice];
108
}
119

@@ -27,9 +25,12 @@ export default class Card extends Component {
2725
return (
2826
<div onClick={this.props.restart} className="dialog animated slideInLeft">
2927
<div className="descriptor">A {this.state.character} walks in and croaks </div>
28+
3029
I need a potion with at least <span className="dialog-stat text-attack">{this.state.attack}</span> as well as
3130
<span className="dialog-stat text-health"> {this.state.cost}</span> but please, dont exceed <span className="dialog-stat text-agility">{this.state.cost}</span>.
31+
3232
<br/><br/>
33+
3334
Times are tough for a {this.state.character} like me.
3435
</div>
3536
);

src/components/Engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export default class Arena extends Component {
334334
</div>
335335

336336
<div className="hand-container items center">
337-
<div className="instruction-header">Click on a card to add ingredients to your potion</div>
337+
<div className="instruction-header">Click on an ingredient card to add it to your potion</div>
338338
<br/>
339339
<div className="hand white-hand item animated flipInX">
340340
{this.state.whiteCards}

src/css/Card.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@
3434
border: 5px solid #1B3F66;
3535
}
3636

37-
.unique {
37+
.card-name {
3838
font-size: 15px;
3939
font-weight: 'bold';
4040
color: '#222';
41-
justify-content: 'space-around';
42-
top: 5;
4341
margin-top: 10px;
4442
margin-bottom: 40px;
4543
height: 25px;

src/css/Engine.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ body {
156156
background-color: #222;
157157
margin: 15px;
158158
padding: 5px;
159-
padding-top: 25px;
159+
padding-top: 15px;
160160
max-width: 200px;
161161
float: right;
162162
border-radius: 5px;

0 commit comments

Comments
 (0)