diff --git a/cryptide_project/src/Components/GraphContainer.css b/cryptide_project/src/Components/GraphContainer.css index 90bd294..2fd8b58 100644 --- a/cryptide_project/src/Components/GraphContainer.css +++ b/cryptide_project/src/Components/GraphContainer.css @@ -1,10 +1,14 @@ #graph-container { width: 100%; - height: 75vh; + height: 100vh; + /* padding: 20px; */ + + /* border-radius: 25px; */ + box-sizing: border-box; + display: flex; flex-direction: column; align-items: center; + background-color: #f5f5f5; - padding: 20px; - box-sizing: border-box; } \ No newline at end of file diff --git a/cryptide_project/src/Pages/InGame.css b/cryptide_project/src/Pages/InGame.css index e69de29..138125c 100644 --- a/cryptide_project/src/Pages/InGame.css +++ b/cryptide_project/src/Pages/InGame.css @@ -0,0 +1,89 @@ +.upperInfo{ + display: flex; + justify-content: center; + flex-direction: column; + align-items: center; + + width: 30%; + + border-radius: 0px 0px 30px 30px; + border: solid #85C9C2; + border-width: 2px 5px; + + background-color: white; + + font-size: 30px; + + top: 20px;; +} + +#mainDiv{ + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; +} + + +.paramDiv{ + z-index: 1; + position: absolute; + top: 10px; + right: 10px; +} + +#graphDiv{ + + display: flex; + flex-direction: row; + + position: absolute; + + top: 0; + left: 0; + right: 0; + bottom: 0; +} + +#bottom-container{ + bottom: 0; + + background-color: white; + padding:20px; + border-radius: 20px 20px 0px 0px; +} + +.playerlistDiv{ + position: absolute; + z-index: 1; + left: 10px; + top :50; +} + +#endgamebutton{ + position: absolute; + z-index: 1; + bottom: 0; + right: 25%; +} + +.upperInfo, +#bottom-container, +.menuGame { + position: absolute; + z-index: 1; +} + +.menuGame{ + display: flex; + align-items: space-between; + justify-content: end; + flex-direction: column; + + top:70%; + right: 0; +} + +.menuGame Button { + margin: 10px; +} \ No newline at end of file diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx index 81fa7b8..f765c9b 100644 --- a/cryptide_project/src/Pages/InGame.tsx +++ b/cryptide_project/src/Pages/InGame.tsx @@ -1,5 +1,8 @@ import React, { useState } from 'react'; +/* Style */ +import "./InGame.css" + /* Component */ import GraphContainer from '../Components/GraphContainer'; import ChoiceBar from '../Components/ChoiceBar'; @@ -7,6 +10,13 @@ import ButtonImgNav from '../Components/ButtonImgNav'; /* Icon */ import Leave from "../res/icon/leave.png"; +import Param from "../res/icon/param.png"; +import Replay from "../res/icon/replay.png"; + +/* Boostrap */ +import Button from 'react-bootstrap/Button'; +import Offcanvas from 'react-bootstrap/Offcanvas'; +import PersonStatus from '../Components/PersonStatus'; const InGame = () => { const [showChoiceBar, setShowChoiceBar] = useState(false); @@ -15,13 +25,78 @@ const InGame = () => { setShowChoiceBar(shouldShowChoiceBar); }; + /* offcanvas */ + const [show, setShow] = useState(false); + const handleClose = () => setShow(false); + const handleShow = () => setShow(true); + + const [showP, setShowP] = useState(false); + const handleCloseP = () => setShowP(false); + const handleShowP = () => setShowP(true); return ( -
- +
+
+ {/* texte changeable et a traduire */} +

Dummy, à vous de jouer !

+
+
+ +
+ +
+ +
+ +
+ +
+ + +
+ + + +
+ + + Joueurs +

Il y a 3 joueurs

+
+ + {/* affichage d'une liste responsive dynamic */} + + + + +
+ + + + Indice + + + Possède les cheveux noir ou joue au basket + + +
{showChoiceBar && }
-
{/* tmp */} +
{/* tmp */}