parent
b330ae89fe
commit
ec4298e83e
@ -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,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 (
|
||||
<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"/>
|
||||
<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>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</h4></li>
|
||||
<li><h4>paramètre surper important pour la partie</h4></li>
|
||||
<li><h4>paramètre surper important pour la partie</h4></li>
|
||||
<li><h4>paramètre surper important pour la partie</h4></li>
|
||||
<li><h4>paramètre surper important pour la partie</h4></li>
|
||||
<li><h4>paramètre surper important pour la partie</h4></li>
|
||||
</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