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 = {
109
109
} ,
110
110
keyframes : {
111
111
wiggle : {
112
- "0%, 100%" : { transform : "rotate(-3deg )" } ,
113
- "50%" : { transform : "rotate(3deg )" } ,
112
+ "0%, 100%" : { transform : "rotate(-12deg )" } ,
113
+ "50%" : { transform : "rotate(12deg )" } ,
114
114
} ,
115
115
"accordion-down" : {
116
116
from : { height : 0 } ,
Original file line number Diff line number Diff line change @@ -703,6 +703,7 @@ defmodule AlgoraWeb.CoreComponents do
703
703
attr :label , :string , default: nil
704
704
attr :helptext , :string , default: nil
705
705
attr :icon , :string , default: nil
706
+ attr :icon_class , :string , default: nil
706
707
attr :value , :any
707
708
attr :class , :string , default: nil
708
709
@@ -838,7 +839,7 @@ defmodule AlgoraWeb.CoreComponents do
838
839
< p :if = { @ helptext } class = "-mt-2 mb-2 text-sm text-muted-foreground " > { @ helptext } </ p >
839
840
< div class = "relative " >
840
841
< 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 ] ) } />
842
843
</ div >
843
844
< input
844
845
type = { @ type }
Original file line number Diff line number Diff line change @@ -209,25 +209,43 @@ defmodule AlgoraWeb.User.DashboardLive do
209
209
>
210
210
< . input
211
211
field = { @ availability_form [ :hourly_rate_min ] }
212
- label = "Hourly Rate (USD) "
212
+ label = "Hourly rate (USD) "
213
213
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
+ }
214
223
/>
215
224
< . input
216
225
field = { @ availability_form [ :hours_per_week ] }
217
- label = "Hours per Week "
226
+ label = "Hours per week "
218
227
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
+ }
219
237
/>
220
238
< . button :if = { @ availability_form . source . changes != % { } } type = "submit " class = "lg:col-span-2 " >
221
239
Save
222
240
</ . button >
223
241
</ . form >
224
242
<!-- Tech Stack Section -->
225
243
< 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 " >
227
245
Tech stack
228
- </ h2 >
246
+ </ label >
229
247
< . TechStack
230
- classes = "mt-4 "
248
+ classes = "- mt-2 "
231
249
tech = { get_field ( @ settings_form . source , :tech_stack ) }
232
250
socket = { @ socket }
233
251
form = "settings_form "
You can’t perform that action at this time.
0 commit comments