-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
half game-list, half game-details view
- Loading branch information
1 parent
b940e64
commit 649a9cc
Showing
10 changed files
with
189 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,46 @@ | ||
.game-info-container{ | ||
margin:auto; | ||
max-width: 80%; | ||
.game-info-container-scroll { | ||
padding: 5px; | ||
height: 100%; | ||
overflow: scroll; | ||
.game-info-container{ | ||
|
||
h1 { | ||
font-size: 30px; | ||
} | ||
|
||
.game-info-table{ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
height: 100%; | ||
justify-content: space-between; | ||
} | ||
* { | ||
font-size: 20px; | ||
} | ||
|
||
.article-content{ | ||
border: 3px solid black; | ||
padding: 1.5% 5%; | ||
margin: 20px; | ||
} | ||
|
||
.bold-text{ | ||
font-weight: bold; | ||
font-size: 0.9em; | ||
font-family: Arial, Helvetica, sans-serif; | ||
text-shadow: none; | ||
letter-spacing: 1px; | ||
color: rgb(57, 185, 31); | ||
} | ||
.game-info-table{ | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
} | ||
|
||
.article-content{ | ||
border: 1px solid #303030; | ||
padding: 5px; | ||
margin: 5px; | ||
|
||
.game-info-col{ | ||
span > p{ | ||
margin-bottom: 30px; | ||
p { | ||
margin: 5px 0; | ||
} | ||
} | ||
p{ | ||
text-align: center; | ||
|
||
.bold-text{ | ||
font-weight: bold; | ||
font-size: 0.7em; | ||
font-family: Arial, Helvetica, sans-serif; | ||
text-shadow: none; | ||
letter-spacing: 1px; | ||
color: rgb(57, 185, 31); | ||
} | ||
} | ||
|
||
} | ||
|
||
.error-message{ | ||
display:flex; | ||
align-items: center; | ||
flex-direction: column; | ||
justify-content: center; | ||
padding-top: 23% ; | ||
margin-top:auto; | ||
margin-bottom:auto; | ||
} | ||
.game-info-col{ | ||
span > p { | ||
font-size: 15px; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React, { useState } from 'react'; | ||
import GameList from '../lists/GamesList'; | ||
import GameDetails from './GameDetails'; | ||
|
||
import './GamesView.scss'; | ||
|
||
export default function GamesView() { | ||
const [gameId, setGameId] = useState(-1); | ||
return ( | ||
<> | ||
<h1>Games</h1> | ||
<div className="games-container"> | ||
<div className="game-list-container"> | ||
<GameList setGameId={setGameId}/> | ||
</div> | ||
<div className="game-details-container"> | ||
<GameDetails gameId={gameId}/> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.games-container { | ||
display: grid; | ||
grid-template-columns: 50% 50%; | ||
|
||
& > div { | ||
background-color: #181818; | ||
width: 90%; | ||
justify-self: center; | ||
height: 70vh; | ||
overflow: hidden; | ||
padding-bottom: 5px; | ||
|
||
border-radius: 5px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.