mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-25 04:12:44 +03:00
1cd99ae234
Issue: https://github.com/StanGirard/quivr/issues/1428 https://github.com/StanGirard/quivr/assets/63923024/b0b25f3e-d038-4740-b581-e3c256d89902
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { useEffect, useState } from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { TestimonialCard } from "./components/TestimonialCard";
|
|
import { testimonialsExamples } from "./data/testimonialsExamples";
|
|
import { Testimonial } from "./types";
|
|
|
|
export const TestimonialsSection = (): JSX.Element => {
|
|
const { t } = useTranslation("home", {
|
|
keyPrefix: "testimonials",
|
|
});
|
|
|
|
const [testimonials, setTestimonials] = useState<Testimonial[]>([]);
|
|
|
|
useEffect(() => {
|
|
setTestimonials(testimonialsExamples);
|
|
}, []);
|
|
|
|
return (
|
|
<>
|
|
<p className="text-4xl font-semibold my-10">
|
|
{t("title")} <span className="text-primary">Quivr</span>{" "}
|
|
</p>
|
|
<div className="grid grid-cols-12 gap-10 mb-5 items-stretch p-4">
|
|
{testimonials.map((testimonial) => (
|
|
<div
|
|
className="col-span-12 md:col-span-4 h-full"
|
|
key={testimonial.content}
|
|
>
|
|
<TestimonialCard {...testimonial} />
|
|
</div>
|
|
))}
|
|
</div>
|
|
</>
|
|
);
|
|
};
|