Skip to content

Commit 8f89aa7

Browse files
committed
refactor: remove 2xl button size and update button styles in home live module
1 parent 36c52e1 commit 8f89aa7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lib/algora_web/components/ui/button.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ defmodule AlgoraWeb.Components.UI.Button do
8484
"sm" => "h-8 rounded-md px-3 text-xs",
8585
"lg" => "h-10 rounded-md px-8 text-base",
8686
"xl" => "h-12 rounded-md px-10 text-lg",
87-
"2xl" => "h-14 rounded-md px-12 text-xl",
8887
"icon" => "h-9 w-9"
8988
}
9089
}

lib/algora_web/live/home_live.ex

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,17 @@ defmodule AlgoraWeb.HomeLive do
128128
Hire the top 1% open source developers.
129129
</p>
130130
<div class="mt-6 sm:mt-10 flex gap-4">
131-
<.button navigate={~p"/onboarding/org"} size="2xl">
131+
<.button
132+
navigate={~p"/onboarding/org"}
133+
class="h-10 sm:h-14 rounded-md px-8 sm:px-12 text-sm sm:text-xl"
134+
>
132135
Companies
133136
</.button>
134-
<.button navigate={~p"/onboarding/dev"} variant="secondary" size="2xl">
137+
<.button
138+
navigate={~p"/onboarding/dev"}
139+
variant="secondary"
140+
class="h-10 sm:h-14 rounded-md px-8 sm:px-12 text-sm sm:text-xl"
141+
>
135142
Developers
136143
</.button>
137144
</div>

0 commit comments

Comments
 (0)