Files
nextjs-startup/components/shared/review-card.tsx
T
Rami Bitar 6376bb3d82 Organize Vertex starter into reusable sections
Use remote logos and avatars, refine landing copy, and document the template structure.
2026-09-15 10:49:07 -04:00

32 lines
973 B
TypeScript

import Image from "next/image"
export interface Testimonial {
avatar: string
name: string
role: string
quote: string
}
export function ReviewCard({ review }: { review: Testimonial }) {
return (
<figure className="h-full w-[310px] shrink-0 rounded-xl border bg-card/75 p-5 shadow-sm transition-colors hover:bg-muted/40 sm:w-[360px]">
<blockquote className="text-sm leading-6 text-foreground/85">“{review.quote}”</blockquote>
<figcaption className="mt-6 flex items-center gap-3">
<Image
src={review.avatar}
alt=""
width={36}
height={36}
sizes="36px"
unoptimized
className="size-9 shrink-0 rounded-full border object-cover"
/>
<span>
<span className="block text-sm font-medium">{review.name}</span>
<span className="block text-xs text-muted-foreground">{review.role}</span>
</span>
</figcaption>
</figure>
)
}