fix: resolve lint errors in testimonial and insight cards

This commit is contained in:
张翔
2026-02-13 14:25:47 +08:00
parent 6737cbd579
commit 718abea089
2 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -1,5 +1,6 @@
'use client'; 'use client';
import Image from 'next/image';
import { Calendar, Clock, ArrowRight } from 'lucide-react'; import { Calendar, Clock, ArrowRight } from 'lucide-react';
import { Badge } from '@/components/ui/badge'; import { Badge } from '@/components/ui/badge';
@@ -34,10 +35,11 @@ export function InsightCard({
> >
{imageUrl && ( {imageUrl && (
<div className="relative h-48 overflow-hidden"> <div className="relative h-48 overflow-hidden">
<img <Image
src={imageUrl} src={imageUrl}
alt={title} alt={title}
className="w-full h-full object-cover transition-transform duration-300 group-hover:scale-105" fill
className="object-cover transition-transform duration-300 group-hover:scale-105"
/> />
<div className="absolute inset-0 bg-gradient-to-t from-black/20 to-transparent" /> <div className="absolute inset-0 bg-gradient-to-t from-black/20 to-transparent" />
</div> </div>
+5 -2
View File
@@ -1,5 +1,6 @@
'use client'; 'use client';
import Image from 'next/image';
import { Quote } from 'lucide-react'; import { Quote } from 'lucide-react';
export interface TestimonialCardProps { export interface TestimonialCardProps {
@@ -39,14 +40,16 @@ export function TestimonialCard({
)} )}
<blockquote className="text-base text-[#171717] mb-6 leading-relaxed"> <blockquote className="text-base text-[#171717] mb-6 leading-relaxed">
"{quote}" &ldquo;{quote}&rdquo;
</blockquote> </blockquote>
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
{avatarUrl && ( {avatarUrl && (
<img <Image
src={avatarUrl} src={avatarUrl}
alt={author} alt={author}
width={48}
height={48}
className="w-12 h-12 rounded-full object-cover" className="w-12 h-12 rounded-full object-cover"
/> />
)} )}