-
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.
* Add player frontend * Responsive player layout * Add team UI * Add players latest matches * Add player game icons to match page * Make layout responsive * Add footer * Change some UI elements to match figma project * Re-add edit buttons * Fix minor button inconsistencies * Replaced obsolete live_patch for live_redirect * Fix formatting * Add player table * Improve index responsiveness * Change player page to match figma design * Add info to display when player hasn't played yet * Add teams page * Fix minor hover css inconsistencies * Update match table * Add responsiveness to group index & round index * Change event icons in match page to match figma * Improve matches row components (#36) * Improve player edit UI * Run formatter * Implement suggestions --------- Co-authored-by: Filipe Felício <[email protected]>
- Loading branch information
1 parent
055c559
commit aac1d14
Showing
24 changed files
with
778 additions
and
468 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@tailwind utilities; | ||
|
||
@layer utilities { | ||
/* Hide scrollbar for Chrome, Safari and Opera */ | ||
.no-scrollbar::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
/* Hide scrollbar for IE, Edge and Firefox */ | ||
.no-scrollbar { | ||
-ms-overflow-style: none; /* IE and Edge */ | ||
scrollbar-width: none; /* Firefox */ | ||
} | ||
} |
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
59 changes: 29 additions & 30 deletions
59
lib/cesium_cup_web/live/elimination_round_live/index.html.heex
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,34 +1,33 @@ | ||
<div class="pt-10 px-60"> | ||
<h1>Listing Elimination Rounds</h1> | ||
<div class="pt-10 px-64"> | ||
<div class="mt-5 bg-[#F9FAFB] rounded-lg w-full px-10 pb-10 text-secondary"> | ||
<div class="py-4 px-4 flex text-secondary font-medium text-xs divide-x-4"> | ||
<span href="#" class="border-transparent hover:text-gray-700 whitespace-nowrap font-small" aria-current="page"><%= live_redirect("CeSIUM Cup", to: Routes.home_index_path(@socket, :index)) %></span> | ||
<a class="border-transparent whitespace-nowrap font-small">></a> | ||
<span href="#" class="border-transparent hover:text-gray-700 whitespace-nowrap font-small" aria-current="page"><%= live_redirect("Rounds", to: Routes.elimination_round_index_path(@socket, :index), class: "button") %></span> | ||
<span class="border-transparent ml-auto mr-4 text-indigo-300 hover:text-indigo-400 whitespace-nowrap border-b-4 font-small"><%= live_redirect("New Elimination round", to: Routes.elimination_round_index_path(@socket, :new)) %></span> | ||
</div> | ||
|
||
<%= if @live_action in [:new, :edit] do %> | ||
<.modal return_to={Routes.elimination_round_index_path(@socket, :index)}> | ||
<.live_component module={CesiumCupWeb.EliminationRoundLive.FormComponent} id={@elimination_round.id || :new} title={@page_title} action={@live_action} elimination_round={@elimination_round} return_to={Routes.elimination_round_index_path(@socket, :index)} /> | ||
</.modal> | ||
<% end %> | ||
<div class="mx-2 pt-[1px] bg-[rgb(230,230,230)]"></div> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<%= if @live_action in [:new, :edit] do %> | ||
<.modal return_to={Routes.elimination_round_index_path(@socket, :index)}> | ||
<.live_component module={CesiumCupWeb.EliminationRoundLive.FormComponent} id={@elimination_round.id || :new} title={@page_title} action={@live_action} elimination_round={@elimination_round} return_to={Routes.elimination_round_index_path(@socket, :index)} /> | ||
</.modal> | ||
<% end %> | ||
|
||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody id="elimination_rounds"> | ||
<%= for elimination_round <- @elimination_rounds do %> | ||
<tr id={"elimination_round-#{elimination_round.id}"}> | ||
<td><%= elimination_round.name %></td> | ||
|
||
<td> | ||
<span><%= live_redirect("Show", to: Routes.elimination_round_show_path(@socket, :show, elimination_round)) %></span> | ||
<span><%= live_patch("Edit", to: Routes.elimination_round_index_path(@socket, :edit, elimination_round)) %></span> | ||
<span><%= link("Delete", to: "#", phx_click: "delete", phx_value_id: elimination_round.id, data: [confirm: "Are you sure?"]) %></span> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
|
||
<span><%= live_patch("New Elimination round", to: Routes.elimination_round_index_path(@socket, :new)) %></span> | ||
<table class="flex mx-4 my-10"> | ||
<tbody id="elimination_rounds"> | ||
<%= for elimination_round <- @elimination_rounds do %> | ||
<tr id={"elimination_round-#{elimination_round.id}"}> | ||
<td class="font-bold text-lg"><%= elimination_round.name %></td> | ||
<td> | ||
<span class="mx-2"><%= live_redirect("Show", to: Routes.elimination_round_show_path(@socket, :show, elimination_round)) %></span> | ||
<span class="mx-2"><%= live_redirect("Edit", to: Routes.elimination_round_index_path(@socket, :edit, elimination_round)) %></span> | ||
<span class="mx-2"><%= link("Delete", to: "#", phx_click: "delete", phx_value_id: elimination_round.id, data: [confirm: "Are you sure?"]) %></span> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</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
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,34 +1,34 @@ | ||
<div class="pt-10 px-60"> | ||
<h1>Listing Groups</h1> | ||
<div class="pt-10 px-4"> | ||
<div class="mt-5 bg-[#F9FAFB] rounded-lg w-full px-10 pb-10 text-secondary"> | ||
<div class="py-4 px-4 flex text-secondary font-medium text-xs divide-x-4"> | ||
<span href="#" class="border-transparent hover:text-gray-700 whitespace-nowrap font-small" aria-current="page"><%= live_redirect("CeSIUM Cup", to: Routes.home_index_path(@socket, :index)) %></span> | ||
<a class="border-transparent whitespace-nowrap font-small">></a> | ||
<span href="#" class="border-transparent hover:text-gray-700 whitespace-nowrap font-small" aria-current="page"><%= live_redirect("Groups", to: Routes.group_index_path(@socket, :index), class: "button") %></span> | ||
<span class="border-transparent ml-auto mr-4 text-indigo-300 hover:text-indigo-400 whitespace-nowrap border-b-4 font-small"><%= live_redirect("New Group", to: Routes.group_index_path(@socket, :new)) %></span> | ||
</div> | ||
|
||
<%= if @live_action in [:new, :edit] do %> | ||
<.modal return_to={Routes.group_index_path(@socket, :index)}> | ||
<.live_component module={CesiumCupWeb.GroupLive.FormComponent} id={@group.id || :new} title={@page_title} action={@live_action} group={@group} return_to={Routes.group_index_path(@socket, :index)} /> | ||
</.modal> | ||
<% end %> | ||
<div class="mx-2 pt-[1px] bg-[rgb(230,230,230)]"></div> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<%= if @live_action in [:new, :edit] do %> | ||
<.modal return_to={Routes.group_index_path(@socket, :index)}> | ||
<.live_component module={CesiumCupWeb.GroupLive.FormComponent} id={@group.id || :new} title={@page_title} action={@live_action} group={@group} return_to={Routes.group_index_path(@socket, :index)} /> | ||
</.modal> | ||
<% end %> | ||
|
||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody id="groups"> | ||
<%= for group <- @groups do %> | ||
<tr id={"group-#{group.id}"}> | ||
<td><%= group.name %></td> | ||
<table class="flex mx-4 my-10"> | ||
<tbody id="groups"> | ||
<%= for group <- @groups do %> | ||
<tr id={"group-#{group.id}"}> | ||
<td class="font-bold text-lg"><%= group.name %></td> | ||
|
||
<td> | ||
<span><%= live_redirect("Show", to: Routes.group_show_path(@socket, :show, group)) %></span> | ||
<span><%= live_patch("Edit", to: Routes.group_index_path(@socket, :edit, group)) %></span> | ||
<span><%= link("Delete", to: "#", phx_click: "delete", phx_value_id: group.id, data: [confirm: "Are you sure?"]) %></span> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
|
||
<span><%= live_patch("New Group", to: Routes.group_index_path(@socket, :new)) %></span> | ||
<td> | ||
<span class="mx-2"><%= live_redirect("Show", to: Routes.group_show_path(@socket, :show, group)) %></span> | ||
<span class="mx-2"><%= live_redirect("Edit", to: Routes.group_index_path(@socket, :edit, group)) %></span> | ||
<span class="mx-2"><%= link("Delete", to: "#", phx_click: "delete", phx_value_id: group.id, data: [confirm: "Are you sure?"]) %></span> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</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
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
Oops, something went wrong.