-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathCommunityPatners.tsx
54 lines (50 loc) · 1.44 KB
/
CommunityPatners.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
53
54
import Image from 'next/image';
import React from 'react';
import { motion } from 'framer-motion';
type Props = {};
const CommunityPatners = (props: Props) => {
return (
<main
id="communityPatners"
className="w-full text-white sm:h-screen relative py-10 sm:p-10"
>
<Image
src="/assets/background/CommunityPartner.gif"
alt="Community Partner BG"
className="-z-10"
fill
/>
<motion.h1
whileInView={{ y: [50, 0] }}
transition={{
ease: 'easeInOut',
duration: 1,
}}
viewport={{ once: true }}
className="heading text-center"
>
Community Partners
</motion.h1>
<div className="py-10 sm:p-10">
<div className="grid grid-cols-1 sm:grid-cols-4 gap-4 h-96 px-8 overflow-y-auto scrollbar-thin scrollbar-thumb-primary/50 scrollbar-track-slate-200">
{Array.from(Array(40).keys()).map((i) => {
return (
<div
className="max-w-xs h-40 relative rounded-2xl overflow-hidden bg-white bg-opacity-70"
key={i}
>
<Image
src={`/assets/community/Partner (${i + 1}).png`}
alt={`Partner ${i}`}
loading="lazy"
fill
/>
</div>
);
})}
</div>
</div>
</main>
);
};
export default CommunityPatners;