File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ interface BlogCardProps {
1919export default function BlogCard ( { post } : BlogCardProps ) {
2020 return (
2121 < Link href = { `/a/${ post . slug } ` } className = "group h-full" >
22- < article className = "flex flex-col h-full bg-white shadow-lg overflow-hidden transition-all duration-300 hover:shadow-2xl hover:-translate-y-2 border border-gradient-to-r from-[#228B22]/10 to-[#FFBF00]/10 relative rounded-lg" >
22+ < article className = "flex flex-col h-full bg-white dark:bg-gray-800 shadow-lg overflow-hidden transition-all duration-300 hover:shadow-2xl hover:-translate-y-2 border border-gradient-to-r from-[#228B22]/10 to-[#FFBF00]/10 relative rounded-lg" >
2323
2424 { post . featured && (
2525 < div className = "absolute top-3 right-3 z-20" >
@@ -44,13 +44,13 @@ export default function BlogCard({ post }: BlogCardProps) {
4444 </ div >
4545
4646 < div className = "flex flex-col flex-grow p-6" >
47- < h2 className = "text-xl font-bold text-gray-900 mb-3 line-clamp-2 group-hover:bg-gradient-to-r group-hover:from-[#228B22] group-hover:to-[#91A511] group-hover:bg-clip-text group-hover:text-transparent transition-all duration-300" >
47+ < h2 className = "text-xl font-bold text-gray-900 dark:text-gray-100 mb-3 line-clamp-2 group-hover:bg-gradient-to-r group-hover:from-[#228B22] group-hover:to-[#91A511] group-hover:bg-clip-text group-hover:text-transparent transition-all duration-300" >
4848 { post . title }
4949 </ h2 >
5050
51- < p className = "text-gray-600 mb-4 line-clamp-3" > { post . excerpt } </ p >
51+ < p className = "text-gray-600 dark:text-gray-300 mb-4 line-clamp-3" > { post . excerpt } </ p >
5252
53- < div className = "mt-auto flex items-center justify-between text-sm text-gray-500" >
53+ < div className = "mt-auto flex items-center justify-between text-sm text-gray-500 dark:text-gray-400 " >
5454 < div className = "flex items-center gap-1 group-hover:text-[#228B22] transition-colors" >
5555 < User className = "w-4 h-4" />
5656 < span > { post . author } </ span >
You can’t perform that action at this time.
0 commit comments