Minor progress on client side redesign.
This commit is contained in:
		
							
								
								
									
										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 {
 | 
			
		||||
    id;
 | 
			
		||||
    minUsers;
 | 
			
		||||
    MaxUsers;
 | 
			
		||||
    registeredUsers;
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,7 @@ export default class Welcome extends React.Component {
 | 
			
		||||
                </div>
 | 
			
		||||
                <div className="text-center p-3 mt-2">
 | 
			
		||||
                    <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. */}
 | 
			
		||||
                </div>
 | 
			
		||||
                <hr />
 | 
			
		||||
 
 | 
			
		||||
@@ -13,3 +13,7 @@
 | 
			
		||||
.jumbotron h1 {
 | 
			
		||||
  font-size: 1.5rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.horizontal-scroller {
 | 
			
		||||
  overflow-x: scroll;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user