Repository navigation
Expand file tree
/
Copy pathindex.js
More file actions
289 lines (278 loc) · 9.77 KB
/
Copy pathindex.js
File metadata and controls
289 lines (278 loc) · 9.77 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
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
import React from 'react';
import Link from '@docusaurus/Link';
import Layout from '@theme/Layout';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
/* ------------------------------------------------------------------ */
/* Icons: 20px, 1.5px stroke, currentColor */
/* ------------------------------------------------------------------ */
const Icon = {
Build: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="M12 3 3 7.5 12 12l9-4.5L12 3Z" /><path d="M3 12l9 4.5 9-4.5" /><path d="M3 16.5 12 21l9-4.5" />
</svg>
),
Bridge: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="M4 7h16" /><path d="M4 17h16" /><path d="m15 3 4 4-4 4" /><path d="m9 13-4 4 4 4" />
</svg>
),
Pay: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<rect x="3" y="5" width="18" height="14" rx="2" /><path d="M3 10h18" /><path d="M7 15h3" />
</svg>
),
Wallet: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="M3 7a2 2 0 0 1 2-2h13v4" /><rect x="3" y="7" width="18" height="12" rx="2" /><path d="M16 13h.01" />
</svg>
),
Tools: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="m14.5 6.5 3 3" /><path d="M4 20l7.5-7.5" /><path d="M14 4.5a4 4 0 0 0 5.5 5.5L17 12.5 11.5 7 14 4.5Z" />
</svg>
),
Arrow: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="M5 12h14" /><path d="m13 6 6 6-6 6" />
</svg>
),
Chevron: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="m9 6 6 6-6 6" />
</svg>
),
Terminal: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="m5 7 5 5-5 5" /><path d="M12 17h7" />
</svg>
),
Server: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<rect x="4" y="4" width="16" height="16" rx="2" /><path d="M4 10h16" /><path d="M4 15h16" />
</svg>
),
Shield: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="M12 3 4.5 6v5.5c0 4.5 3.2 8.2 7.5 9.5 4.3-1.3 7.5-5 7.5-9.5V6L12 3Z" /><path d="m9 12 2 2 4-4" />
</svg>
),
Trending: (p) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" {...p}>
<path d="m3 17 6-6 4 4 8-9" /><path d="M15 6h6v6" />
</svg>
),
};
/* ------------------------------------------------------------------ */
/* Content */
/* ------------------------------------------------------------------ */
/* Gnosis EEZ: what changes at the fork, how it works, and how to be live at launch. */
const EEZ_ROUTES = [
{
icon: Icon.Trending,
title: 'Now vs Gnosis EEZ',
audience:
'What stays the same and what changes at the fork.',
cta: 'Compare',
to: '/eez/gnosis-eez',
},
{
icon: Icon.Server,
title: 'How it works',
audience:
'The four steps behind every Gnosis EEZ block.',
cta: 'Read',
to: '/eez/how-it-works',
},
{
icon: Icon.Arrow,
title: 'Become a launch partner',
audience:
'Deploy on Gnosis Chain now and be live on Gnosis EEZ at launch.',
cta: 'Deploy',
to: '/launch-partner',
},
];
const FEATURES = [
{
icon: Icon.Build,
title: 'Build on Gnosis',
body: 'Deploy EVM contracts with Foundry or Hardhat and verify them on Gnosisscan.',
to: '/developers/quickstart',
},
{
icon: Icon.Bridge,
title: 'Bridge assets',
body: 'Move tokens and messages between Ethereum and Gnosis with the native bridges.',
to: '/bridges',
},
{
icon: Icon.Wallet,
title: 'Use smart accounts',
body: 'Account abstraction, custom signers and EIP-7702 with Safe as the custody layer.',
to: '/technicalguides/account-abstraction/',
},
{
icon: Icon.Pay,
title: 'Build with real money',
body: 'Stablecoins, e-money and self-custodial cards. Payments that settle in seconds.',
to: '/about/tokens',
},
];
const USE_CASES = [
{
icon: Icon.Terminal,
title: 'Deploy contracts',
links: [
['Quickstart', '/developers/quickstart'],
['Using Foundry', '/developers/dev-environment/foundry'],
['Verify smart contracts', '/developers/Verify Smart Contracts/'],
],
},
{
icon: Icon.Bridge,
title: 'Move assets across chains',
links: [
['Use Gnosis Bridge', '/bridges/usebridges'],
['Arbitrary Message Bridge', '/bridges/using-amb'],
['Third-party bridges', '/bridges/thirdpartybridges'],
],
},
{
icon: Icon.Server,
title: 'Read and index chain data',
links: [
['RPC providers', '/tools/RPC Providers/'],
['Indexers and analytics', '/tools/Indexer & Analytics/'],
['Block explorers', '/tools/Blockchain Explorers/'],
],
},
{
icon: Icon.Shield,
title: 'Run a validator',
links: [
['The move to Gnosis EEZ', '/validators/eez-transition'],
['Validator withdrawals', '/validators/withdrawals'],
['Voluntary exit', '/validators/voluntary-exit'],
],
},
];
/* ------------------------------------------------------------------ */
/* Sections */
/* ------------------------------------------------------------------ */
function Hero() {
return (
<section className={styles.hero}>
<h1 className={styles.heroTitle}>
<span className={styles.heroLine}>Deploy now on Gnosis Chain.</span>{' '}
<span className={styles.heroLine}>Launch on Gnosis EEZ.</span>
</h1>
<p className={styles.heroLede}>
Gnosis EEZ is the first instance of the Ethereum Economic Zone, and will have synchronous
composability with mainnet.
</p>
<div className={styles.heroActions}>
<Link className={styles.btnPrimary} to="/launch-partner">
Become a launch partner
</Link>
<Link className={styles.btnSecondary} to="/developers/quickstart">
Start building <Icon.Arrow width="16" height="16" />
</Link>
</div>
</section>
);
}
function RouteCards({routes}) {
return (
<div className={styles.pathwayGrid}>
{routes.map(({icon: I, title, audience, cta, to}) => (
<Link key={title} className={styles.pathway} to={to}>
<span className={styles.pathwayTop}>
<span className={styles.pathwayIcon}>
<I width="22" height="22" />
</span>
</span>
<span className={styles.pathwayBody}>
<span className={styles.pathwayTitle}>{title}</span>
<span className={styles.pathwayAudience}>{audience}</span>
</span>
<span className={styles.pathwayFoot}>
<span className={styles.pathwayCta}>
{cta} <Icon.Arrow width="14" height="14" />
</span>
</span>
</Link>
))}
</div>
);
}
function Eez() {
return (
<section className={styles.section}>
<h2 className={styles.sectionTitle}>Get started</h2>
<RouteCards routes={EEZ_ROUTES} />
</section>
);
}
function Features() {
return (
<section className={styles.section}>
<h2 className={styles.sectionTitle}>Build</h2>
<div className={styles.featureGrid}>
{FEATURES.map(({icon: I, title, body, to}) => (
<Link key={title} className={styles.featureCard} to={to}>
<span className={styles.featureIcon}>
<I width="22" height="22" />
</span>
<span className={styles.featureText}>
<span className={styles.featureTitle}>{title}</span>
<span className={styles.featureBody}>{body}</span>
</span>
</Link>
))}
</div>
</section>
);
}
function UseCases() {
return (
<section className={styles.section}>
<h2 className={styles.sectionTitle}>Common workflows</h2>
<div className={styles.useCaseGrid}>
{USE_CASES.map(({icon: I, title, links}) => (
<div key={title} className={styles.useCase}>
<div className={styles.useCaseHead}>
<I width="18" height="18" className={styles.useCaseIcon} />
<span>{title}</span>
</div>
<ul className={styles.useCaseList}>
{links.map(([label, to]) => (
<li key={to}>
<Link to={to} className={styles.useCaseLink}>
<span>{label}</span>
<Icon.Chevron width="16" height="16" />
</Link>
</li>
))}
</ul>
</div>
))}
</div>
</section>
);
}
export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout title={siteConfig.title} description={siteConfig.tagline}>
<main className={styles.home}>
<div className={styles.page}>
<Hero />
<Eez />
<Features />
<UseCases />
</div>
</main>
</Layout>
);
}