Skip to content

Commit

Permalink
Merge pull request #12 from Timur233/SOK-24_game-over-page
Browse files Browse the repository at this point in the history
[SOK-24] game over
  • Loading branch information
Timur233 authored Oct 3, 2024
2 parents 2b4debc + 6e1251c commit f5937d3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
Binary file added packages/client/src/assets/images/game-over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions packages/client/src/pages/Game/Game.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,22 @@ $border-color: #70842f;
inset: 12px;
background-color: $overlay-color;
}

.game-over-screen {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
inset: 12px;
background-color: $overlay-color;
background-image: url('@/assets/images/game-over.png');
background-size: cover;

&__title {
font-size: 40px;
font-weight: 900;
text-transform: uppercase;
margin-bottom: 16px;
}
}
6 changes: 5 additions & 1 deletion packages/client/src/pages/Game/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@ export const Game = () => {
<div className="game-wrapper__decor-hr"></div>
<div className="game-wrapper__decor-vr"></div>
Воот тут игра
<div className="start-screen">
<div className="start-screen" style={{ display: 'none' }}>
<Button text="Начать игру" useFixWidth />
</div>
<div className="game-over-screen">
<span className="game-over-screen__title">Game Over</span>
<Button text="Начать заново" useFixWidth />
</div>
</div>
</div>
<div className="column col-4">
Expand Down

0 comments on commit f5937d3

Please sign in to comment.