ajout d'icone grec et style sur les boutons de l'interface de jeu 💄

pull/73/head
Pierre Ferreira 1 year ago committed by Thomas Chazot
parent 48ccb8f0d3
commit 41fa9c2fb6

@ -80,10 +80,20 @@
justify-content: end; justify-content: end;
flex-direction: column; flex-direction: column;
top:70%; top:30%;
right: 0; right: 0;
} }
.menuGame Button { .menuGame Button {
margin: 10px; margin: 10px;
} }
.button{
background-color: #85C9C2;
border: solid 2px #85C9C2;
border-radius: 10px;
width: 100px;
height: 60px;
}

@ -7,16 +7,19 @@ import "./InGame.css"
import GraphContainer from '../Components/GraphContainer'; import GraphContainer from '../Components/GraphContainer';
import ChoiceBar from '../Components/ChoiceBar'; import ChoiceBar from '../Components/ChoiceBar';
import ButtonImgNav from '../Components/ButtonImgNav'; import ButtonImgNav from '../Components/ButtonImgNav';
import PersonStatus from '../Components/PersonStatus';
/* Icon */ /* Icon */
import Leave from "../res/icon/leave.png"; import Leave from "../res/icon/leave.png";
import Param from "../res/icon/param.png"; import Param from "../res/icon/param.png";
import Replay from "../res/icon/replay.png"; import Replay from "../res/icon/replay.png";
import Info from "../res/icon/infoGreen.png";
import Check from "../res/icon/checkboxGreen.png";
import Alpha from "../res/GreekLetters/alphaW.png";
/* Boostrap */ /* Boostrap */
import Button from 'react-bootstrap/Button'; import Button from 'react-bootstrap/Button';
import Offcanvas from 'react-bootstrap/Offcanvas'; import Offcanvas from 'react-bootstrap/Offcanvas';
import PersonStatus from '../Components/PersonStatus';
const InGame = () => { const InGame = () => {
const [showChoiceBar, setShowChoiceBar] = useState(false); const [showChoiceBar, setShowChoiceBar] = useState(false);
@ -26,6 +29,7 @@ const InGame = () => {
}; };
/* offcanvas */ /* offcanvas */
//? faire une fonction pour close et show en fonction de l'etat du canva ?
const [show, setShow] = useState(false); const [show, setShow] = useState(false);
const handleClose = () => setShow(false); const handleClose = () => setShow(false);
const handleShow = () => setShow(true); const handleShow = () => setShow(true);
@ -44,27 +48,27 @@ const InGame = () => {
</div> </div>
<div className='playerlistDiv'> <div className='playerlistDiv'>
<Button variant="primary" onClick={handleShowP}> <button className='button' onClick={handleShowP}>
Players Players
</Button> </button>
</div> </div>
<div className='paramDiv'> <div className='paramDiv'>
<ButtonImgNav text='paramètres' img={Param} dest='/'/> <ButtonImgNav text='paramètres' img={Param} dest='/'/>
</div> </div>
<div className='menuGame'> <div className='menuGame'>
<Button variant="primary" onClick={handleShow}> <button className='button' onClick={handleShow}>
i <img src={Info} alt="info" height="40"/>
</Button> </button>
<Button variant="primary" onClick={handleShow}> <button className='button' onClick={handleShow}>
check <img src={Check} alt="check" height="40"/>
</Button> </button>
<Button variant="primary" onClick={handleShow}> <button className='button' onClick={handleShow}>
α <img src={Alpha} alt="indice" height="40"/>
</Button> </button>
</div> </div>
<Offcanvas show={showP} <Offcanvas show={showP}
onHide={handleCloseP}> onHide={handleCloseP}>
<Offcanvas.Header closeButton> <Offcanvas.Header closeButton>
@ -94,7 +98,7 @@ const InGame = () => {
</Offcanvas> </Offcanvas>
<div id="bottom-container"> <div id="bottom-container">
{showChoiceBar && <ChoiceBar />} {showChoiceBar && <ChoiceBar />}
</div> </div>
<div id="endgamebutton"> {/* tmp */} <div id="endgamebutton"> {/* tmp */}
<ButtonImgNav dest="/endgame" img={Leave} text='endgame'/> <ButtonImgNav dest="/endgame" img={Leave} text='endgame'/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Loading…
Cancel
Save