Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created game section for users to switch and watch a game #385

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added client/src/assets/Chessboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/Ellipse133.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/Ellipse134.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/Ellipse135.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/Ellipse136.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions client/src/components/Games/Games.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


const Games = () => {
return (
<div
Expand Down
115 changes: 115 additions & 0 deletions client/src/components/Games/game.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
Container{
width: 100%;
padding: 50%;

}
.figcaption .btn-1{
position: absolute;
top: 19rem;
left: 9rem;


}
.figcaption .btn-2{
position: absolute;
top: 19rem;
left: 9rem;

}

.img-fluid1{
height: 500px;
width: 500px;
margin-top: 5rem;
margin-bottom: 5rem;

display: flex;
}
.img-fluid2{
height: 500px;
width: 500px;
margin-top: 4rem;
margin-bottom: 5rem;

display: flex;

}
.btn-1{
background-color: rgb(61, 182, 136);
border-radius: 0.5rem;
height: 4rem;
width: 13rem;
font-size: 1.4rem;
color:white;


}
.btn-2{
background-color: rgb(61, 182, 136);
border-radius: 0.5rem;
height: 4rem;
width: 13rem;
font-size: 1.4rem;
color:white;


}
.pic1{
position: absolute;
height: 60px;
width: 60px;
margin-top: 25px;
margin-bottom: 30px;
margin-left: 10px;
}
.pic2{
position: absolute;
top: 38rem;
height: 60px;
width: 60px;
left: 17rem;
}
.pic3{
position: absolute;
top: 38rem;
height: 60px;
width: 60px;
left: 17rem;
}
.text1{
position: relative;
left: 5.5rem;
top: 3rem;
font-size: 1rem ;
color: rgb(72, 70, 70);

}
.text2{
position: relative;
left: 22rem;
bottom: 3.5rem;
font-size: 1rem ;
color: rgb(72, 70, 70);
}
.text3{
position: relative;
left: 5rem;
top: 2.5rem;
font-size: 1rem ;
color: rgb(72, 70, 70);
}
.text4{
position: relative;
left: 21.5rem;
bottom: 2.5rem;
font-size: 1rem ;
color: rgb(72, 70, 70);
}
.color{
color:white;
top: 15rem;
}

@media screen and (max-width: 978px){

}
48 changes: 48 additions & 0 deletions client/src/components/Games/game.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

import "bootstrap/dist/css/bootstrap.min.css";
import './game.css';


import { Container } from "react-bootstrap";
import Chessboard from "../../assets/Chessboard.png";
import Ellipse134 from "../../assets/Ellipse134.png";
import Ellipse133 from "../../assets/Ellipse133.png";
import Ellipse135 from "../../assets/Ellipse135.png";
import Ellipse136 from "../../assets/Ellipse136.png";

function Game() {
return (
<div>
<Container>
<figure className="position-relative">
<img src ={Ellipse134} className="pic1" alt="ellipse"/>
<div className= "text1"> @dejavu</div>

<div className="figcaption">
<img src ={Chessboard} alt="chessboard" className="img-fluid1"/>
<button className="btn-1"> Watch game</button>
</div>

<img src ={Ellipse133} className="pic2" alt="ellipse"/>
<div className= "text2"> Techlead</div>
</figure>
<br></br>
<figure className="position-relative">

<img src ={Ellipse135} className="pic1" alt="ellipse"/>
<div className= "text3"> @kemi</div>
<div className="figcaption">
<img src ={Chessboard} alt="chessboard" className="img-fluid2"/>
<button className="btn-2">Watch game</button>
</div>
<img src ={Ellipse136} className="pic3" alt="ellipse"/>
<div className= "text4"> Ademola</div>
</figure>

</Container>

</div>
);
}

export default Game;
Loading