-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathProtocols.tsx
More file actions
60 lines (55 loc) · 2.44 KB
/
Protocols.tsx
File metadata and controls
60 lines (55 loc) · 2.44 KB
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
import Image from "next/image"
import Marquee from "react-fast-marquee"
import { Box } from "@mui/material"
import Polystream from "@/assets/images/home/Polystream.webp"
import ProjectMocha from "@/assets/images/home/ProjectMocha.webp"
import SynthOS from "@/assets/images/home/SynthOS.webp"
import Aave from "@/assets/svgs/landingpage/Aave.svg?url"
import Authgrow from "@/assets/svgs/landingpage/Authgrow.svg?url"
import ChatterPay from "@/assets/svgs/landingpage/ChatterPay.svg?url"
import Circle from "@/assets/svgs/landingpage/Circle.svg?url"
import EtherFi from "@/assets/svgs/landingpage/EtherFi.svg?url"
import Honeypop from "@/assets/svgs/landingpage/Honeypop.svg?url"
import Lido from "@/assets/svgs/landingpage/Lido.svg?url"
import Mellow from "@/assets/svgs/landingpage/Mellow.svg?url"
import QuillFinance from "@/assets/svgs/landingpage/QuillFinance.svg?url"
import Symbiotic from "@/assets/svgs/landingpage/Symbiotic.svg?url"
import Tempest from "@/assets/svgs/landingpage/Tempest.svg?url"
import VIFI from "@/assets/svgs/landingpage/VIFI.svg?url"
const PROTOCOL_LIST = [
{ label: "VIFI", image: VIFI, height: ["18px", "24px"] },
{ label: "Quill Finance", image: QuillFinance, height: ["18px", "24px"] },
{ label: "ChatterPay", image: ChatterPay, height: ["20px", "26px"] },
{ label: "SynthOS", image: SynthOS },
{ label: "Project Mocha", image: ProjectMocha },
{ label: "Polystream", image: Polystream },
{ label: "Honeypop", image: Honeypop },
{ label: "Anthgrow", image: Authgrow },
{ label: "EtherFi", image: EtherFi },
{ label: "Circle", image: Circle },
{ label: "Aave", image: Aave, height: ["15px", "20px"] },
{ label: "Lido", image: Lido },
{ label: "Mellow", image: Mellow },
{ label: "Symbiotic", image: Symbiotic, height: ["15px", "20px"] },
{ label: "Tempest", image: Tempest, height: ["15px", "20px"] },
]
const Protocols = () => {
return (
<Box sx={{ my: ["3.2rem", "9.6rem"] }}>
<Marquee autoFill className="">
{PROTOCOL_LIST.map(({ label, image, height }) => (
<Image
src={image}
alt={label}
key={label}
style={{ "--icon-height": height?.[1] ?? "32px", "--icon-height-xs": height?.[0] ?? "24px" }}
title={label}
loading="eager"
className="h-[var(--icon-height-xs)] sm:h-[var(--icon-height)] w-auto pl-[4.8rem] sm:pl-[6.4rem]"
></Image>
))}
</Marquee>
</Box>
)
}
export default Protocols