Merge branch 'master' of https://codefirst.iut.uca.fr/git/Crypteam/Cryptid
commit
01369648c9
@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
import '../Style/Global.css';
|
||||||
|
|
||||||
|
//@ts-ignore
|
||||||
|
function PlayerItemList({ pdp, name}) {
|
||||||
|
return (
|
||||||
|
<div className='item-horizontal-div'>
|
||||||
|
<img src={pdp} alt='player-image' height="100" width="100"/>
|
||||||
|
<h4>{name}</h4>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PlayerItemList;
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,49 @@
|
|||||||
|
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 (
|
||||||
|
<div className='lobby-container'>
|
||||||
|
<div className='left-part'>
|
||||||
|
<div className='player-board'>
|
||||||
|
{/* //! voir pour la gestion avec un liste, utilisateur avec le "+ (vous)" et les pdp avec les lettres grecs (?)*/}
|
||||||
|
<PlayerItemList pdp={Person} name="Dummy (vous)"/>
|
||||||
|
<PlayerItemList pdp={Bot} name="Boat"/>
|
||||||
|
<PlayerItemList pdp={Bot} name="Bot-tom"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="lobby-vertical-divider"></div>
|
||||||
|
|
||||||
|
<div className='right-part'>
|
||||||
|
<div className='title-param-div'>
|
||||||
|
<img src={param} alt="param"/>
|
||||||
|
<h2>Paramètre de la partie</h2>
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><h4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim</h4></li>
|
||||||
|
<li><h4>paramètre super important pour la partie</h4></li>
|
||||||
|
<li><h4>paramètre super important pour la partie</h4></li>
|
||||||
|
<li><h4>paramètre super important pour la partie</h4></li>
|
||||||
|
<li><h4>Niveau des bots : Facile </h4></li> {/* mettre un dropdown ou un swiper */}
|
||||||
|
<li><h4>Thèmes : basique </h4></li> {/* mettre un dropdown*/}
|
||||||
|
{
|
||||||
|
//? mettre un timer pour chaques personne ?
|
||||||
|
//? indice avancé ? ==> négation, voisin du 2e degré etc.
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
<center>
|
||||||
|
<ButtonImgNav dest='/' img={cible} text=' À la chasse !'/> {/* page de baptiste ici */}
|
||||||
|
</center>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Lobby;
|
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in new issue