@@ -20,8 +20,8 @@ defmodule ErrorTracker.Web.CoreComponents do
2020 ~H"""
2121 < . link
2222 class = { [
23- "phx-submit-loading:opacity-75 rounded-lg bg-zinc-600 hover:bg-zinc-400 py-[11.5px] px-3 " ,
24- "text-sm font-semibold leading-6 text-white active :text-white/80" ,
23+ "phx-submit-loading:opacity-75 py-[11.5px]" ,
24+ "text-sm font-semibold text-sky-500 hover :text-white/80" ,
2525 @ class
2626 ] }
2727 { @ rest }
@@ -36,8 +36,8 @@ defmodule ErrorTracker.Web.CoreComponents do
3636 < button
3737 type = { @ type }
3838 class = { [
39- "phx-submit-loading:opacity-75 rounded-lg bg-zinc-600 hover:bg-zinc-400 py-2 px-3 " ,
40- "text-sm font-semibold leading-6 text-white active:text-white/80" ,
39+ "phx-submit-loading:opacity-75 rounded-lg bg-sky-500 hover:bg-sky-700 py-2 px-4 " ,
40+ "text-sm text-white active:text-white/80" ,
4141 @ class
4242 ] }
4343 { @ rest }
@@ -65,8 +65,8 @@ defmodule ErrorTracker.Web.CoreComponents do
6565 case assigns . color do
6666 :blue -> "bg-blue-900 text-blue-300"
6767 :gray -> "bg-gray-700 text-gray-300"
68- :red -> "bg-red-900 text-red-300"
69- :green -> "bg-green-900 text-green -300"
68+ :red -> "bg-red-400/10 text-red-300 ring-red-400/20 "
69+ :green -> "bg-emerald-400/10 text-emerald -300 ring-emerald-400/20 "
7070 :yellow -> "bg-yellow-900 text-yellow-300"
7171 :indigo -> "bg-indigo-900 text-indigo-300"
7272 :purple -> "bg-purple-900 text-purple-300"
@@ -76,7 +76,10 @@ defmodule ErrorTracker.Web.CoreComponents do
7676 assigns = Map . put ( assigns , :color_class , color_class )
7777
7878 ~H"""
79- < span class = { [ "text-sm font-medium me-2 px-2.5 py-1.5 rounded" , @ color_class ] } { @ rest } >
79+ < span
80+ class = { [ "text-sm font-medium me-2 py-1 px-2 rounded-lg ring-1 ring-inset" , @ color_class ] }
81+ { @ rest }
82+ >
8083 <%= render_slot ( @ inner_block ) %>
8184 </ span >
8285 """
@@ -92,14 +95,14 @@ defmodule ErrorTracker.Web.CoreComponents do
9295 < div class = "mt-10 w-full flex " >
9396 < button
9497 :if = { @ page > 1 }
95- class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 bg-gray-800 border border-gray-700 rounded-lg hover:bg-gray-700 hover:text-white "
98+ class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 bg-gray-900 border border-gray-400 rounded-lg hover:bg-gray-800 hover:text-white "
9699 phx-click = { @ event_previous }
97100 >
98101 Previous page
99102 </ button >
100103 < button
101104 :if = { @ page < @ total_pages }
102- class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 bg-gray-800 border border-gray-700 rounded-lg hover:bg-gray-700 hover:text-white "
105+ class = "flex items-center justify-center px-4 h-10 text-base font-medium text-gray-400 bg-gray-900 border border-gray-400 rounded-lg hover:bg-gray-800 hover:text-white "
103106 phx-click = { @ event_next }
104107 >
105108 Next page
@@ -117,7 +120,10 @@ defmodule ErrorTracker.Web.CoreComponents do
117120 def section ( assigns ) do
118121 ~H"""
119122 < div >
120- < h2 :if = { assigns [ :title ] } class = { [ "text-sm font-bold mb-2 uppercase" , @ title_class ] } >
123+ < h2
124+ :if = { assigns [ :title ] }
125+ class = { [ "text-sm font-semibold mb-2 uppercase text-gray-400" , @ title_class ] }
126+ >
121127 <%= @ title %>
122128 </ h2 >
123129 <%= render_slot ( @ inner_block ) %>
0 commit comments