Skip to content

Commit fdf1968

Browse files
committed
refactor: Logs Page colors.
1 parent 07d1c3e commit fdf1968

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

src/components/LogCard.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ const LogCard = ({log, index, totalLogs}) => {
8181
const MetadataItem = ({label, value}) => (
8282
value ? (
8383
<div
84-
className="flex items-center gap-1 text-xs text-gray-400 bg-gray-800/50 px-2 py-1 rounded-md border border-gray-700/50">
85-
<span className="font-semibold text-gray-500">{label}:</span>
84+
className="flex items-center gap-1 text-xs text-gray-300 px-2 py-1 rounded-md border border-gray-500/50"
85+
style={{backgroundColor: `${accentColor}20`}}
86+
>
87+
<span className="font-semibold text-gray-400">{label}:</span>
8688
<span className="truncate max-w-[150px]">{value}</span>
8789
</div>
8890
) : null
@@ -101,7 +103,7 @@ const LogCard = ({log, index, totalLogs}) => {
101103
/>
102104
{/* Dotted Background */}
103105
<div
104-
className="absolute inset-0 opacity-15 group-hover:opacity-30 transition-opacity duration-300 pointer-events-none"
106+
className="absolute inset-0 opacity-10 group-hover:opacity-20 transition-opacity duration-300 pointer-events-none"
105107
style={{
106108
backgroundImage: `radial-gradient(circle, ${accentColor} 1px, transparent 1px)`,
107109
backgroundSize: '15px 15px', // Adjust size for desired density

src/config/colors.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ module.exports = {
88
400: '#fb923c', // orange-400
99
},
1010
tb: '#00000033',
11-
book: '#9EC5AB',
12-
movie: '#c75146',
13-
game: '#80ed99',
11+
book: '#00BFFF',
12+
movie: '#DC143C',
13+
game: '#00C9A7',
1414
article: '#FA8072', // Salmon
1515
app: '#fb8476', // Duplicated from article-ish
16-
music: '#A07B90',
16+
music: '#F3E5AB',
1717
series: '#edc531',
1818
food: '#F4A259',
19-
websites: '#f5dd90',
19+
websites: '#00FF7F',
2020
tools: '#e0aaff',
21-
'book-light': '#FFF8F00',
22-
'movie-light': '#E08070',
23-
'game-light': '#B2F5C2',
21+
'book-light': '#4dcdff',
22+
'movie-light': '#e84f6d',
23+
'game-light': '#00e6bf',
2424
'article-light': '#FFB6C1', // Light Pink
2525
'app-light': '#FFF8F00', // Duplicated from book-light
26-
'music-light': '#C0A0B0',
26+
'music-light': '#fcf2cf',
2727
'series-light': '#F5E080',
2828
'food-light': '#FFC780',
29-
'websites-light': '#FFF8DC',
29+
'websites-light': '#4dff99',
3030
'tools-light': '#F0DFFF',
3131
'newspaper-background': '#fdfdf5',
3232
'sidebar-highlight': '#FA8072', // Duplicated from article
@@ -46,24 +46,24 @@ module.exports = {
4646
'dnd-card-bg-hover': 'var(--bg-dnd-card-hover)',
4747
'gist-card-bg': 'var(--bg-gist-card)',
4848
'gist-card-bg-hover': 'var(--bg-gist-card-hover)',
49-
'book-alpha-10': 'rgba(158, 197, 171, 0.1)',
50-
'book-alpha-50': 'rgba(158, 197, 171, 0.5)',
51-
'movie-alpha-10': 'rgba(199, 81, 70, 0.1)',
52-
'movie-alpha-50': 'rgba(199, 81, 70, 0.5)',
53-
'game-alpha-10': 'rgba(0, 255, 127, 0.1)',
54-
'game-alpha-50': 'rgba(0, 255, 127, 0.5)',
49+
'book-alpha-10': 'rgba(0, 191, 255, 0.1)',
50+
'book-alpha-50': 'rgba(0, 191, 255, 0.5)',
51+
'movie-alpha-10': 'rgba(220, 20, 60, 0.1)',
52+
'movie-alpha-50': 'rgba(220, 20, 60, 0.5)',
53+
'game-alpha-10': 'rgba(0, 201, 167, 0.1)',
54+
'game-alpha-50': 'rgba(0, 201, 167, 0.5)',
5555
'article-alpha-10': 'rgba(250, 128, 114, 0.1)',
5656
'article-alpha-50': 'rgba(250, 128, 114, 0.5)',
5757
'app-alpha-10': 'rgba(160, 123, 144, 0.1)', // Duplicated from music
5858
'app-alpha-50': 'rgba(160, 123, 144, 0.5)', // Duplicated from music
59-
'music-alpha-10': 'rgba(160, 123, 144, 0.1)',
60-
'music-alpha-50': 'rgba(160, 123, 144, 0.5)',
59+
'music-alpha-10': 'rgba(243, 229, 171, 0.1)',
60+
'music-alpha-50': 'rgba(243, 229, 171, 0.5)',
6161
'series-alpha-10': 'rgba(237, 197, 49, 0.1)',
6262
'series-alpha-50': 'rgba(237, 197, 49, 0.5)',
6363
'food-alpha-10': 'rgba(244, 162, 89, 0.1)',
6464
'food-alpha-50': 'rgba(244, 162, 89, 0.5)',
65-
'websites-alpha-10': 'rgba(245, 221, 144, 0.1)',
66-
'websites-alpha-50': 'rgba(245, 221, 144, 0.5)',
65+
'websites-alpha-10': 'rgba(0, 255, 127, 0.1)',
66+
'websites-alpha-50': 'rgba(0, 255, 127, 0.5)',
6767
'tools-alpha-10': 'rgba(224, 170, 255, 0.1)',
6868
'tools-alpha-50': 'rgba(224, 170, 255, 0.5)',
6969

0 commit comments

Comments
 (0)