Skip to content

Commit 35ea409

Browse files
committed
improve bounties page
1 parent c1f11fc commit 35ea409

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/algora_web/live/org/bounties_live.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ defmodule AlgoraWeb.Org.BountiesLive do
3030
<h2 class="text-2xl font-bold dark:text-white">Bounties</h2>
3131
<p class="text-sm dark:text-gray-300">
3232
Create new bounties using the
33-
<code class="text-base font-semibold text-cyan-300">
34-
<span>/bounty</span> <span class="text-emerald-300">$AMOUNT</span>
33+
<code class="mx-1 inline-block rounded bg-emerald-950/75 px-1 py-0.5 font-mono text-sm text-emerald-400 ring-1 ring-emerald-400/25">
34+
/bounty $1000
3535
</code>
3636
command on Github.
3737
</p>
@@ -51,14 +51,14 @@ defmodule AlgoraWeb.Org.BountiesLive do
5151
type="button"
5252
role="tab"
5353
aria-selected={@current_tab == :open}
54-
class={"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium #{if @current_tab == :open, do: "bg-indigo-600 text-white", else: "hover:bg-indigo-600/50"}"}
54+
class={"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium #{if @current_tab == :open, do: "bg-emerald-700 text-white", else: "hover:bg-emerald-700/50"}"}
5555
data-state={if @current_tab == :open, do: "active", else: "inactive"}
5656
phx-click="change-tab"
5757
phx-value-tab="open"
5858
>
5959
<div class="relative flex items-center gap-2.5 text-sm md:text-base">
6060
<div class="truncate">Open</div>
61-
<span class="min-w-[1ch] font-mono text-indigo-200 transition duration-300 ease-out">
61+
<span class={"min-w-[1ch] font-mono #{if @current_tab == :open, do: "text-emerald-200", else: "text-gray-400 group-hover:text-emerald-200"}"}>
6262
{@open_count}
6363
</span>
6464
</div>
@@ -67,14 +67,14 @@ defmodule AlgoraWeb.Org.BountiesLive do
6767
type="button"
6868
role="tab"
6969
aria-selected={@current_tab == :completed}
70-
class={"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium #{if @current_tab == :completed, do: "bg-indigo-600 text-white", else: "hover:bg-indigo-600/50"}"}
70+
class={"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium #{if @current_tab == :completed, do: "bg-emerald-700 text-white", else: "hover:bg-emerald-700/50"}"}
7171
data-state={if @current_tab == :completed, do: "active", else: "inactive"}
7272
phx-click="change-tab"
7373
phx-value-tab="completed"
7474
>
7575
<div class="relative flex items-center gap-2.5 text-sm md:text-base">
7676
<div class="truncate">Completed</div>
77-
<span class="min-w-[1ch] font-mono text-gray-400 transition duration-300 ease-out group-hover:text-indigo-200">
77+
<span class={"min-w-[1ch] font-mono #{if @current_tab == :completed, do: "text-emerald-200", else: "text-gray-400 group-hover:text-emerald-200"}"}>
7878
{@completed_count}
7979
</span>
8080
</div>
@@ -219,7 +219,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
219219
View
220220
</.link>
221221
<.link
222-
class="inline-flex h-10 items-center justify-center rounded-md bg-indigo-600 px-4 py-2 text-sm font-medium text-white hover:bg-indigo-600/90"
222+
class="inline-flex h-10 items-center justify-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-medium text-white hover:bg-emerald-600/90"
223223
href="#"
224224
>
225225
Reward

0 commit comments

Comments
 (0)