@@ -231,8 +231,10 @@ defmodule FileonchainWeb.CoreComponents do
231
231
< button
232
232
type = { @ type }
233
233
class = { [
234
- "phx-submit-loading:opacity-75 rounded-lg bg-secondary hover:bg-secondary-dark py-2 px-3" ,
234
+ "phx-submit-loading:opacity-75 rounded-lg bg-secondary hover:bg-secondary-600 py-2 px-3" ,
235
235
"text-sm font-semibold leading-6 text-white active:text-white/80" ,
236
+ "transition duration-150 ease-in-out" ,
237
+ "shadow-secondary hover:shadow-brand" ,
236
238
@ class
237
239
] }
238
240
{ @ rest }
@@ -380,7 +382,9 @@ defmodule FileonchainWeb.CoreComponents do
380
382
"mt-2 block w-full rounded-lg text-brand-900 focus:ring-2 focus:ring-secondary sm:text-sm sm:leading-6" ,
381
383
"phx-no-feedback:border-brand-300 phx-no-feedback:focus:border-secondary" ,
382
384
"border-brand-300 focus:border-secondary" ,
383
- @ errors != [ ] && "border-secondary-light focus:border-secondary-light"
385
+ "transition duration-150 ease-in-out" ,
386
+ "shadow-sm hover:shadow-brand" ,
387
+ @ errors != [ ] && "border-accent focus:border-accent"
384
388
] }
385
389
{ @ rest }
386
390
/>
@@ -428,7 +432,7 @@ defmodule FileonchainWeb.CoreComponents do
428
432
429
433
def header ( assigns ) do
430
434
~H"""
431
- < header class = { [ @ actions != [ ] && "flex items-center justify-between gap-6" , @ class ] } >
435
+ < header class = { [ "border-b-3 border-brand-600 pb-5 mb-5" , @ actions != [ ] && "flex items-center justify-between gap-6" , @ class ] } >
432
436
< div >
433
437
< h1 class = "text-lg font-semibold leading-8 text-brand-200 " >
434
438
<%= render_slot ( @ inner_block ) %>
@@ -474,12 +478,12 @@ defmodule FileonchainWeb.CoreComponents do
474
478
end
475
479
476
480
~H"""
477
- < div class = "overflow-y-auto px-4 sm:overflow-visible sm:px-0 mt-6 bg-brand-800 rounded-lg " >
481
+ < div class = "overflow-y-auto px-4 sm:overflow-visible sm:px-0 mt-6 bg-brand-800 rounded-lg shadow-brand " >
478
482
< table class = "w-full mt-11 sm:w-full " >
479
- < thead class = "text-sm text-left leading-6 text-brand-200 " >
483
+ < thead class = "text-sm text-left leading-6 text-brand-200 bg-brand-700 " >
480
484
< tr >
481
- < th :for = { col <- @ col } class = "pb -4 pr-6 font-normal p-4 border-b border-brand-700 " > <%= col [ :label ] %> </ th >
482
- < th :if = { @ action != [ ] } class = "relative p-0 pb- 4 " >
485
+ < th :for = { col <- @ col } class = "p -4 font-semibold " > <%= col [ :label ] %> </ th >
486
+ < th :if = { @ action != [ ] } class = "relative p-4 " >
483
487
< span class = "sr-only " > <%= gettext ( "Actions" ) %> </ span >
484
488
</ th >
485
489
</ tr >
@@ -489,25 +493,25 @@ defmodule FileonchainWeb.CoreComponents do
489
493
phx-update = { match? ( % Phoenix.LiveView.LiveStream { } , @ rows ) && "stream" }
490
494
class = "relative divide-y divide-brand-700 border-t border-brand-700 text-sm leading-6 text-white "
491
495
>
492
- < tr :for = { row <- @ rows } id = { @ row_id && @ row_id . ( row ) } class = "group hover:bg-brand-800 transition-colors duration-200 " >
496
+ < tr :for = { row <- @ rows } id = { @ row_id && @ row_id . ( row ) } class = "group hover:bg-brand-700 transition-colors duration-200 " >
493
497
< td
494
498
:for = { { col , i } <- Enum . with_index ( @ col ) }
495
499
phx-click = { @ row_click && @ row_click . ( row ) }
496
- class = { [ "relative p-0 " , @ row_click && "hover:cursor-pointer" ] }
500
+ class = { [ "relative p-4 " , @ row_click && "hover:cursor-pointer" ] }
497
501
>
498
502
< div class = "block py-4 pr-6 " >
499
- < span class = "absolute -inset-y-px right-0 -left-4 group-hover:bg-brand-800 sm:rounded-l-xl " />
500
- < span class = { [ "relative" , i == 0 && "font-semibold text-brand-300 " ] } >
503
+ < span class = "absolute -inset-y-px right-0 -left-4 group-hover:bg-brand-700 sm:rounded-l-xl " />
504
+ < span class = { [ "relative" , i == 0 && "font-semibold text-secondary " ] } >
501
505
<%= render_slot ( col , @ row_item . ( row ) ) %>
502
506
</ span >
503
507
</ div >
504
508
</ td >
505
- < td :if = { @ action != [ ] } class = "relative w-14 p-0 pr- 4 " >
509
+ < td :if = { @ action != [ ] } class = "relative w-14 p-4 " >
506
510
< div class = "relative whitespace-nowrap py-4 text-right text-sm font-medium " >
507
- < span class = "absolute -inset-y-px -right-4 left-0 group-hover:bg-brand-800 sm:rounded-r-xl " />
511
+ < span class = "absolute -inset-y-px -right-4 left-0 group-hover:bg-brand-700 sm:rounded-r-xl " />
508
512
< span
509
513
:for = { action <- @ action }
510
- class = "relative ml-4 font-semibold leading-6 text-brand-300 hover:text-brand-100 "
514
+ class = "relative ml-4 font-semibold leading-6 text-accent hover:text-accent-300 "
511
515
>
512
516
<%= render_slot ( action , @ row_item . ( row ) ) %>
513
517
</ span >
@@ -562,9 +566,9 @@ defmodule FileonchainWeb.CoreComponents do
562
566
< div class = "mt-16 " >
563
567
< . link
564
568
navigate = { @ navigate }
565
- class = "text-sm font-semibold leading-6 text-brand-300 hover:text-brand-100 "
569
+ class = "text-sm font-semibold leading-6 text-secondary hover:text-secondary-300 flex items-center "
566
570
>
567
- < . icon name = "hero-arrow-left-solid " class = "h-3 w-3 " />
571
+ < . icon name = "hero-arrow-left-solid " class = "h-4 w-4 mr-1 " />
568
572
<%= render_slot ( @ inner_block ) %>
569
573
</ . link >
570
574
</ div >
0 commit comments