Skip to content

Commit

Permalink
fix home page
Browse files Browse the repository at this point in the history
  • Loading branch information
akeaswaran committed Sep 12, 2024
1 parent 5e6b446 commit ff58f44
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions frontend/cfb/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,11 @@ router.route('/year/:year/players/:type')
}
})

router.route('/players')
.get(async function(req, res, next) {
return res.redirect(`/cfb/year/2024/players/passing`);
})

router.route('/players/:type')
.get(async function(req, res, next) {
return res.redirect(`/cfb/year/2024/players/${req.params.type}`);
Expand Down
19 changes: 16 additions & 3 deletions frontend/views/pages/cfb/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,22 @@
<div class="row mb-1">
<h3 class="text-center"> -- OR -- </h3>
</div>
<div class="row text-center mb-3">
<div class="form-signin col-12">
<a href="/cfb/teams" class="w-100 btn btn-lg btn-primary">View Leaderboards</a>
<!-- <div class="row mb-0">
<div class="col-12 mx-auto d-flex justify-content-around">
<a href="/cfb/teams" class="w-100 btn btn-lg btn-primary">Team Leaderboards</a>
<a href="/cfb/players" class="w-100 btn btn-lg btn-primary">Player Leaderboards</a>
</div>
</div> -->
<div class="row justify-content-center mb-3">
<div class="col-lg-3 col-xs-12 mb-xs-3 mb-sm-0">
<a href="/cfb/teams" class="w-100 btn btn-lg btn-primary">Team Leaderboards</a>
</div>
<div class="col-lg-3 col-xs-12 mb-xs-3 mb-sm-0">
<a href="/cfb/players" class="w-100 btn btn-lg btn-primary">Player Leaderboards</a>
</div>
</div>
<div class="row mt-0 mb-3 text-center">
<div class="col-12">
<span class="d-inline text-muted text-center"><small><abbr title="Please report any issues/feedback to @gameonpaper on Twitter!">(Beta)</abbr></small></span>
</div>
</div>
Expand Down

0 comments on commit ff58f44

Please sign in to comment.