Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Aug 23, 2023
1 parent d0ef1d8 commit 12b5727
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 122 deletions.
7 changes: 4 additions & 3 deletions lib/cesium_cup_web/live/match_live/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
</div>

<div class="mx-2 pt-[1px] bg-[rgb(230,230,230)]"></div>
<div class="pb-10 border-b">w
<div class="pb-10 border-b">
w
<div class="flex flex-row justify-around items-center gap-x-4 pt-8">
<div>
<%= if @match.home_team_id do %>
Expand Down Expand Up @@ -204,12 +205,12 @@
<% end %>
<%= if event.type == :yellow_card do %>
<div title={display_time(event.inserted_at)} class="group h-4 w-4 self-center flex m-auto fill-draw">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 425.9 504.3"><rect class="cls-1" x="65.27" y="17.59" width="381.46" height="476.82" rx="95.36" transform="translate(-81.63 41.69) rotate(-9.46)"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 425.9 504.3"><rect class="cls-1" x="65.27" y="17.59" width="381.46" height="476.82" rx="95.36" transform="translate(-81.63 41.69) rotate(-9.46)" /></svg>
</div>
<% end %>
<%= if event.type == :red_card do %>
<div title={display_time(event.inserted_at)} class="group h-4 w-4 self-center flex m-auto fill-loss">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 425.9 504.3"><rect class="cls-1" x="65.27" y="17.59" width="381.46" height="476.82" rx="95.36" transform="translate(-81.63 41.69) rotate(-9.46)"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 425.9 504.3"><rect class="cls-1" x="65.27" y="17.59" width="381.46" height="476.82" rx="95.36" transform="translate(-81.63 41.69) rotate(-9.46)" /></svg>
</div>
<% end %>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<div class="mb-4">
<label for="position" class="block mb-1 text-sm font-medium text-gray-900">Position</label>
<%= text_input(f, :position, class: "bg-white border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" ) %>
<%= text_input(f, :position, class: "bg-white border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5") %>
<%= error_tag(f, :position) %>
</div>

Expand Down
18 changes: 9 additions & 9 deletions lib/cesium_cup_web/live/player_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
</tr>
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
<%= for player <- @players do %>
<%= for player <- @players do %>
<tr id={"player-#{player.id}"}>
<td class="flex justify-between items-center whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">
<%= live_redirect to: Routes.player_show_path(@socket, :show, player) do %>
<div class="flex space-x-4 ">
<div class="relative">
<img class="w-8 h-8 rounded-full object-cover mr-2 ring-2 ring-gray-300" src={Routes.static_path(@socket, "/images/players/ronaldo.png")} alt="Rounded avatar">
<img class="w-8 h-8 rounded-full object-cover mr-2 ring-2 ring-gray-300" src={Routes.static_path(@socket, "/images/players/ronaldo.png")} alt="Rounded avatar" />
<%= if player.captain do %>
<span title="Captain" class="top-0 left-7 absolute w-3.5 h-3.5 bg-blue-300 border-2 border-white rounded-full"></span>
<% end %>
Expand All @@ -49,24 +49,24 @@
<% end %>
</td>
<td class="whitespace-nowrap justify-between items-center pr-3 py-4 text-sm font-medium text-gray-900">
<%= live_redirect to: Routes.team_show_path(@socket, :show, player.team) do %>
<%= live_redirect to: Routes.team_show_path(@socket, :show, player.team) do %>
<div class="flex justify-center">
<img class="w-5 h-5 object-contain mr-2" src={Routes.static_path(@socket, "/images/teams/portugal.png")} alt="Rounded avatar">
<img class="w-5 h-5 object-contain mr-2" src={Routes.static_path(@socket, "/images/teams/portugal.png")} alt="Rounded avatar" />
<p class="self-center hover:text-gray-700 ease-in duration-100"><%= player.team.name %></p>
</div>
<% end %>
<% end %>
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-center text-gray-500">
<p class="self-center capitalize"><%= player.position %></p>
<p class="self-center capitalize"><%= player.position %></p>
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-center text-gray-500">
<p class="self-center"><%= player.date_of_birth %></p>
<p class="self-center"><%= player.date_of_birth %></p>
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-center text-gray-500">
<p class="self-center"><%= player.height %> cm</p>
<p class="self-center"><%= player.height %> cm</p>
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-center text-gray-500">
<p class="self-center"><%= player.weight %> kg</p>
<p class="self-center"><%= player.weight %> kg</p>
</td>
</tr>
<% end %>
Expand Down
Loading

0 comments on commit 12b5727

Please sign in to comment.