@@ -21,8 +21,8 @@ pub fn EventLogDisplay(event_logs: Vec<GameEventLog>, controller_seat_id: i32) -
2121 } ;
2222
2323 rsx ! {
24- div { class: "bg-white rounded-lg shadow-md overflow-hidden" ,
25- div { class: "bg-gradient-to-r from-emerald-500 to-emerald-600 py-4 px-6" ,
24+ div { class: "bg-gray-800 rounded-lg border border-gray-700 overflow-hidden" ,
25+ div { class: "bg-gradient-to-r from-emerald-900 to-emerald-800 py-4 px-6" ,
2626 h2 { class: "text-xl font-bold text-white" , "Event Log" }
2727 }
2828 div { class: "p-6" ,
@@ -58,19 +58,19 @@ fn GameSelector(game_numbers: Vec<i32>, selected: i32, on_select: EventHandler<i
5858 div { class: "flex flex-wrap gap-2 mb-4" ,
5959 button {
6060 class: if selected == 0 {
61- "px-3 py-1 rounded-full text-sm font-medium bg-emerald-500 text-white"
61+ "px-3 py-1 rounded-full text-sm font-medium bg-emerald-600 text-white"
6262 } else {
63- "px-3 py-1 rounded-full text-sm font-medium bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors duration-150"
63+ "px-3 py-1 rounded-full text-sm font-medium bg-gray-700 text-gray-300 hover:bg-gray-600 transition-colors duration-150"
6464 } ,
6565 onclick: move |_| on_select. call( 0 ) ,
6666 "All Games"
6767 }
6868 for num in game_numbers {
6969 button {
7070 class: if selected == num {
71- "px-3 py-1 rounded-full text-sm font-medium bg-emerald-500 text-white"
71+ "px-3 py-1 rounded-full text-sm font-medium bg-emerald-600 text-white"
7272 } else {
73- "px-3 py-1 rounded-full text-sm font-medium bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors duration-150"
73+ "px-3 py-1 rounded-full text-sm font-medium bg-gray-700 text-gray-300 hover:bg-gray-600 transition-colors duration-150"
7474 } ,
7575 onclick: move |_| on_select. call( num) ,
7676 "Game {num}"
@@ -133,7 +133,7 @@ fn GameTimeline(event_log: GameEventLog, controller_seat_id: i32) -> Element {
133133
134134 rsx ! {
135135 div { class: "mb-6" ,
136- h3 { class: "text-lg font-semibold text-gray-700 mb-3 border-b pb-2" ,
136+ h3 { class: "text-lg font-semibold text-gray-300 mb-3 border-b border-gray-700 pb-2" ,
137137 "Game {event_log.game_number}"
138138 }
139139 div { class: "space-y-2" ,
@@ -169,9 +169,9 @@ fn TurnGroup(group: TurnEventGroup, controller_seat_id: i32) -> Element {
169169 } ;
170170
171171 let header_bg = if is_your_turn {
172- "bg-blue-50 hover:bg-blue-100 "
172+ "bg-blue-900/20 hover:bg-blue-900/30 "
173173 } else {
174- "bg-red-50 hover:bg-red-100 "
174+ "bg-red-900/20 hover:bg-red-900/30 "
175175 } ;
176176
177177 let chevron_class = if expanded ( ) {
@@ -181,17 +181,17 @@ fn TurnGroup(group: TurnEventGroup, controller_seat_id: i32) -> Element {
181181 } ;
182182
183183 rsx ! {
184- div { class: "border rounded-lg overflow-hidden" ,
184+ div { class: "border border-gray-700 rounded-lg overflow-hidden" ,
185185 div {
186186 class: "px-4 py-2 cursor-pointer flex justify-between items-center {header_bg} transition-colors duration-150" ,
187187 onclick: move |_| {
188188 let current = expanded( ) ;
189189 expanded. set( !current) ;
190190 } ,
191191 div { class: "flex items-center gap-2" ,
192- span { class: "font-semibold text-gray-700 " , "{turn_label}" }
192+ span { class: "font-semibold text-gray-300 " , "{turn_label}" }
193193 span { class: "text-sm text-gray-500" , "({player_label})" }
194- span { class: "px-2 py-0.5 text-xs rounded-full bg-gray-200 text-gray-600 " ,
194+ span { class: "px-2 py-0.5 text-xs rounded-full bg-gray-700 text-gray-400 " ,
195195 "{group.events.len()} events"
196196 }
197197 }
@@ -210,7 +210,7 @@ fn TurnGroup(group: TurnEventGroup, controller_seat_id: i32) -> Element {
210210 }
211211 }
212212 if expanded( ) {
213- div { class: "divide-y divide-gray-100 " ,
213+ div { class: "divide-y divide-gray-700 " ,
214214 for event in & group. events {
215215 EventRow { event: event. clone( ) , controller_seat_id }
216216 }
@@ -228,13 +228,13 @@ fn TurnGroup(group: TurnEventGroup, controller_seat_id: i32) -> Element {
228228fn style_to_css ( style : ActionStyle ) -> & ' static str {
229229 match style {
230230 ActionStyle :: Normal => "" ,
231- ActionStyle :: Phase => "text-gray-400 text-xs italic" ,
232- ActionStyle :: PlayerAction => "text-blue-800 " ,
233- ActionStyle :: OpponentAction => "text-red-800 " ,
234- ActionStyle :: Attack | ActionStyle :: Negative => "text-red-700 " ,
235- ActionStyle :: Defense => "text-blue-700 " ,
236- ActionStyle :: Damage => "text-orange-700 " ,
237- ActionStyle :: Positive => "text-green-700 " ,
231+ ActionStyle :: Phase => "text-gray-500 text-xs italic" ,
232+ ActionStyle :: PlayerAction => "text-blue-300 " ,
233+ ActionStyle :: OpponentAction => "text-red-300 " ,
234+ ActionStyle :: Attack | ActionStyle :: Negative => "text-red-400 " ,
235+ ActionStyle :: Defense => "text-blue-400 " ,
236+ ActionStyle :: Damage => "text-orange-400 " ,
237+ ActionStyle :: Positive => "text-emerald-400 " ,
238238 ActionStyle :: Emphasized => "font-semibold" ,
239239 }
240240}
@@ -268,7 +268,7 @@ fn EventRow(event: GameEvent, controller_seat_id: i32) -> Element {
268268 span { class: "flex-shrink-0 w-6 text-center" , "{display.icon}" }
269269 span { class: "flex-grow" , "{display.description}" }
270270 if let Some ( badge) = phase_badge {
271- span { class: "flex-shrink-0 px-2 py-0.5 text-xs rounded-full bg-gray-100 text-gray-500 " ,
271+ span { class: "flex-shrink-0 px-2 py-0.5 text-xs rounded-full bg-gray-700 text-gray-400 " ,
272272 "{badge}"
273273 }
274274 }
0 commit comments