Implement card images for inventory
BIN
app/assets/images/PNG-cards-1.3.zip
Normal file
BIN
app/assets/images/SVG-cards-1.3.zip
Normal file
BIN
app/assets/images/backgrounds/felt-green.png
Normal file
|
After Width: | Height: | Size: 198 KiB |
BIN
app/assets/images/backgrounds/felt.png
Normal file
|
After Width: | Height: | Size: 130 KiB |
BIN
app/assets/images/backgrounds/felt_@2X.png
Normal file
|
After Width: | Height: | Size: 182 KiB |
BIN
app/assets/images/cards/png/10_of_clubs.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
app/assets/images/cards/png/10_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
app/assets/images/cards/png/10_of_hearts.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
app/assets/images/cards/png/10_of_spades.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
app/assets/images/cards/png/2_of_clubs.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
app/assets/images/cards/png/2_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
app/assets/images/cards/png/2_of_hearts.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
app/assets/images/cards/png/2_of_spades.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
app/assets/images/cards/png/3_of_clubs.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
app/assets/images/cards/png/3_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
app/assets/images/cards/png/3_of_hearts.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
app/assets/images/cards/png/3_of_spades.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
app/assets/images/cards/png/4_of_clubs.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
app/assets/images/cards/png/4_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
app/assets/images/cards/png/4_of_hearts.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
app/assets/images/cards/png/4_of_spades.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
app/assets/images/cards/png/5_of_clubs.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
app/assets/images/cards/png/5_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
app/assets/images/cards/png/5_of_hearts.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
app/assets/images/cards/png/5_of_spades.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
app/assets/images/cards/png/6_of_clubs.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
app/assets/images/cards/png/6_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app/assets/images/cards/png/6_of_hearts.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app/assets/images/cards/png/6_of_spades.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
app/assets/images/cards/png/7_of_clubs.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
app/assets/images/cards/png/7_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app/assets/images/cards/png/7_of_hearts.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
app/assets/images/cards/png/7_of_spades.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
app/assets/images/cards/png/8_of_clubs.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
app/assets/images/cards/png/8_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
app/assets/images/cards/png/8_of_hearts.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
app/assets/images/cards/png/8_of_spades.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
app/assets/images/cards/png/9_of_clubs.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
app/assets/images/cards/png/9_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app/assets/images/cards/png/9_of_hearts.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app/assets/images/cards/png/9_of_spades.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
app/assets/images/cards/png/ace_of_clubs.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app/assets/images/cards/png/ace_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
app/assets/images/cards/png/ace_of_hearts.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
app/assets/images/cards/png/ace_of_spades.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
app/assets/images/cards/png/ace_of_spades2.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app/assets/images/cards/png/black_joker.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
app/assets/images/cards/png/jack_of_clubs.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
app/assets/images/cards/png/jack_of_clubs2.png
Normal file
|
After Width: | Height: | Size: 203 KiB |
BIN
app/assets/images/cards/png/jack_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
app/assets/images/cards/png/jack_of_diamonds2.png
Normal file
|
After Width: | Height: | Size: 210 KiB |
BIN
app/assets/images/cards/png/jack_of_hearts.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
app/assets/images/cards/png/jack_of_hearts2.png
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
app/assets/images/cards/png/jack_of_spades.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
app/assets/images/cards/png/jack_of_spades2.png
Normal file
|
After Width: | Height: | Size: 242 KiB |
BIN
app/assets/images/cards/png/king_of_clubs.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
app/assets/images/cards/png/king_of_clubs2.png
Normal file
|
After Width: | Height: | Size: 257 KiB |
BIN
app/assets/images/cards/png/king_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
app/assets/images/cards/png/king_of_diamonds2.png
Normal file
|
After Width: | Height: | Size: 260 KiB |
BIN
app/assets/images/cards/png/king_of_hearts.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
app/assets/images/cards/png/king_of_hearts2.png
Normal file
|
After Width: | Height: | Size: 273 KiB |
BIN
app/assets/images/cards/png/king_of_spades.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
app/assets/images/cards/png/king_of_spades2.png
Normal file
|
After Width: | Height: | Size: 197 KiB |
BIN
app/assets/images/cards/png/queen_of_clubs.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/assets/images/cards/png/queen_of_clubs2.png
Normal file
|
After Width: | Height: | Size: 279 KiB |
BIN
app/assets/images/cards/png/queen_of_diamonds.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
app/assets/images/cards/png/queen_of_diamonds2.png
Normal file
|
After Width: | Height: | Size: 191 KiB |
BIN
app/assets/images/cards/png/queen_of_hearts.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
app/assets/images/cards/png/queen_of_hearts2.png
Normal file
|
After Width: | Height: | Size: 238 KiB |
BIN
app/assets/images/cards/png/queen_of_spades.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app/assets/images/cards/png/queen_of_spades2.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
app/assets/images/cards/png/red_joker.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
@ -12,7 +12,7 @@ var Inventory = React.createClass({
|
||||
render: function() {
|
||||
if (this.props.cards) {
|
||||
return (
|
||||
<ul>
|
||||
<ul id='inventory'>
|
||||
{this.props.cards.map(function(card) {
|
||||
return <li key={card.id}>
|
||||
<label>
|
||||
@ -22,7 +22,8 @@ var Inventory = React.createClass({
|
||||
name="player_card_ids[]"
|
||||
value={card.id} />
|
||||
{/* TODO: Don't hard code face cards here */}
|
||||
{card.rank.replace('11','J').replace('12','Q').replace('13','K').replace('14','A').replace('15','2')} {card.suit}
|
||||
{/* <span>{card.rank.replace('11','J').replace('12','Q').replace('13','K').replace('14','A').replace('15','2')} {card.suit}</span> */}
|
||||
<img src={('/assets/cards/png/' + card.rank + '_of_' + card.suit.toLowerCase() + 's.png').replace('11','jack').replace('12','queen').replace('13','king').replace('14','ace').replace('15','2')} />
|
||||
</label>
|
||||
</li>;
|
||||
})}
|
||||
|
||||
@ -106,9 +106,16 @@ button
|
||||
////// Inventory
|
||||
|
||||
.player form
|
||||
ul
|
||||
ul#inventory
|
||||
display: flex
|
||||
flex-wrap: wrap
|
||||
text-align: left
|
||||
li
|
||||
flex: 1 1 auto
|
||||
input[type="checkbox"]
|
||||
visibility: hidden
|
||||
position: absolute
|
||||
&:checked ~ img
|
||||
box-shadow: 0px 0px 2px 6px cadetblue
|
||||
img
|
||||
width: 6vw
|
||||
|
||||