Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main page with minor design updates #888

Merged
merged 2 commits into from
Jul 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions lib/ex338_web/templates/fantasy_league/fantasy_teams_table.html.eex
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
<div class="pb-6">
<div class="-my-2 py-2 overflow-x-visible sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
<div class="align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-b border-gray-200">
<div class="py-2 -my-2 overflow-x-visible sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
<div class="inline-block min-w-full overflow-hidden align-middle border-b border-gray-200 shadow sm:rounded-lg">
<table class="min-w-full">
<thead>
<tr>
<th class="px-2 sm:px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs lg:text-sm leading-4 font-medium text-gray-500 uppercase tracking-wider">
<th class="px-2 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase border-b border-gray-200 sm:px-6 bg-gray-50 lg:text-sm leading-4">
Rank
</th>
<th class="px-2 sm:px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs lg:text-sm leading-4 font-medium text-gray-500 uppercase tracking-wider">
<th class="px-2 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase border-b border-gray-200 sm:px-6 bg-gray-50 lg:text-sm leading-4">
Name
</th>
<th class="px-2 sm:px-6 py-3 border-b border-gray-200 bg-gray-50 text-center text-xs lg:text-sm leading-4 font-medium text-gray-500 uppercase tracking-wider">
<th class="px-2 py-3 text-xs font-medium tracking-wider text-center text-gray-500 uppercase border-b border-gray-200 sm:px-6 bg-gray-50 lg:text-sm leading-4">
Points
</th>
<th class="hidden sm:table-cell px-2 sm:px-6 py-3 border-b border-gray-200 whitespace-wrap bg-gray-50 text-center text-xs lg:text-sm leading-4 font-medium text-gray-500 uppercase tracking-wider">
<th class="hidden px-2 py-3 text-xs font-medium tracking-wider text-center text-gray-500 uppercase border-b border-gray-200 sm:table-cell sm:px-6 whitespace-wrap bg-gray-50 lg:text-sm leading-4">
Waiver Position
</th>
<th class="sm:hidden px-2 sm:px-6 py-3 border-b border-gray-200 whitespace-wrap bg-gray-50 text-center text-xs lg:text-sm leading-4 font-medium text-gray-500 uppercase tracking-wider">
<th class="px-2 py-3 text-xs font-medium tracking-wider text-center text-gray-500 uppercase border-b border-gray-200 sm:hidden sm:px-6 whitespace-wrap bg-gray-50 lg:text-sm leading-4">
Waiver
</th>
<th class="px-2 sm:px-6 py-3 border-b border-gray-200 bg-gray-50 text-center text-xs lg:text-sm leading-4 font-medium text-gray-500 uppercase tracking-wider">
<th class="px-2 py-3 text-xs font-medium tracking-wider text-center text-gray-500 uppercase border-b border-gray-200 sm:px-6 bg-gray-50 lg:text-sm leading-4">
Winnings
</th>
<th class="hidden sm:table-cell sm:px-6 py-3 border-b border-gray-200 bg-gray-50 text-center text-xs lg:text-sm leading-4 font-medium text-gray-500 uppercase tracking-wider">
<th class="hidden py-3 text-xs font-medium tracking-wider text-center text-gray-500 uppercase border-b border-gray-200 sm:table-cell sm:px-6 bg-gray-50 lg:text-sm leading-4">
Dues
</th>
</tr>
</thead>
<tbody class="bg-white">
<%= for team <- @fantasy_teams do %>
<tr>
<td class="px-1 sm:px-6 py-2 lg:py-4 whitespace-no-wrap border-b border-gray-200 text-sm lg:text-base text-center sm:text-left leading-5 text-gray-500">
<td class="px-1 py-2 text-sm text-center text-gray-500 whitespace-no-wrap border-b border-gray-200 sm:px-6 lg:text-base sm:text-left leading-5">
<%= team.rank %>
</td>
<td class="px-1 sm:px-6 py-2 lg:py-4 break-words border-b border-gray-200 text-sm lg:text-base leading-5 font-medium text-indigo-700">
<td class="px-1 py-2 text-sm font-medium text-indigo-700 break-words border-b border-gray-200 sm:px-6 lg:text-base leading-5">
<%= link team.team_name, to: Routes.fantasy_team_path(@conn, :show, team.id) %>
</td>
<td class="px-1 sm:px-6 py-2 lg:py-4 whitespace-no-wrap border-b border-gray-200 text-sm lg:text-base text-center leading-5 text-gray-500">
<td class="px-1 py-2 text-sm text-center text-gray-500 whitespace-no-wrap border-b border-gray-200 sm:px-6 lg:text-base leading-5">
<%= team.points %>
</td>
<td class="px-1 sm:px-6 py-2 lg:py-4 whitespace-no-wrap border-b border-gray-200 text-sm lg:text-base text-center leading-5 text-gray-500">
<td class="px-1 py-2 text-sm text-center text-gray-500 whitespace-no-wrap border-b border-gray-200 sm:px-6 lg:text-base leading-5">
<%= team.waiver_position %>
</td>
<td class="px-1 sm:px-6 py-2 lg:py-4 whitespace-no-wrap border-b border-gray-200 text-sm lg:text-base text-center leading-5 text-gray-500">
<td class="px-1 py-2 text-sm text-center text-gray-500 whitespace-no-wrap border-b border-gray-200 sm:px-6 lg:text-base leading-5">
<%= format_whole_dollars(team.winnings) %>
</td>
<td class="hidden sm:table-cell sm:px-6 py-2 lg:py-4 whitespace-no-wrap border-b border-gray-200 text-sm lg:text-base text-center leading-5 text-gray-500">
<td class="hidden py-2 text-sm text-center text-gray-500 whitespace-no-wrap border-b border-gray-200 sm:table-cell sm:px-6 lg:text-base leading-5">
<%= format_whole_dollars(team.dues_paid) %>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions lib/ex338_web/templates/page/index.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</div>
</section>
<section>
<h2 class="pb-4 sm:pb-6 pt-4 sm:pt-10 text-lg sm:text-2xl text-gray-700 text-center ">
<h2 class="pt-4 pb-4 text-lg text-center text-gray-700 sm:pb-6 sm:pt-10 sm:text-2xl ">
Historical Records
</h2>
<div class="flex flex-row flex-wrap justify-center md:justify-around">
<div class="sm:justify-center sm:flex-wrap sm:flex-row sm:flex md:justify-around">
<%= render "season_records_table.html", season_records: @season_records %>
<%= render "all_time_records_table.html", all_time_records: @all_time_records %>
<%= render "winnings_table.html", winnings: @winnings %>
Expand Down