Minor progress on client side redesign.
This commit is contained in:
parent
c6b15074fb
commit
8231f9db67
21
client/src/components/GameInfoCardDisplay.js
Normal file
21
client/src/components/GameInfoCardDisplay.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import React from "react";
|
||||||
|
import propTypes from "prop-types";
|
||||||
|
import GameInfoCard from "./GameInfoCard";
|
||||||
|
|
||||||
|
export default class GameInfoCardDisplay extends React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
|
||||||
|
}
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div className="horizontal-scroller">
|
||||||
|
{this.props.recommendedMatches.map((match) => <GameInfoCard key={match.id} match={match}></GameInfoCard>)}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GameInfoCardDisplay.propTypes = {
|
||||||
|
recommendedMatches: propTypes.array,
|
||||||
|
};
|
@ -1,4 +1,5 @@
|
|||||||
export default class Match {
|
export default class Match {
|
||||||
|
id;
|
||||||
minUsers;
|
minUsers;
|
||||||
MaxUsers;
|
MaxUsers;
|
||||||
registeredUsers;
|
registeredUsers;
|
||||||
|
@ -14,7 +14,7 @@ export default class Welcome extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className="text-center p-3 mt-2">
|
<div className="text-center p-3 mt-2">
|
||||||
<h2>Why?</h2>
|
<h2>Why?</h2>
|
||||||
<p>Because you want to play the sports you love while meeting new friends and foes!</p>
|
<p>Because you want to play the sports you love while meeting new friends!</p>
|
||||||
{/* TODO: All this text should be expanded on. */}
|
{/* TODO: All this text should be expanded on. */}
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
|
@ -13,3 +13,7 @@
|
|||||||
.jumbotron h1 {
|
.jumbotron h1 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.horizontal-scroller {
|
||||||
|
overflow-x: scroll;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user