File tree Expand file tree Collapse file tree 3 files changed +27
-8
lines changed
Expand file tree Collapse file tree 3 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ module.exports = {
109109 } ,
110110 keyframes : {
111111 wiggle : {
112- "0%, 100%" : { transform : "rotate(-3deg )" } ,
113- "50%" : { transform : "rotate(3deg )" } ,
112+ "0%, 100%" : { transform : "rotate(-12deg )" } ,
113+ "50%" : { transform : "rotate(12deg )" } ,
114114 } ,
115115 "accordion-down" : {
116116 from : { height : 0 } ,
Original file line number Diff line number Diff line change @@ -703,6 +703,7 @@ defmodule AlgoraWeb.CoreComponents do
703703 attr :label , :string , default: nil
704704 attr :helptext , :string , default: nil
705705 attr :icon , :string , default: nil
706+ attr :icon_class , :string , default: nil
706707 attr :value , :any
707708 attr :class , :string , default: nil
708709
@@ -838,7 +839,7 @@ defmodule AlgoraWeb.CoreComponents do
838839 < p :if = { @ helptext } class = "-mt-2 mb-2 text-sm text-muted-foreground " > { @ helptext } </ p >
839840 < div class = "relative " >
840841 < div :if = { @ icon } class = "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 " >
841- < . icon name = { @ icon } class = "h-5 w-5 text-muted-foreground " />
842+ < . icon name = { @ icon } class = { classes ( [ "h-5 w-5 text-muted-foreground" , @ icon_class ] ) } />
842843 </ div >
843844 < input
844845 type = { @ type }
Original file line number Diff line number Diff line change @@ -209,25 +209,43 @@ defmodule AlgoraWeb.User.DashboardLive do
209209 >
210210 < . input
211211 field = { @ availability_form [ :hourly_rate_min ] }
212- label = "Hourly Rate (USD) "
212+ label = "Hourly rate (USD) "
213213 icon = "tabler-currency-dollar "
214+ icon_class = {
215+ if ! @ current_user . hourly_rate_min ,
216+ do: "text-success-400 animate-[wiggle_2s_ease-in-out_infinite]"
217+ }
218+ class = {
219+ if ! @ current_user . hourly_rate_min ,
220+ do:
221+ "ring-1 ring-success-400 border-success-400 focus:border-success-400 focus:ring-success-400"
222+ }
214223 />
215224 < . input
216225 field = { @ availability_form [ :hours_per_week ] }
217- label = "Hours per Week "
226+ label = "Hours per week "
218227 icon = "tabler-clock "
228+ icon_class = {
229+ if ! @ current_user . hours_per_week ,
230+ do: "text-success-400 animate-[wiggle_2s_ease-in-out_infinite]"
231+ }
232+ class = {
233+ if ! @ current_user . hours_per_week ,
234+ do:
235+ "ring-1 ring-success-400 border-success-400 focus:border-success-400 focus:ring-success-400"
236+ }
219237 />
220238 < . button :if = { @ availability_form . source . changes != % { } } type = "submit " class = "lg:col-span-2 " >
221239 Save
222240 </ . button >
223241 </ . form >
224242 <!-- Tech Stack Section -->
225243 < div class = "mt-4 " >
226- < h2 class = "mb-2 text-xl font-semibold " >
244+ < label class = "block text-sm font-semibold leading-6 text-foreground mb-2 " >
227245 Tech stack
228- </ h2 >
246+ </ label >
229247 < . TechStack
230- classes = "mt-4 "
248+ classes = "- mt-2 "
231249 tech = { get_field ( @ settings_form . source , :tech_stack ) }
232250 socket = { @ socket }
233251 form = "settings_form "
You can’t perform that action at this time.
0 commit comments