);
diff --git a/cryptide_project/src/Pages/InGame.css b/cryptide_project/src/Pages/InGame.css
index 690147a..9e12155 100644
--- a/cryptide_project/src/Pages/InGame.css
+++ b/cryptide_project/src/Pages/InGame.css
@@ -7,7 +7,7 @@
width: 30%;
border-radius: 0px 0px 30px 30px;
- border: solid #85C9C2;
+ border: solid;
border-width: 2px 5px;
background-color: white;
@@ -89,7 +89,7 @@
}
.button{
- background-color: #85C9C2;
+ /*background-color: #85C9C2;*/
border: solid 2px #85C9C2;
border-radius: 10px;
diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx
index 139d6d3..2a65c88 100644
--- a/cryptide_project/src/Pages/InGame.tsx
+++ b/cryptide_project/src/Pages/InGame.tsx
@@ -3,7 +3,7 @@ import Switch from "react-switch";
/* Style */
import "./InGame.css"
-
+import {useTheme} from '../Style/ThemeContext'
/* Component */
import GraphContainer from '../Components/GraphContainer';
import ChoiceBar from '../Components/ChoiceBar';
@@ -31,6 +31,7 @@ import Stub from '../source/Stub';
import { HiLanguage } from 'react-icons/hi2';
import { Nav, NavDropdown } from 'react-bootstrap';
import { FormattedMessage } from 'react-intl';
+import Color from '../source/Color';
//@ts-ignore
const InGame = ({locale, changeLocale}) => {
@@ -55,7 +56,7 @@ const InGame = ({locale, changeLocale}) => {
];
-
+ const theme = useTheme();
const [showChoiceBar, setShowChoiceBar] = useState(false);
@@ -116,7 +117,10 @@ const InGame = ({locale, changeLocale}) => {
return (
-
+
{/* texte changeable et a traduire */}
Dummy, à vous de jouer !
@@ -125,20 +129,34 @@ const InGame = ({locale, changeLocale}) => {
-
-
+
-
+
@@ -147,12 +165,20 @@ const InGame = ({locale, changeLocale}) => {
*/}
-
+
-
+
@@ -226,7 +252,7 @@ const InGame = ({locale, changeLocale}) => {
{showChoiceBar && }
-
diff --git a/cryptide_project/src/Pages/Lobby.css b/cryptide_project/src/Pages/Lobby.css
index 3434116..f74f6d1 100644
--- a/cryptide_project/src/Pages/Lobby.css
+++ b/cryptide_project/src/Pages/Lobby.css
@@ -4,7 +4,7 @@
background-color: #fff;
min-height: 100vh;
font-size: calc(10px + 2vmin);
- color: #2A4541;
+ /* color: #2A4541; */
}
.left-section {
@@ -14,8 +14,8 @@
}
.lobby-vertical-divider{
- width: 5px;
- background-color: #2A4541;
+ width: 10px;
+ /* background-color: #2A4541; */
}
.right-section {
diff --git a/cryptide_project/src/Pages/Lobby.tsx b/cryptide_project/src/Pages/Lobby.tsx
index 77a1336..12c389a 100644
--- a/cryptide_project/src/Pages/Lobby.tsx
+++ b/cryptide_project/src/Pages/Lobby.tsx
@@ -1,10 +1,14 @@
import React, { useEffect, useState } from 'react';
import './Lobby.css';
-import PlayerItemList from '../Components/PlayerItemList'
+import { useTheme } from '../Style/ThemeContext';
+
+/* res */
import PersonImg from '../res/img/Person.png';
import Bot from '../res/img/bot.png';
import param from '../res/icon/param.png';
import cible from '../res/icon/cible.png';
+
+/* Component */
import ButtonImgNav from '../Components/ButtonImgNav';
import { io } from 'socket.io-client';
import { Link } from 'react-router-dom';
@@ -20,9 +24,11 @@ import { random } from 'lodash';
import Player from '../model/Player';
+import PlayerItemList from '../Components/PlayerItemList'
function Lobby() {
const navigate = useNavigate();
+ const theme = useTheme()
const { indices, setIndicesData, indice, setIndiceData, person, setPersonData, personNetwork, setPersonNetworkData, players, setPlayersData, setActualPlayerIndexData, setRoomData } = useGame();
@@ -95,7 +101,7 @@ function Lobby() {