Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/components/testimonials/testimonial-card.tsx |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/components/testimonials/testimonial-card.tsx |
| Original SHA-256 | a6162dbbd001cd7822c2dd3d3f0dd9aa6288a60e2e5f419475b84bc6163e9265 |
| Git blob SHA | f1837a5a875111c3c6f322554fd201f119746cea |
| Reading-copy SHA-256 | a6162dbbd001cd7822c2dd3d3f0dd9aa6288a60e2e5f419475b84bc6163e9265 |
Recovered source transcript
Download complete source text ↓31 lines · 0.9 KB
import { Avatar, AvatarFallback, AvatarImage } from '@thedaviddias/design-system/avatar'
import { Card } from '@/components/ui/card'
interface TestimonialCardProps {
quote: string
author: string
position: string
avatarSrc?: string
}
/**
* Renders a testimonial card with quote, author info, and avatar
*/
export function TestimonialCard({ quote, author, position, avatarSrc }: TestimonialCardProps) {
return (
<Card className="p-6 space-y-4 transition-all hover:border-primary hover:bg-muted/50">
<p className="italic">"{quote}"</p>
<div className="flex items-center gap-4">
<Avatar>
<AvatarImage src={avatarSrc} />
<AvatarFallback>{author[0]}</AvatarFallback>
</Avatar>
<div>
<p className="font-semibold">{author}</p>
<p className="text-sm text-muted-foreground">{position}</p>
</div>
</div>
</Card>
)
}