Skip to content

Commit

Permalink
component architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
oshibka404 committed Aug 28, 2024
1 parent 0fd5649 commit 20ae715
Show file tree
Hide file tree
Showing 8 changed files with 386 additions and 257 deletions.
2 changes: 1 addition & 1 deletion src/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export class Game {
this.setState('not_started')
})
}
}
}
12 changes: 6 additions & 6 deletions src/screens/match/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ header {
place-content: center;
}

#table {
.table {
outline: 1em solid;
position: relative;
}

#table:before {
.table:before {
content: '';
height: 100%;
width: 0;
Expand All @@ -28,7 +28,7 @@ header {
top: 0;
}

#ball {
.ball {
width: 1em;
height: 1em;
position: absolute;
Expand All @@ -44,17 +44,17 @@ header {
background-color: #fff;
}

#paddle-p1 {
.paddle-p1 {
left: 1em;
top: 12em;
}

#paddle-p2 {
.paddle-p2 {
right: 1em;
top: 3em;
}

#match-state {
.match-state {
position: fixed;
display: flex;
flex-direction: column;
Expand Down
Loading

0 comments on commit 20ae715

Please sign in to comment.