-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClients.tsx
49 lines (41 loc) · 1.31 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
'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 mb-20">
Kind words from
<span className="text-purple"> satisfied clients</span>
</h1>
<div className="flex flex-col items-center max-lg:mt-10">
<InfiniteMovingCards
items={testimonials}
direction="right"
speed="slow"
/>
<div className="flex flex-wrap items-center justify-center gap-4 md:gap-16 max-lg:mt-10 mt-20">
{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