-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
244 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
div.card-header.league-name { | ||
font-size: 18px; | ||
font-weight:100; | ||
text-transform: uppercase; | ||
} | ||
|
||
.header-text { | ||
font-size: 16px; | ||
text-transform: uppercase; | ||
color: #aaa; | ||
font-weight: 100; | ||
} | ||
|
||
.stats { | ||
display: flex; | ||
justify-content: space-evenly; | ||
} | ||
|
||
.card-stat { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
} | ||
|
||
.number-stat { | ||
font-size: 72px; | ||
font-weight: bold; | ||
} | ||
|
||
.stat-footer { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.stat-title { | ||
text-transform: uppercase; | ||
font-weight: 100; | ||
} | ||
|
||
.league-show-header { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: baseline; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
nav.navbar > div.container > a.navbar-brand { | ||
text-transform: uppercase; | ||
text-shadow: 2px 2px 5px #eee; | ||
& > span { | ||
font-weight: bold; | ||
color: goldenrod; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,104 @@ | ||
<p>League Name: <%= @league.name %></p> | ||
|
||
<p>Number of Seasons: <%= @league.seasons_count %></p> | ||
<p>Total Number of Games: <%= @league.games_count %></p> | ||
<p>Average Players per Game: <%= @league.average_players_per_game %></p> | ||
<p>League Leader:</p> | ||
<p>Most 2nd Place Finishes:</p> | ||
<p>Standings:</p> | ||
<hr> | ||
<p>Stats for Season #<%= @league.current_season_number %></p> | ||
<p>Total Number of Games for Season: <%= @current_season.games_count %></p> | ||
<p>Average Players per Game: <%= @current_season.average_players_per_game %></p> | ||
<p>Current Season Leader: <%= @current_season.leader_full_name %></p> | ||
<% unless @current_season.most_second_place_finishes[1].nil? %> | ||
<p>Most 2nd Place Finishes (<%= @current_season.most_second_place_finishes[1] %>):</p> | ||
<ul> | ||
<% @current_season.most_second_place_finishes[0].each do |player_name| %> | ||
<li><%= player_name %></li> | ||
<% end %> | ||
</ul> | ||
<% end %> | ||
<p>Standings:</p> | ||
<ol> | ||
<% @current_season.ordered_rankings_full_names.each do |player| %> | ||
<li><%= player.user_full_name %> - <%= player.cumulative_score %></li> | ||
<% end %> | ||
</ol> | ||
<div class="card"> | ||
<div class="card-header league-name"> | ||
<%= @league.name %> | ||
</div> | ||
<div class="card-body"> | ||
<div class="league-show-header"> | ||
<h5 class="header-text">Overall League Statistics</h5> | ||
<%= link_to 'View Current Season Statistics', '#', class: 'btn btn-outline-info btn-sm' %> | ||
</div> | ||
<hr /> | ||
<div class="stats row justify-content-md-center"> | ||
|
||
<div class="card text-white bg-primary mb-3 ml-3 mr-3 col-md-3 pl-0 pr-0"> | ||
<div class="card-body card-stat"> | ||
<div class="number-stat"><%= @league.seasons_count %></div> | ||
</div> | ||
<div class="card-footer stat-footer"> | ||
<div class="stat-title">Number of Seasons</div> | ||
</div> | ||
</div> | ||
|
||
<div class="card text-white bg-secondary mb-3 col-md-3 ml-3 mr-3 pl-0 pr-0"> | ||
<div class="card-body card-stat"> | ||
<div class="number-stat"><%= @league.games_count %></div> | ||
</div> | ||
<div class="card-footer stat-footer"> | ||
<div class="stat-title">Total Number of Games</div> | ||
</div> | ||
</div> | ||
|
||
<div class="card text-white bg-success mb-3 col-md-3 ml-3 mr-3 pl-0 pr-0"> | ||
<div class="card-body card-stat"> | ||
<div class="number-stat"><%= @league.average_players_per_game %></div> | ||
</div> | ||
<div class="card-footer stat-footer"> | ||
<div class="stat-title">Average Players per Game</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<hr /> | ||
<div class="row justify-content-center mt-3"> | ||
<div class="col-md-4 mt-3"> | ||
<div class="card mb-4 border-primary"> | ||
<h5 class="card-header header-text"> | ||
League Leader | ||
</h5> | ||
<div class="card-body"> | ||
Mike Cassano | ||
</div> | ||
</div> | ||
|
||
<div class="card mb-4 border-danger"> | ||
<h5 class="card-header header-text"> | ||
Most 2nd Place Finishes | ||
</h5> | ||
<div class="card-body"> | ||
Kyle Wheeler (23) | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-6 mt-3"> | ||
<div class="card mb-4 border-info"> | ||
<h5 class="card-header header-text"> | ||
Standings | ||
</h5> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item">1. Mike Cassano</li> | ||
<li class="list-group-item">2. Kyle Wheeler</li> | ||
<li class="list-group-item">3. Tyler Merry</li> | ||
<li class="list-group-item">4. Mark Miranda</li> | ||
<li class="list-group-item">5. Mike Cassano</li> | ||
<li class="list-group-item">6. Kyle Wheeler</li> | ||
<li class="list-group-item">7. Tyler Merry</li> | ||
<li class="list-group-item">8. Mark Miranda</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<hr /> | ||
<p>Stats for Season #<%= @league.current_season_number %></p> | ||
<p>Total Number of Games for Season: <%= @current_season.games_count %></p> | ||
<p>Average Players per Game: <%= @current_season.average_players_per_game %></p> | ||
<p>Current Season Leader: <%= @current_season.leader_full_name %></p> | ||
<% unless @current_season.most_second_place_finishes[1].nil? %> | ||
<p>Most 2nd Place Finishes (<%= @current_season.most_second_place_finishes[1] %>):</p> | ||
<ul> | ||
<% @current_season.most_second_place_finishes[0].each do |player_name| %> | ||
<li><%= player_name %></li> | ||
<% end %> | ||
</ul> | ||
<% end %> | ||
<p>Standings:</p> | ||
<ol> | ||
<% @current_season.ordered_rankings_full_names.each do |player| %> | ||
<li><%= player.user_full_name %> - <%= player.cumulative_score %></li> | ||
<% end %> | ||
</ol> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<nav class="navbar navbar-expand-lg navbar-light bg-light"> | ||
<div class="container"> | ||
<%= link_to root_path, class: 'navbar-brand' do %> | ||
Poker<span>Rank</span> | ||
<% end %> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="#">Link <span class="sr-only">(current)</span></a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#">Link</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
Dropdown | ||
</a> | ||
<div class="dropdown-menu" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item" href="#">Action</a> | ||
<a class="dropdown-item" href="#">Another action</a> | ||
<div class="dropdown-divider"></div> | ||
<a class="dropdown-item" href="#">Something else here</a> | ||
</div> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link disabled" href="#">Disabled</a> | ||
</li> | ||
</ul> | ||
<form class="form-inline my-2 my-lg-0"> | ||
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"> | ||
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> | ||
</form> | ||
</div> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters