parent
01369648c9
commit
9368d0d7b0
@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import './ButtonImgNav.css';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
//@ts-ignore
|
||||
function BigButtonNav({ dest, img}) {
|
||||
return (
|
||||
<Link to={dest} className="link-without-underline">
|
||||
<button className='bigbuttonNabImg'>
|
||||
<img src={img} alt="Button Image" height="100" width="100"/>
|
||||
</button>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
export default BigButtonNav;
|
@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import '../Style/Global.css'
|
||||
import Person from '../res/img/Person.png'
|
||||
import leave from '../res/img/bot.png'
|
||||
|
||||
//@ts-ignore
|
||||
function PersonStatus({img = Person, state= leave, name = "Dummy"}) {
|
||||
return (
|
||||
<div className='centerDivV'>
|
||||
<img src={img} alt="player" height="100" width="100"/>
|
||||
<h4>{name}</h4>
|
||||
<div className='statusDiv'>
|
||||
<img src={state} alt="state" height="30" width="30"/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default PersonStatus;
|
@ -0,0 +1,34 @@
|
||||
|
||||
.head{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.leaderboard-header{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
width: fit-content;
|
||||
|
||||
border-radius: 0px 0px 30px 30px;
|
||||
border: solid #85C9C2;
|
||||
border-width: 0 5px;
|
||||
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.bottom{
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.winner{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
import React from 'react';
|
||||
import './EndGame.css';
|
||||
import '../Style/Global.css';
|
||||
import Person from '../res/img/Person.png';
|
||||
import Leave from '../res/icon/leave.png';
|
||||
import Replay from '../res/icon/replay.png';
|
||||
|
||||
/* Component */
|
||||
import PersonStatus from '../Components/PersonStatus';
|
||||
import ButtonImgNav from '../Components/ButtonImgNav';
|
||||
import BigButtonNav from '../Components/BigButtonNav';
|
||||
|
||||
/* nav */
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
/* lang */
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
|
||||
function EndGame() {
|
||||
return (
|
||||
<div>
|
||||
<div className="head">
|
||||
<header className='leaderboard-header'>
|
||||
<h1>Dummy a gagné !</h1>
|
||||
<h3>Le tueur était <u>Bob</u></h3>
|
||||
</header>
|
||||
</div>
|
||||
<div className='winner'>
|
||||
<img src={Person} width='300' height='300'/>
|
||||
</div>
|
||||
<div className='bottom'>
|
||||
<div className='centerDivH'>
|
||||
<BigButtonNav dest="/play" img={Leave}/>
|
||||
</div>
|
||||
<div className='centerDivH'>
|
||||
<PersonStatus state={Replay} name="Dummy"/>
|
||||
<PersonStatus state={Leave} name="bot2"/>
|
||||
<PersonStatus state={Leave} name="bot3"/>
|
||||
</div>
|
||||
<div className='centerDivH'>
|
||||
<BigButtonNav dest="/lobby" img={Replay}/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default EndGame;
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.2 KiB |
Loading…
Reference in new issue