Skip to content

Commit

Permalink
Lobby merge
Browse files Browse the repository at this point in the history
  • Loading branch information
minseok0507 committed Sep 3, 2024
1 parent 969e12b commit db44c7c
Show file tree
Hide file tree
Showing 6 changed files with 457 additions and 366 deletions.
2 changes: 1 addition & 1 deletion src/app/lobby/[roomId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Lobby from "@/components/game/Lobby";



export const metadata = { title: `In Game | ${config.site.name}` } satisfies Metadata;
export const metadata = { title: `Lobby | ${config.site.name}` } satisfies Metadata;

export default function Page(): React.JSX.Element {
return (
Expand Down
62 changes: 0 additions & 62 deletions src/components/game/Lobby.css
Original file line number Diff line number Diff line change
Expand Up @@ -332,68 +332,6 @@
margin-top: 20px;
}

.raceTrack {
position: relative;
width: 50%;
height: 400px;
margin: 50px auto;
border: 2px solid #ffffff;
border-radius: 10px;
overflow: hidden;
background-image: url('../../../public/image/track.jpg');
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}

.runner {
position: absolute;
margin-top: 15px;
display: flex;
flex-direction: column;
align-items: center;
animation: run 50s linear forwards;
}

.runner img {
width: 50px;
height: 50px;
}

.runner span {
color: white;
font-weight: bold;
}

.finishLine {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 5px;
background-color: red;
}

@keyframes run {
0% { left: 0; }
100% { left: 95%; }
}

.order {
text-align: center;
margin-top: 20px;
}

.order ul {
list-style-type: none;
padding: 0;
}

.order li {
margin: 5px 0;
font-size: 1.5em;
}

.player-info {
display: flex;
justify-content: space-between;
Expand Down
Loading

0 comments on commit db44c7c

Please sign in to comment.