Skip to content

Commit

Permalink
scss for LobbyGame
Browse files Browse the repository at this point in the history
  • Loading branch information
UO287741 committed Mar 31, 2024
1 parent 135c611 commit 6b1d2c1
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 57 deletions.
61 changes: 5 additions & 56 deletions webapp/src/components/game/LobbyGame.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
.lobby-container {
border: 1px solid #ccc;
padding: 20px;
border-radius: 5px;
}



/** Deprecated**/


.lobby-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
}

.player-item {
display: flex;
Expand All @@ -19,53 +14,7 @@
padding: 10px;
}

.add-bot-button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}

.add-bot-button:disabled {
opacity: 0.5;
cursor: default;
}

.delete-button {
background-color: #f44336;
color: white;
padding: 5px 10px;
border: none;
border-radius: 3px;
cursor: pointer;
margin-left: 10px;
}

.delete-button:hover {
opacity: 0.8;
}

.button-container {
display: flex;
justify-content: space-between;
}

.start-game-button {
background-color: #007bff;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-left: 10px;
}

.start-game-button:disabled {
background-color: #cccccc; /* Change background color for disabled state */
color: #666666; /* Change text color for disabled state */
cursor: not-allowed; /* Change cursor for disabled state */
}

90 changes: 90 additions & 0 deletions webapp/src/components/game/LobbyGame.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
table {
width: 100%;
border-collapse: collapse;

th, td {
padding: 8px;
text-align: center;
}

tr:nth-child(even) {
background-color: #f2f2f2;
}

&:hover {
tr {
background-color: #ddd;
}
}

img {
max-width: 100px; // Cambia el tamaño máximo de la imagen según sea necesario
height: auto;
display: block;
margin: 0 auto; // Centra la imagen horizontalmente
}
}

.lobby-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
}

.add-bot-button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}

.add-bot-button:disabled {
opacity: 0.5;
cursor: default;
}

.delete-button {
background-color: #f44336;
color: white;
padding: 5px 10px;
border: none;
border-radius: 3px;
cursor: pointer;
margin-left: 10px;
}

.delete-button:hover {
opacity: 0.8;
}

.button-container {
display: flex;
justify-content: space-between;
}

.start-game-button {
background-color: #007bff;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-left: 10px;
}

.start-game-button:disabled {
background-color: #cccccc; /* Change background color for disabled state */
color: #666666; /* Change text color for disabled state */
cursor: not-allowed; /* Change cursor for disabled state */
}

.lobby-container {
border: 1px solid #ccc;
padding: 20px;
border-radius: 5px;
}


2 changes: 1 addition & 1 deletion webapp/src/components/game/LobbyGame.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC } from 'react'
import { Player } from './GameSinglePlayer';
import './LobbyGame.css';
import './LobbyGame.scss';

interface LobbyGameProps {
setPlayers: (players:Player[]) => void;
Expand Down

0 comments on commit 6b1d2c1

Please sign in to comment.