@@ -30,38 +30,47 @@ const categoryStyles = {
3030 Book : {
3131 backgroundColor : colors [ 'book-alpha-10' ] ,
3232 borderColor : colors [ 'book-alpha-50' ] ,
33+ textColor : colors . book ,
3334 } ,
3435 Movie : {
3536 backgroundColor : colors [ 'movie-alpha-10' ] ,
3637 borderColor : colors [ 'movie-alpha-50' ] ,
38+ textColor : colors . movie ,
3739 } ,
3840 Game : {
3941 backgroundColor : colors [ 'game-alpha-10' ] ,
4042 borderColor : colors [ 'game-alpha-50' ] ,
43+ textColor : colors . game ,
4144 } ,
4245 Article : {
4346 backgroundColor : colors [ 'article-alpha-10' ] ,
4447 borderColor : colors [ 'article-alpha-50' ] ,
48+ textColor : colors . article ,
4549 } ,
4650 Music : {
4751 backgroundColor : colors [ 'music-alpha-10' ] ,
4852 borderColor : colors [ 'music-alpha-50' ] ,
53+ textColor : colors . music ,
4954 } ,
5055 Series : {
5156 backgroundColor : colors [ 'series-alpha-10' ] ,
5257 borderColor : colors [ 'series-alpha-50' ] ,
58+ textColor : colors . series ,
5359 } ,
5460 Food : {
5561 backgroundColor : colors [ 'food-alpha-10' ] ,
5662 borderColor : colors [ 'food-alpha-50' ] ,
63+ textColor : colors . food ,
5764 } ,
5865 Websites : {
5966 backgroundColor : colors [ 'websites-alpha-10' ] ,
6067 borderColor : colors [ 'websites-alpha-50' ] ,
68+ textColor : colors . websites ,
6169 } ,
6270 Tools : {
6371 backgroundColor : colors [ 'tools-alpha-10' ] ,
6472 borderColor : colors [ 'tools-alpha-50' ] ,
73+ textColor : colors . tools ,
6574 } ,
6675} ;
6776
@@ -83,6 +92,7 @@ const LogCard = ({ log, index, totalLogs }) => {
8392 } = log ;
8493
8594 const cardStyle = categoryStyles [ category ] || { } ;
95+ const detailTextColor = colors [ category . toLowerCase ( ) + '-light' ] ;
8696
8797 const renderStars = ( rating ) => {
8898 const stars = [ ] ;
@@ -120,15 +130,16 @@ const LogCard = ({ log, index, totalLogs }) => {
120130 < div >
121131 < div className = "flex items-center justify-between mb-4" >
122132 < div className = "flex items-center" >
123- < div className = "text-2xl mr-4" > { categoryIcons [ category ] } </ div >
133+ < div className = "text-2xl mr-4" style = { { color : detailTextColor } } > { categoryIcons [ category ] } </ div >
124134 < h2
125- className = { `text-xl font-normal group-hover:text-${ category . toLowerCase ( ) } ` }
135+ className = { `text-xl font-normal` }
136+ style = { { color : cardStyle . textColor } }
126137 >
127138 { title }
128139 </ h2 >
129140 </ div >
130141 </ div >
131- < div className = "text-sm text-gray-400 mb-4" >
142+ < div className = "text-sm mb-4" style = { { color : detailTextColor } } >
132143 { author && < div > Author: { author } </ div > }
133144 { director && < div > Director: { director } </ div > }
134145 { platform && < div > Platform: { platform } </ div > }
0 commit comments