-
Notifications
You must be signed in to change notification settings - Fork 612
/
Copy pathClients.tsx
52 lines (46 loc) · 1.61 KB
/
Clients.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"use client";
import React from "react";
import { companies, testimonials } from "@/data";
import { InfiniteMovingCards } from "./ui/InfiniteCards";
const Clients = () => {
return (
<section id="testimonials" className="py-20">
<h1 className="heading">
Kind words from
<span className="text-purple"> satisfied clients</span>
</h1>
<div className="flex flex-col items-center max-lg:mt-10">
<div
// remove bg-white dark:bg-black dark:bg-grid-white/[0.05], h-[40rem] to 30rem , md:h-[30rem] are for the responsive design
className="h-[50vh] md:h-[30rem] rounded-md flex flex-col antialiased items-center justify-center relative overflow-hidden"
>
<InfiniteMovingCards
items={testimonials}
direction="right"
speed="slow"
/>
</div>
<div className="flex flex-wrap items-center justify-center gap-4 md:gap-16 max-lg:mt-10">
{companies.map((company) => (
<React.Fragment key={company.id}>
<div className="flex md:max-w-60 max-w-32 gap-2">
<img
src={company.img}
alt={company.name}
className="md:w-10 w-5"
/>
<img
src={company.nameImg}
alt={company.name}
width={company.id === 4 || company.id === 5 ? 100 : 150}
className="md:w-24 w-20"
/>
</div>
</React.Fragment>
))}
</div>
</div>
</section>
);
};
export default Clients;