Skip to content

Commit 07d1c3e

Browse files
committed
refactor: Logs Page 2
1 parent 92ffffd commit 07d1c3e

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

public/logs/logs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"slug": "iloveimg",
3030
"title": "ILoveImg.com",
3131
"image": "/images/defaults/adrianna-geo-1rBg5YSi00c-unsplash.jpg",
32-
"description": "An image editor website"
32+
"description": "An image editor website",
33+
"rating": 5
3334
},
3435
{
3536
"category": "Websites",

src/components/LogCard.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,27 @@ const LogCard = ({log, index, totalLogs}) => {
9999
className="absolute top-0 bottom-0 left-0 w-1 transition-all duration-300 group-hover:w-1.5"
100100
style={{backgroundColor: accentColor}}
101101
/>
102+
{/* Dotted Background */}
103+
<div
104+
className="absolute inset-0 opacity-15 group-hover:opacity-30 transition-opacity duration-300 pointer-events-none"
105+
style={{
106+
backgroundImage: `radial-gradient(circle, ${accentColor} 1px, transparent 1px)`,
107+
backgroundSize: '15px 15px', // Adjust size for desired density
108+
}}
109+
></div>
110+
102111
<div className="p-5 flex flex-col h-full ml-1"> {/* ml-1 to account for border */}
103112
{/* Header: Icon, Index */}
104113
<div className="flex justify-between items-start mb-3">
105-
<div className="p-2 rounded-lg bg-gray-800/80 text-white" style={{color: accentColor}}>
114+
<div className="p-2 rounded-lg text-white" style={{color: accentColor, backgroundColor: `${accentColor}30`}}>
106115
<span className="text-2xl">{Icon}</span>
107116
</div>
108-
<span className="text-xs font-mono text-gray-600 group-hover:text-gray-400 transition-colors">
117+
<span className="text-xs font-mono text-gray-400 group-hover:text-gray-400 transition-colors">
109118
#{totalLogs - index}
110119
</span>
111120
</div>
112121
{/* Title */}
113-
<h3 className="text-lg font-bold text-gray-100 mb-2 leading-snug group-hover:text-white transition-colors">
122+
<h3 className="font-mono text-lg font-bold text-gray-100 mb-2 leading-snug group-hover:text-white transition-colors">
114123
{title}
115124
</h3>
116125
{/* Metadata Grid */}
@@ -125,17 +134,17 @@ const LogCard = ({log, index, totalLogs}) => {
125134
<div className="flex-grow"/>
126135

127136
{/* Footer: Rating & Date */}
128-
<div className="flex items-end justify-between mt-4 pt-4 border-t border-gray-800">
137+
<div className={`flex items-end justify-between mt-4 pt-4 border-t`} style={{borderColor: `${accentColor}50`}}>
129138
<div className="flex flex-col gap-1">
130139
{renderStars(rating)}
131-
{rating > 0 && <span className="text-xs text-gray-500 font-mono">({rating}/5)</span>}
140+
{rating > 0 && <span className="text-xs text-gray-400 font-mono">({rating}/5)</span>}
132141
</div>
133142

134143
<div className="text-right flex flex-col items-end">
135144
{updated && (
136145
<span className="text-[10px] text-rose-400 font-mono mb-0.5">Updated</span>
137146
)}
138-
<div className="flex items-center gap-1 text-xs text-gray-500 font-mono">
147+
<div className="flex items-center gap-1 text-xs text-gray-400 font-mono">
139148
<CalendarBlankIcon size={12}/>
140149
{date}
141150
</div>

0 commit comments

Comments
 (0)