feat: add ReferenceCards component and update pnpm workspace build configuration

This commit is contained in:
Poyraz
2026-06-29 09:54:46 +03:00
parent 4100d7d9e2
commit cd7cc56688
3 changed files with 13 additions and 68 deletions
+5 -4
View File
@@ -1,5 +1,5 @@
import { CustomTestimonialCard } from "@/components/custom-testimonial-card";
import { TestimonialCard } from "poyraz-ui/molecules";
import { REFERENCES } from "@/data/references";
import { useLocale } from "next-intl";
import { getLocalizedValue } from "@/lib/locale";
@@ -17,14 +17,15 @@ export function ReferenceCards({ className, cardClassName, lineClamp }: Referenc
<div className={className}>
{REFERENCES.map((item) => {
const card = (
<CustomTestimonialCard
<TestimonialCard
quote={getLocalizedValue(item.quote, locale)}
author={item.author}
role={getLocalizedValue(item.role, locale)}
avatar={item.avatar}
rating={item.rating}
lineClamp={lineClamp}
className={`h-full ${cardClassName || "w-70 shrink-0"}`}
className={`flex flex-col h-full rounded-sm [&>*:last-child]:mt-auto ${
lineClamp ? "[&>*:first-child]:line-clamp-4" : ""
} ${cardClassName || "w-70 shrink-0"}`}
/>
);