@@ -8,9 +8,14 @@ const App = () => {
88 // Styles
99 const boxStyle =
1010 "border-2 rounded-md p-3 flex items-center justify-center text-center font-semibold" ;
11- const categoryBoxStyle = `${ boxStyle } border-blue-500 bg-blue-100` ;
12- const functorBoxStyle = `${ boxStyle } border-purple-500 bg-purple-100` ;
13- const objectBoxStyle = `${ boxStyle } border-green-500 bg-green-100 shadow-md` ;
11+ const categoryBoxStyle =
12+ "border-2 rounded-md p-3 flex items-center justify-center text-center font-semibold border-blue-500 bg-blue-100" ;
13+ const functorBoxStyle =
14+ "border-2 rounded-md p-3 flex items-center justify-center text-center font-semibold border-purple-500 bg-purple-100" ;
15+ const objectBoxStyle =
16+ "border-2 rounded-md p-3 flex items-center justify-center text-center font-semibold border-green-500 bg-green-100 shadow-md" ;
17+ const arrowObjectStyle =
18+ "border-2 rounded-md p-3 flex items-center justify-center text-center font-semibold border-orange-500 bg-orange-100 shadow-md" ;
1419 const morphismStyle = "flex items-center justify-center text-gray-700 font-medium" ;
1520 const buttonStyle = "px-4 py-2 bg-gray-200 rounded-md hover:bg-gray-300 font-medium" ;
1621 const activeButtonStyle = "px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 font-medium" ;
@@ -192,14 +197,14 @@ const App = () => {
192197 < div className = "flex flex-col items-center" >
193198 < div className = "text-lg font-semibold mb-4" > Arrow Category C↓</ div >
194199 < div className = "flex space-x-6" >
195- < div className = { boxStyle + " border-orange-500 bg-orange-100 shadow-md" } >
200+ < div className = { arrowObjectStyle } >
196201 < div >
197202 < div className = "text-lg mb-2" > Morphism f</ div >
198203 < div className = "text-sm" > as an object</ div >
199204 </ div >
200205 </ div >
201-
202- < div className = { boxStyle + " border-orange-500 bg-orange-100 shadow-md" } >
206+
207+ < div className = { arrowObjectStyle } >
203208 < div >
204209 < div className = "text-lg mb-2" > Morphism g</ div >
205210 < div className = "text-sm" > as an object</ div >
0 commit comments