Skip to content
Closed
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/src/assets/background-video.mp4
Binary file not shown.
Binary file added client/src/assets/villagers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion client/src/components/gameplay/game-navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default function GameNavigation({
}, [game_node, player_one_display, player_two_display, setPlayers]);

return (
<nav className="relative w-full h-40">
<nav className="relative w-full h-40 z-20">
<div className="bg-[url('./assets/left-entry.png')] h-40 w-[45%] bg-cover bg-center bg-no-repeat absolute top-0 left-0">
<div className="relative flex flex-col items-center justify-center w-full h-full -mt-5">
<PlayerProfile
Expand Down
8 changes: 6 additions & 2 deletions client/src/pages/games/Gameplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import lose from "@/assets/lose.png";
import end from "@/assets/end.png";
import createIcon from "@/assets/createIcon.png";
import { Button } from "@/components/ui/button";
import backgroundVideo from "@/assets/background-video.mp4";

export default function Gameplay() {
const { gameId } = useParams();
Expand Down Expand Up @@ -71,7 +72,10 @@ export default function Gameplay() {
const user_won = normalizeAddress(game_node?.winner) === normalizeAddress(account.account?.address || "");
const [players, setPlayers] = useState<{ name: string, address: string }[]>()
return (
<main className="min-h-screen w-full bg-[#0F1116] bg-[url('./assets/bg.png')] bg-cover bg-center bg-no-repeat flex flex-col items-center overflow-y-scroll">
<main className="min-h-screen w-full bg-[#0F1116] bg-[url('./assets/villagers.png')] bg-cover bg-center bg-no-repeat flex flex-col items-center overflow-y-scroll">
<video id="background-video" className="z-10 w-full h-screen absolute object-cover" loop autoPlay>
<source src={backgroundVideo} type="video/mp4" />
</video>
<GameNavigation
game_players={game_players}
player_names={player_names}
Expand All @@ -87,7 +91,7 @@ export default function Gameplay() {
moveMessage={moveMessage}
setPlayers={setPlayers}
/>
<div className="w-full h-[calc(100vh-200px)] max-w-7xl flex flex-row items-start space-x-10">
<div className="w-full h-[calc(100vh-200px)] max-w-7xl flex flex-row items-start space-x-10 z-20">
<div className="flex flex-col justify-center space-y-5 w-fit">
<RestartButton
gameId={gameId || ""}
Expand Down