forked from gofr-dev/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompanyTrustedList.jsx
77 lines (72 loc) · 1.8 KB
/
CompanyTrustedList.jsx
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import { formatGitHubStars } from '../../utils'
import company1 from '@/images/doceree.svg'
import company2 from '@/images/americanExpress.svg'
import company3 from '@/images/ibm.svg'
import company4 from '@/images/mydbops.svg'
import company5 from '@/images/guidewire.svg'
import company6 from '@/images/weave.svg'
import company8 from '@/images/blinkit.svg'
import company9 from '@/images/zopsmart.svg'
import company10 from '@/images/mcafee.svg'
import Image from 'next/image'
import { useEffect, useState } from 'react'
const imageLink = [
{
image: company2,
},
{
image: company3,
},
{
image: company10,
},
{
image: company8,
},
{
image: company9,
},
{
image: company1,
},
{
image: company4,
},
{
image: company5,
},
{
image: company6,
},
]
export default function CompanyList() {
const [githubStars, setGithubStars] = useState('3500+')
useEffect(() => {
setGithubStars(formatGitHubStars('githubStars'))
}, [])
return (
<div className="bg-gray-900 py-16 sm:py-10">
<div className="mx-auto max-w-7xl px-6 lg:px-8">
<h2 className="text-center text-lg/8 font-semibold text-white">
Trusted by {githubStars} Developers at Companies Like:
</h2>
<div className="mt-10 flex flex-wrap justify-center gap-x-0 gap-y-10 sm:max-w-none lg:mx-0">
{imageLink.map((item, index) => (
<div
key={index}
className="flex max-h-12 w-1/4 justify-center sm:w-1/6 lg:w-1/5"
>
<Image
alt="Transistor"
src={item.image}
width={158}
height={48}
className="max-h-12 object-contain"
/>
</div>
))}
</div>
</div>
</div>
)
}