feat: add reference cards and detail content components to display testimonials
This commit is contained in:
@@ -4,9 +4,10 @@ import { REFERENCES } from "@/data/references";
|
|||||||
|
|
||||||
type ReferenceCardsProps = {
|
type ReferenceCardsProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
cardClassName?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function ReferenceCards({ className }: ReferenceCardsProps) {
|
export function ReferenceCards({ className, cardClassName }: ReferenceCardsProps) {
|
||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
{REFERENCES.map((item) => {
|
{REFERENCES.map((item) => {
|
||||||
@@ -17,7 +18,7 @@ export function ReferenceCards({ className }: ReferenceCardsProps) {
|
|||||||
role={item.role}
|
role={item.role}
|
||||||
avatar={item.avatar}
|
avatar={item.avatar}
|
||||||
rating={item.rating}
|
rating={item.rating}
|
||||||
className="h-full w-70 shrink-0 rounded-sm"
|
className={`h-full rounded-sm ${cardClassName || "w-70 shrink-0"}`}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ export function ReferencesDetailContent() {
|
|||||||
{"<- Hakkımda'ya dön"}
|
{"<- Hakkımda'ya dön"}
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<ReferenceCards className="flex flex-wrap gap-3" />
|
<ReferenceCards
|
||||||
|
className="grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3"
|
||||||
|
cardClassName="w-full"
|
||||||
|
/>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user