Skip to content

Commit 7d19297

Browse files
committed
temp
1 parent 93873bf commit 7d19297

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

src/components/PostItem.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ const PostItem = ({ slug, title, date, updatedDate, category }) => {
1818
}) : null;
1919

2020
const categoryBadgeColorStyle = { backgroundColor: category === 'dev' ? 'var(--color-dev-badge)' : 'var(--color-takes-badge)' };
21-
const postBackgroundColorStyle = {
22-
backgroundColor: category === 'dev' ? 'var(--color-dev-card-bg)' : 'var(--color-takes-card-bg)',
23-
'--hover-bg': category === 'dev' ? 'var(--color-dev-card-bg-hover)' : 'var(--color-takes-card-bg-hover)',
24-
};
21+
const postBackgroundColorClass = category === 'dev' ? 'bg-dev-card-bg' : 'bg-takes-card-bg';
2522

2623
return (
27-
<Link to={`/blog/${slug}`} className={`block p-8 my-4 border border-gray-700/50 rounded-lg shadow-lg cursor-pointer transition-colors group`} style={postBackgroundColorStyle}>
24+
<Link to={`/blog/${slug}`} className={`block p-8 my-4 border border-gray-700/50 rounded-lg shadow-lg cursor-pointer transition-colors group ${postBackgroundColorClass} hover:bg-red-500/10`}>
2825
<article>
2926
<div className="flex items-center">
3027
<p className="text-sm text-gray-400">{formattedDate}</p>
@@ -34,14 +31,14 @@ const PostItem = ({ slug, title, date, updatedDate, category }) => {
3431
{category}
3532
</span>
3633
)}
37-
<h2 className="text-xl font-semibold text-white group-hover:text-primary-400 transition-colors">
34+
<h2 className="text-xl font-semibold text-white group-hover:text-title-hover group-hover:underline transition-colors">
3835
{title}
3936
</h2>
4037
</div>
4138
{formattedUpdatedDate && updatedDate !== date && (
4239
<span className="hidden sm:inline-block ml-4 px-2 py-1 text-xs font-medium text-orange-400 bg-orange-400/10 rounded-full">Updated: {formattedUpdatedDate}</span>
4340
)}
44-
<span className="ml-4 flex-shrink-0 text-sm font-medium text-primary-400 hover:text-primary-500 transition-colors">
41+
<span className="ml-4 flex-shrink-0 text-sm font-medium text-primary-400 group-hover:text-title-hover group-hover:underline transition-colors">
4542
<span className="hidden sm:inline">Read post</span> &rarr;
4643
</span>
4744
</div>

src/components/ProjectCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ProjectCard = ({ project, size = 1 }) => {
88
<Link to={`/projects/${project.slug}`} className={`block bg-gray-800/50 p-6 rounded-lg shadow-lg hover:bg-gray-800/80 transition-colors border border-gray-700/50 cursor-pointer flex flex-col ${colSpanClass}`}>
99
<h3 className="text-xl font-semibold text-white">{project.title}</h3>
1010
<p className="mt-2 text-gray-400 flex-grow">{project.description}</p>
11-
<span className="mt-4 inline-block text-primary-400 hover:text-primary-500 transition-colors mt-auto">
11+
<span className="mt-4 inline-block text-primary-400 hover:text-title-hover hover:underline transition-colors mt-auto">
1212
View Project &rarr;
1313
</span>
1414
</Link>

src/index.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ code {
4747
}
4848

4949
:root {
50-
--color-dev-badge: #4d7c0f; /* lime-800 */
50+
--color-dev-badge: #44403c; /* stone-700 */
5151
--color-takes-badge: #065f46; /* emerald-800 */
52-
--color-dev-card-bg: rgba(77, 124, 15, 0.2); /* lime-900/20 */
53-
--color-dev-card-bg-hover: rgba(77, 124, 15, 0.4); /* lime-900/40 */
54-
--color-takes-card-bg: rgba(6, 95, 70, 0.2); /* emerald-900/20 */
55-
--color-takes-card-bg-hover: rgba(6, 95, 70, 0.4); /* emerald-900/40 */
52+
5653
}

tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ module.exports = {
2727
article: '#f97316',
2828
music: '#a855f7',
2929
series: '#ec4899',
30+
'title-hover': '#fdd4a6',
31+
'dev-card-bg': 'rgba(68, 64, 60, 0.1)',
32+
'takes-card-bg': 'rgba(6, 95, 70, 0.15)',
3033
},
3134
typography: (theme) => ({
3235
dark: {

0 commit comments

Comments
 (0)