Skip to content

Commit

Permalink
img() add images
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Dec 5, 2023
1 parent 90ac457 commit 5bd6383
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
Binary file added src/modules/game/assets/badguy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/modules/game/assets/bomb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/modules/game/assets/card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/modules/game/assets/goodguy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/modules/game/assets/neutral.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/modules/game/assets/wire.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/modules/game/components/CardDisplay/CardDisplay.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
}

.CardDisplay__card.CardDisplay__bad {
--bg-card: url('https://christopherstarr.files.wordpress.com/2013/01/randall.jpg');
--bg-card: url('../../assets/badguy.jpg');
}

.CardDisplay__card.CardDisplay__good {
--bg-card: url('https://as1.ftcdn.net/v2/jpg/01/95/05/50/1000_F_195055061_A112Kvjh9Bq5FFkdLIAnmk8Lh0MRdLrd.jpg');
--bg-card: url('../../assets/goodguy.jpg');
}

.CardDisplay__card.CardDisplay__wire {
--bg-card: url('https://i.stack.imgur.com/K9jSi.jpg');
--bg-card: url('../../assets/wire.jpg');
}

.CardDisplay__card.CardDisplay__bomb {
--bg-card: url('https://media.gettyimages.com/id/185410981/fr/photo/a-time-bomb.jpg?s=612x612&w=gi&k=20&c=tLm5Onl-r9Sx7t9_p9h13nAJKWvr96piVWRXJdil_gM=');
--bg-card: url('../../assets/bomb.jpg');
}

.CardDisplay__card.CardDisplay__neutral {
--bg-card: url('https://cdn.akamai.steamstatic.com/steam/apps/1534200/ss_d0fcb94c4fc2cc1cc01ca46d5c31840da74d9694.600x338.jpg?t=1616065824');
--bg-card: url('../../assets/neutral.jpg');
}

/* Keyframes */
Expand Down
21 changes: 11 additions & 10 deletions src/modules/game/components/CardsDeck/CardsDeck.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
.CardsDeck {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-top: 15px;
}

.CardsDeck_cardContainer {
width: 60px;
margin: 0 10px;
width: 80px;
margin: 15px 7.5px;
}

.CardsDeck__card {
position: relative;
width: 60px;
height: 100px;
--bg-card-verso: url('https://media.moddb.com/images/games/1/73/72356/screenshot.7.1.jpg');
width: 80px;
height: 128px;
--bg-card-verso: url('../../assets/card.jpg');
background: #fff var(--bg-card-verso) no-repeat;
background-size: cover;
background-position: center center;
Expand All @@ -29,23 +30,23 @@
}

.CardsDeck__displayed.CardsDeck__wire {
--bg-card: url('https://i.stack.imgur.com/K9jSi.jpg');
--bg-card: url('../../assets/wire.jpg');
}

.CardsDeck__displayed.CardsDeck__bomb {
--bg-card: url('https://media.gettyimages.com/id/185410981/fr/photo/a-time-bomb.jpg?s=612x612&w=gi&k=20&c=tLm5Onl-r9Sx7t9_p9h13nAJKWvr96piVWRXJdil_gM=');
--bg-card: url('../../assets/bomb.jpg');
}

.CardsDeck__displayed.CardsDeck__neutral {
--bg-card: url('https://cdn.akamai.steamstatic.com/steam/apps/1534200/ss_d0fcb94c4fc2cc1cc01ca46d5c31840da74d9694.600x338.jpg?t=1616065824');
--bg-card: url('../../assets/neutral.jpg');
}

/* Keyframes */
@keyframes turn {
0% {
left: 0px;
background-image: var(--bg-card-verso);
width: 60px;
width: 80px;
transform: skew(0deg, 0deg);
}
49% {
Expand All @@ -62,7 +63,7 @@
100% {
left: 0px;
background-image: var(--bg-card);
width: 60px;
width: 80px;
transform: skew(0deg, 0deg);
}
}

0 comments on commit 5bd6383

Please sign in to comment.