-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpage.js
252 lines (249 loc) · 11 KB
/
page.js
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
"use client";
import { Router } from "next/router";
import React, { useEffect } from "react";
import { useRouter } from "next/navigation";
import Image from "next/image";
const networks = [
// create object of network name and image url for arbitrum,avalanche, bsc, bscTestnet,cronos, mainnet,fantom,, goerli, polygonMumbai, polygon,sepolia,
{
name: "Ethereum",
image: "/ethereum2.svg",
},
{
name: "Binance Smart Chain",
image: "/binance.svg",
},
{
name: "Polygon",
image: "/polygon.svg",
},
{
name: "Avalanche",
image: "/avalanche.svg",
},
{
name: "Fantom",
image: "/fantom.svg",
},
{
name: "Arbitrum",
image: "/arbitrum.svg",
},
{
name: "Cronos",
image: "/cronos.svg",
},
{
name: "Goerli",
image: "/default.svg",
},
{
name: "Sepolia",
image: "/default.svg",
},
];
const tools = [
"/walletconnect-logo-white.svg",
"/permit2.svg",
"/moralis.svg",
"/wagmi.svg",
];
const page = () => {
const router = useRouter();
// useEffect(() => {
// router.push("/send/selectTokens");
// }, []);
return (
<div className="flex justify-center bg-black text-white overflow-auto">
<main className="max-w-6xl grid gap-y-24 w-full px-4">
<nav className="flex items-center py-4 sm:px-8 ">
<Image
src={"/logoWhite.svg"}
className="w-28 sm:w-36"
width={152}
height={33.7}
/>
</nav>
<article className="flex flex-col items-center justify-center gap-y-8">
<h1 className="max-w-lg text-xl md:text-3xl font-semibold text-yellow-500 text-center">
Send multiple tokens to multiple addresses in one
transaction
</h1>
<button
onClick={() => router.push("/send/selectTokens")}
className="border-2 rounded px-4 md:px-8 py-1 border-yellow-500"
>
Launch Dapp
</button>
</article>
<article className="flex flex-col items-start justify-center gap-y-2">
<p className="text-xs">About Aikisend</p>
<h2 className="max-w-lg text-xs sm:text-sm">
In the ever-evolving landscape of blockchain and
cryptocurrency, efficiency, convenience, and innovation
are paramount. Aikisend emerges as a groundbreaking
solution that re-imagines the way digital assets are
transferred, providing an unprecedented level of
flexibility and simplicity to users seeking to send
multiple tokens to multiple addresses in a single
transaction.
</h2>
<p className="text-[0.6rem] max-w-md text-gray-500">
AikiSend is a Next Gen multi-token sender application,
built on the industry standard Permit2 contract from
Uniswap, and also has supports ENS domains.
</p>
</article>
<section className="flex flex-col md:flex-row justify-center gap-x-16">
<div className="gap-y-2 flex flex-col relative">
<div className=" w-full absolute top-0 left-0 bg-gray-400">
<div className="w-1/3 bg-yellow-500 h-[1px]"></div>
</div>
<h3 className="pt-4">Batched multi-tokens transfers</h3>
<p className="max-w-xs text-xs">
Unlike other multisender application that only
allows transfer of one token to multiple addresses,
with AikiSend you can transfer multiple tokens say
(Dai, Uni, USDC) to multiple addresses all in one
transaction.
</p>
</div>
<div>
<Image
src={"/coinFlow.svg"}
className="w-48 hidden md:block"
width={252}
height={252}
/>
</div>
</section>
<section className="flex flex-col md:flex-row justify-start gap-x-16">
<div className="gap-y-2 flex flex-col relative">
<div className=" w-full absolute top-0 left-0 bg-gray-400">
<div className="w-1/3 translate-x-full bg-yellow-500 h-[1px]"></div>
</div>
<h3 className="pt-4">ENS domains support</h3>
<p className="max-w-xs text-xs">
Aikisend has integrated ENS to allow for token
transfers to valid ENS names, hence improving the
User Experience
</p>
</div>
<div>
<Image
src={"/ens.svg"}
className="w-48 hidden md:block border-t rounded-2xl border-yellow-500 pt-4"
width={252}
height={252}
/>
</div>
</section>
<section className="flex flex-col md:flex-row justify-end gap-x-16">
<div className="gap-y-2 flex flex-col relative">
<div className=" w-full absolute top-0 left-0 bg-gray-400 overflow-hidden">
<div className="w-2/3 translate-x-full bg-yellow-500 h-[1px]"></div>
</div>
<h3 className="pt-4">Multi-Chain</h3>
<p className="max-w-xs text-xs">
AikiSend works out of the box on many EVM chains
with Permit2 deployment.
</p>
</div>
<div>
<Image
src={"/multichain.svg"}
className="w-48 hidden md:block border-t rounded-2xl border-yellow-500 pt-4"
width={252}
height={252}
/>
</div>
</section>
<section>
<h2 class="mb-2 text-xl font-semibold text-yellow-500">
How It Works:
</h2>
<ul class=" space-y-1 md:text-lg text-gray-300 list-disc list-inside ">
<li>
On landing on the homepage, a user connect their
wallet account.
</li>
<li>
The list of tokens in the connected wallet can be
inputted using the search box.
</li>
<li>
Approve Permit2 contract to spend tokens. Note: If
Permit2 has been approved previously, this step is
skipped.
</li>
<li>Sign the Signature data for the transfer.</li>
<li>
Proceed to make the transfer, all in one
transaction🎉.
</li>
</ul>
</section>
<section className="flex flex-col items-center text-center">
{/* <h2 className="text-xl text-yellow-500">Tools Used</h2> */}
<div className="flex gap-x-8">
{tools.map((tool) => (
<Image
src={tool}
className="w-16 text-white"
width={32}
height={32}
/>
))}
</div>
</section>
<section className="flex flex-col text-center gap-y-8 justify-center items-center ">
<h2 className="text-xl font-semibold text-yellow-500">
Supported Networks
</h2>
<div className="grid grid-cols-2 md:grid-cols-4 gap-y-12 gap-x-8 md:gap-x-20 max-w-4xl">
{networks.map((network) => (
<div className="flex items-center flex-col border-b rounded-2xl border-yellow-500 justify-center px-2 py-4 gap-y-4">
<Image
src={network.image}
className="w-10"
width={32}
height={32}
/>
<p>{network.name}</p>
</div>
))}
</div>
</section>
<section className="space-y-2 ">
<p className="text-sm text-center">
AikiSend is free and open to public use, however we
appreciate donations from the broader community to
continually improve the application and keep it live.
</p>
<footer className="flex items-center text-xs sm:text-sm md:text-base justify-center gap-6 md:justify-between px-4 py-4 sm:px-8 border-t border-gray-300">
<Image
src={"/logoHalf.svg"}
className="w-6 md:w-8 "
width={36.7}
height={32.7}
/>
<div className="flex flex-col md:flex-row items-center sm:gap-4 justify-between ">
<p>Donate to this project🙂</p>
<p>
<a
className="cursor-pointer"
href="https://etherscan.io/address/0x2e2316088c015F4BF27D86A1458A707af536A324"
>
<u>
0x2e2316088c015F4BF27D86A1458A707af536A324
</u>
</a>
</p>
</div>
</footer>
</section>
</main>
</div>
);
};
export default page;