Skip to content

Commit 895173a

Browse files
committed
add subtle button variant
1 parent 9329eaa commit 895173a

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

lib/algora_web/components/ui/button.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ defmodule AlgoraWeb.Components.UI.Button do
5353
"hover:destructive" =>
5454
"bg-background border-input hover:bg-destructive/30 text-accent-foreground hover:border-destructive focus-visible:outline-destructive-600 data-[state=open]:bg-destructive-500/80 data-[state=open]:outline-destructive-600 shadow border",
5555
"outline" => "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
56+
"subtle" =>
57+
"bg-foreground hover:bg-foreground/90 text-background border-background/20 hover:border-background/40 focus-visible:outline-background shadow border",
5658
"secondary" =>
5759
"bg-secondary hover:bg-secondary/80 text-foreground border-secondary-foreground/20 hover:border-secondary-foreground/40 focus-visible:outline-secondary-foreground shadow border",
5860
"ghost" => "hover:bg-accent hover:text-accent-foreground",

lib/algora_web/live/swift_bounties_live.ex

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,11 @@ defmodule AlgoraWeb.SwiftBountiesLive do
9999
Anyone can contribute whether you're a company or an individual.
100100
</p>
101101
<div class="mt-10 flex items-center gap-x-6">
102-
<.link
103-
href={Algora.Github.authorize_url()}
104-
rel="noopener"
105-
class="inline-flex h-12 items-center justify-center whitespace-nowrap rounded-md border border-white/80 bg-white px-6 text-lg font-semibold text-gray-900 shadow transition-colors hover:border-white hover:bg-white/90 focus-visible:outline-white-600 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 phx-submit-loading:opacity-75"
106-
>
107-
Start Contributing
108-
</.link>
102+
<.button variant="subtle" class="h-12 px-6 text-lg font-semibold">
103+
<.link href={Algora.Github.authorize_url()} rel="noopener">
104+
Start Contributing
105+
</.link>
106+
</.button>
109107
</div>
110108
</div>
111109
<div class="mx-auto mt-16 flex max-w-2xl sm:mt-24 lg:mt-0 lg:mr-0 lg:ml-10 lg:max-w-none xl:ml-24 2xl:ml-32">
@@ -436,13 +434,15 @@ defmodule AlgoraWeb.SwiftBountiesLive do
436434
You can create bounties and send tips in any of the Swift repos below once you've connected your GitHub account.
437435
</p>
438436
<div class="mt-6 flex items-center justify-center gap-x-6">
439-
<.link
440-
href={Algora.Github.authorize_url()}
441-
rel="noopener"
442-
class="inline-flex h-12 items-center justify-center whitespace-nowrap rounded-md border border-white/80 bg-white px-6 text-lg font-semibold text-gray-900 shadow transition-colors hover:border-white hover:bg-white/90 focus-visible:outline-white-600 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 phx-submit-loading:opacity-75"
443-
>
444-
<Logos.github class="-ml-1 mr-2 h-6 w-6 sm:h-8 sm:w-8" /> Connect with GitHub
445-
</.link>
437+
<.button variant="subtle" class="h-12 px-6 text-lg font-semibold">
438+
<.link
439+
href={Algora.Github.authorize_url()}
440+
rel="noopener"
441+
class="inline-flex items-center"
442+
>
443+
<Logos.github class="-ml-1 mr-2 h-6 w-6 sm:h-8 sm:w-8" /> Connect with GitHub
444+
</.link>
445+
</.button>
446446
</div>
447447
<div class="mt-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
448448
<%= for repo <- @repos do %>

0 commit comments

Comments
 (0)