diff --git a/cryptide_project/src/App.tsx b/cryptide_project/src/App.tsx index eb3c48e..a71ebf0 100644 --- a/cryptide_project/src/App.tsx +++ b/cryptide_project/src/App.tsx @@ -8,6 +8,7 @@ import Home from './Pages/Home'; import Login from './Pages/LoginForm'; import SignUp from './Pages/SignUpForm'; import Play from './Pages/Play'; +import Lobby from './Pages/Lobby'; /* Component */ import AppNavbar from './Components/NavBar'; @@ -60,6 +61,7 @@ function App() { } /> } /> } /> + } /> diff --git a/cryptide_project/src/Components/PlayerItemList.tsx b/cryptide_project/src/Components/PlayerItemList.tsx new file mode 100644 index 0000000..984455c --- /dev/null +++ b/cryptide_project/src/Components/PlayerItemList.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { FormattedMessage } from 'react-intl'; +import '../Style/Global.css'; + +//@ts-ignore +function PlayerItemList({ pdp, name}) { + return ( +
+ player-image +

{name}

+
+ ) +} + +export default PlayerItemList; diff --git a/cryptide_project/src/Pages/Lobby.css b/cryptide_project/src/Pages/Lobby.css new file mode 100644 index 0000000..0c9ce5f --- /dev/null +++ b/cryptide_project/src/Pages/Lobby.css @@ -0,0 +1,44 @@ + + +.lobby-container { + display: flex; + background-color: #fff; + min-height: 100vh; + font-size: calc(10px + 2vmin); + color: #2A4541; +} + +.left-section { + padding: 20px; + margin-right: 10px; + margin-left: 30px; +} + +.lobby-vertical-divider{ + width: 5px; + background-color: #2A4541; +} + +.right-section { + padding: 20px; + margin: 10px; +} + + +.player-board{ + height: 100%; + width: max-content; + background-color: rgb(243, 241, 235); + border-radius: 20px; + + padding: 20px 0px; + margin: 10px 15px; +} + +.title-param-div{ + display: flex; + flex-direction: row; + margin: 20px; +} + + diff --git a/cryptide_project/src/Pages/Lobby.tsx b/cryptide_project/src/Pages/Lobby.tsx new file mode 100644 index 0000000..14e853e --- /dev/null +++ b/cryptide_project/src/Pages/Lobby.tsx @@ -0,0 +1,45 @@ +import React from 'react'; +import './Lobby.css'; +import PlayerItemList from '../Components/PlayerItemList' +import Person 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'; +import ButtonImgNav from '../Components/ButtonImgNav'; + +function Lobby() { + return ( +
+
+
+ {/* //! voir pour la gestion avec un liste, utilisateur avec le "+ (vous)" et les pdp avec les lettres grecs (?)*/} + + + +
+
+ +
+ +
+
+ param +

Paramètre de la partie

+
+
    +
  • paramètre surper important pour la partieparamètre surper important pour la partieparamètre surper important pour la partieparamètre surper important pour la partieparamètre surper important pour la partie

  • +
  • paramètre surper important pour la partie

  • +
  • paramètre surper important pour la partie

  • +
  • paramètre surper important pour la partie

  • +
  • paramètre surper important pour la partie

  • +
  • paramètre surper important pour la partie

  • +
+
+ {/* page de baptiste ici */} +
+
+
+ ); +} + +export default Lobby; diff --git a/cryptide_project/src/Pages/Play.tsx b/cryptide_project/src/Pages/Play.tsx index f9e3e47..4ca8821 100644 --- a/cryptide_project/src/Pages/Play.tsx +++ b/cryptide_project/src/Pages/Play.tsx @@ -40,7 +40,7 @@ function Play() { />
- + diff --git a/cryptide_project/src/Style/Global.css b/cryptide_project/src/Style/Global.css index d6e807d..aa60a8a 100644 --- a/cryptide_project/src/Style/Global.css +++ b/cryptide_project/src/Style/Global.css @@ -1,6 +1,13 @@ - - +.item-horizontal-div{ + display: flex; + flex-direction: row; + align-items: center; + background-color:#fff; + border-radius: 15px; + width: 500px; + margin: 10px 20px; +} /**Form**/ .form-container { @@ -11,4 +18,4 @@ form{ margin : auto 150px; -} \ No newline at end of file +} diff --git a/cryptide_project/src/res/img/bot.png b/cryptide_project/src/res/img/bot.png new file mode 100644 index 0000000..9010539 Binary files /dev/null and b/cryptide_project/src/res/img/bot.png differ