diff --git a/components/custom-testimonial-card.tsx b/components/custom-testimonial-card.tsx deleted file mode 100644 index 59911f1..0000000 --- a/components/custom-testimonial-card.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import React from "react"; -import Image from "next/image"; - -export interface CustomTestimonialCardProps extends React.HTMLAttributes { - quote: string; - author: string; - role?: string; - avatar?: string; - rating?: number; - lineClamp?: boolean; -} - -export const CustomTestimonialCard = React.forwardRef( - ({ quote, author, role, avatar, rating, lineClamp, className, ...props }, ref) => { - return ( -
-
- {rating && ( -
- {Array.from({ length: 5 }).map((_, i) => ( - - - - ))} -
- )} -

- "{quote}" -

-
- -
- {avatar ? ( - {author} - ) : ( -
- {author.charAt(0)} -
- )} -
- {author} - {role && {role}} -
-
-
- ); - } -); - -CustomTestimonialCard.displayName = "CustomTestimonialCard"; diff --git a/components/reference-cards.tsx b/components/reference-cards.tsx index 442b200..bbe788d 100644 --- a/components/reference-cards.tsx +++ b/components/reference-cards.tsx @@ -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
{REFERENCES.map((item) => { const card = ( - *:last-child]:mt-auto ${ + lineClamp ? "[&>*:first-child]:line-clamp-4" : "" + } ${cardClassName || "w-70 shrink-0"}`} /> ); diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 78b9aa1..537e4a2 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -8,3 +8,11 @@ onlyBuiltDependencies: ignoredBuiltDependencies: - sharp - unrs-resolver + +allowBuilds: + '@parcel/watcher': set this to true or false + '@swc/core': set this to true or false + electron: set this to true or false + puppeteer: set this to true or false + sharp: set this to true or false + unrs-resolver: set this to true or false