Skip to content

Commit 0a55a13

Browse files
committed
better pathing for images in GameOver and Victory pages
1 parent e71ce51 commit 0a55a13

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed
13.8 KB
Loading

client/src/components/screens/GameOver.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
import './codezilla.css';
22

33
const GameOverPage = ({
4-
backgroundUrl = '/assets/background.jpg',
5-
logoUrl = '/assets/codezilla-logo.png',
6-
avatarUrl = '/assets/player-avatar.png',
7-
codezillaUrl = '/assets/codezilla.png',
4+
backgroundUrl = 'client/background/codezilla_bkgd.png',
5+
avatarUrl = 'client/avatars/avatar4.png',
6+
codezillaUrl = 'client/minions/codezilla2.png',
87
}) => {
98
return (
109
<div
1110
className="game-over-page"
1211
style={{ backgroundImage: `url(${backgroundUrl})` }}
1312
>
14-
<img
15-
className="game-over-logo"
16-
src={logoUrl}
17-
alt="Codezilla Logo"
18-
/>
1913

2014
<div className="game-over-container">
2115
<h1 className="game-over-title">Game Over!</h1>

client/src/components/screens/Victory.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
import './codezilla.css';
22

33
export default function VictoryPage({
4-
backgroundUrl = '/assets/background.jpg',
5-
logoUrl = '/assets/codezilla-logo.png',
6-
avatarUrl = '/assets/player-avatar.png',
7-
confettiUrl = '/assets/confetti.png',
4+
backgroundUrl = 'client/background/codezilla_bkgd.png',
5+
avatarUrl = 'client/avatars/avatar4.png',
6+
confettiUrl = 'client/background/confetti_image.jpg',
87
}) {
98
return (
109
<div
1110
className="victory-page"
1211
style={{ backgroundImage: `url(${backgroundUrl})` }}
1312
>
14-
<img
15-
className="victory-logo"
16-
src={logoUrl}
17-
alt="Codezilla Logo"
18-
/>
1913

2014
<div className="victory-container">
2115
{/* Confetti overlay */}

0 commit comments

Comments
 (0)