Minor progress on client side redesign.

This commit is contained in:
Harrison Deng 2022-04-01 05:37:42 -05:00
parent c6b15074fb
commit 8231f9db67
4 changed files with 27 additions and 1 deletions

View 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,
};

View File

@ -1,4 +1,5 @@
export default class Match { export default class Match {
id;
minUsers; minUsers;
MaxUsers; MaxUsers;
registeredUsers; registeredUsers;

View File

@ -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 />

View File

@ -13,3 +13,7 @@
.jumbotron h1 { .jumbotron h1 {
font-size: 1.5rem; font-size: 1.5rem;
} }
.horizontal-scroller {
overflow-x: scroll;
}