Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added client/background/confetti_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 3 additions & 9 deletions client/src/components/screens/GameOver.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
import './codezilla.css';

const GameOverPage = ({
backgroundUrl = '/assets/background.jpg',
logoUrl = '/assets/codezilla-logo.png',
avatarUrl = '/assets/player-avatar.png',
codezillaUrl = '/assets/codezilla.png',
backgroundUrl = 'client/background/codezilla_bkgd.png',
avatarUrl = 'client/avatars/avatar4.png',
codezillaUrl = 'client/minions/codezilla2.png',
}) => {
return (
<div
className="game-over-page"
style={{ backgroundImage: `url(${backgroundUrl})` }}
>
<img
className="game-over-logo"
src={logoUrl}
alt="Codezilla Logo"
/>

<div className="game-over-container">
<h1 className="game-over-title">Game Over!</h1>
Expand Down
12 changes: 3 additions & 9 deletions client/src/components/screens/Victory.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
import './codezilla.css';

export default function VictoryPage({
backgroundUrl = '/assets/background.jpg',
logoUrl = '/assets/codezilla-logo.png',
avatarUrl = '/assets/player-avatar.png',
confettiUrl = '/assets/confetti.png',
backgroundUrl = 'client/background/codezilla_bkgd.png',
avatarUrl = 'client/avatars/avatar4.png',
confettiUrl = 'client/background/confetti_image.jpg',
}) {
return (
<div
className="victory-page"
style={{ backgroundImage: `url(${backgroundUrl})` }}
>
<img
className="victory-logo"
src={logoUrl}
alt="Codezilla Logo"
/>

<div className="victory-container">
{/* Confetti overlay */}
Expand Down
Loading