Skip to content

Commit 15c3007

Browse files
committed
feat: optimize go page for screenshot
1 parent 7116215 commit 15c3007

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
200200
def render(assigns) do
201201
~H"""
202202
<div class="lg:pr-96">
203-
<div class="container mx-auto max-w-7xl space-y-8 lg:space-y-16 p-4 sm:p-6 lg:p-8">
203+
<div class="container mx-auto max-w-7xl space-y-8 xl:space-y-16 p-4 sm:p-6 lg:p-8">
204204
<.section :if={@payable_bounties != %{}}>
205205
<.card>
206206
<.card_header>
@@ -371,7 +371,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
371371
subtitle="Top 1% Algora developers in your tech stack available to hire now"
372372
>
373373
<div class="relative w-full flex flex-col gap-4">
374-
<div class="lg:pb-2 lg:pt-4 flex flex-col lg:flex-row gap-4 lg:gap-4">
374+
<div :if={!@screenshot?} class="lg:pb-2 lg:pt-4 flex flex-col lg:flex-row gap-4 lg:gap-4">
375375
<h3 class="text-lg font-semibold whitespace-nowrap">How it works</h3>
376376
<ul class="xl:mx-auto flex flex-col md:flex-row gap-2 md:gap-4 2xl:gap-6 text-xs font-medium">
377377
<li class="flex items-center">
@@ -1320,8 +1320,8 @@ defmodule AlgoraWeb.Org.DashboardLive do
13201320

13211321
defp match_card(assigns) do
13221322
~H"""
1323-
<div class="relative flex flex-col xl:flex-row xl:items-center xl:justify-between gap-4 sm:gap-8 xl:gap-4 2xl:gap-6 border bg-card rounded-xl text-card-foreground shadow p-6">
1324-
<div class="xl:basis-[51%] w-full truncate">
1323+
<div class="relative flex flex-col lg:flex-row xl:items-center lg:justify-between gap-4 sm:gap-8 lg:gap-4 xl:gap-6 border bg-card rounded-xl text-card-foreground shadow p-4 pt-8">
1324+
<div class="lg:basis-[52%] w-full truncate">
13251325
<div class="flex items-center justify-between gap-4">
13261326
<div class="flex items-center gap-4">
13271327
<.link navigate={User.url(@match.user)}>
@@ -1406,7 +1406,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
14061406
)}
14071407
</span>
14081408
</div>
1409-
<div class="pt-4 flex flex-col sm:flex-row sm:flex-wrap 2xl:flex-nowrap gap-4 xl:gap-4 2xl:gap-8">
1409+
<div class="pt-4 flex flex-col sm:flex-row sm:flex-wrap xl:flex-nowrap gap-4 lg:gap-4 xl:gap-8">
14101410
<%= for {project, total_earned} <- @match.projects |> Enum.take(2) do %>
14111411
<.link
14121412
navigate={User.url(project)}
@@ -1442,8 +1442,8 @@ defmodule AlgoraWeb.Org.DashboardLive do
14421442
</div>
14431443
</div>
14441444
1445-
<div class="pt-2 xl:pt-0 xl:pl-4 2xl:pl-6 xl:basis-[49%] w-full xl:border-l xl:border-border">
1446-
<dl :if={@match[:hourly_rate]} class="pt-4">
1445+
<div class="pt-2 lg:pt-0 lg:pl-4 xl:pl-6 lg:basis-[48%] w-full lg:border-l lg:border-border">
1446+
<dl :if={@match[:hourly_rate]} class="pt-4 lg:pt-0">
14471447
<div class="flex flex-col-reverse 3xl:flex-row justify-between items-center gap-2">
14481448
<dt class="text-foreground text-center">
14491449
Total payment for <span class="font-semibold">{@match.user.hours_per_week || 30}</span>

0 commit comments

Comments
 (0)