Rewrite phase 1.
Started improved client code structure. Implemented session based authentication serverside. Implemented user, match, and sport database models serverside. Implemented Controllers for variety of C and R operations of CRUD.
This commit is contained in:
28
sports-matcher/client/src/pages/Welcome.js
Normal file
28
sports-matcher/client/src/pages/Welcome.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import React from "react";
|
||||
import { apiClient } from "../utils/httpClients";
|
||||
export default class Welcome extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.recentMatchesRequest = apiClient.get("/match/recent/15");
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="page-root">
|
||||
<div className="jumbotron" >
|
||||
<h1>Sports Matcher</h1>
|
||||
<p>The best place to find a local match for a good game of your favourite sport!</p>
|
||||
</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!</p>
|
||||
{/* TODO: All this text should be expanded on. */}
|
||||
</div>
|
||||
<hr />
|
||||
<div className="p-4">
|
||||
<h2>Available Matches</h2>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user