-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
766 lines (689 loc) Β· 24.5 KB
/
index.html
File metadata and controls
766 lines (689 loc) Β· 24.5 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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Base.dev verification & attribution -->
<meta name="base:app_id" content="69a9396d0050dd24efcc1e16" />
<meta name="base:builder-code" content="bc_5s50punj" />
<title>MetricFlow β Farcaster Engagement on Base</title>
<meta name="description" content="MetricFlow is an agentic system that monitors Farcaster reactions and automatically rewards your community with ETH on Base chain." />
<meta property="og:title" content="MetricFlow" />
<meta property="og:description" content="Turn Farcaster likes & recasts into on-chain rewards on Base. Automatically." />
<meta property="og:type" content="website" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=IBM+Plex+Mono:wght@300;400;500&display=swap" rel="stylesheet" />
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--base-blue: #0052FF;
--electric: #00D4FF;
--acid: #ADFF2F;
--bg: #080A0E;
--bg2: #0D1117;
--surface: #141C26;
--border: rgba(0, 82, 255, 0.18);
--text: #E8EDF5;
--muted: #6B7A8D;
--font-display: 'Syne', sans-serif;
--font-mono: 'IBM Plex Mono', monospace;
}
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--font-display);
overflow-x: hidden;
cursor: none;
}
.cursor {
width: 10px; height: 10px;
background: var(--base-blue);
border-radius: 50%;
position: fixed;
top: 0; left: 0;
pointer-events: none;
z-index: 9999;
mix-blend-mode: screen;
}
.cursor-ring {
width: 36px; height: 36px;
border: 1px solid rgba(0,82,255,0.5);
border-radius: 50%;
position: fixed;
top: 0; left: 0;
pointer-events: none;
z-index: 9998;
transition: all 0.18s ease;
}
.grid-bg {
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(0,82,255,0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,82,255,0.04) 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
z-index: 0;
}
nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
padding: 20px 48px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
background: rgba(8,10,14,0.85);
backdrop-filter: blur(16px);
}
.nav-logo {
font-size: 1.1rem;
font-weight: 800;
letter-spacing: -0.02em;
color: var(--text);
text-decoration: none;
display: flex;
align-items: center;
gap: 10px;
}
.nav-logo-dot {
width: 8px; height: 8px;
background: var(--base-blue);
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(1.4); }
}
.nav-links {
display: flex;
gap: 36px;
list-style: none;
}
.nav-links a {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--muted);
text-decoration: none;
letter-spacing: 0.08em;
text-transform: uppercase;
transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--base-blue);
text-decoration: none;
border: 1px solid var(--base-blue);
padding: 8px 20px;
letter-spacing: 0.06em;
transition: all 0.2s;
}
.nav-cta:hover { background: var(--base-blue); color: #fff; }
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
padding: 120px 48px 80px;
overflow: hidden;
z-index: 1;
}
.hero-orb {
position: absolute;
width: 700px; height: 700px;
background: radial-gradient(circle, rgba(0,82,255,0.12) 0%, transparent 70%);
top: 50%; left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
animation: orb-drift 8s ease-in-out infinite;
}
@keyframes orb-drift {
0%, 100% { transform: translate(-50%, -50%) scale(1); }
50% { transform: translate(-48%, -52%) scale(1.05); }
}
.hero-badge {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--base-blue);
border: 1px solid rgba(0,82,255,0.3);
padding: 6px 14px;
display: inline-block;
margin-bottom: 32px;
animation: fade-up 0.8s ease both;
}
.hero-title {
font-size: clamp(3.5rem, 9vw, 8rem);
font-weight: 800;
line-height: 0.9;
letter-spacing: -0.04em;
margin-bottom: 32px;
animation: fade-up 0.8s 0.1s ease both;
}
.hero-title em {
font-style: normal;
color: transparent;
-webkit-text-stroke: 1px rgba(0,82,255,0.6);
}
.hero-title .accent { color: var(--base-blue); }
.hero-sub {
font-family: var(--font-mono);
font-size: 1rem;
color: var(--muted);
max-width: 520px;
line-height: 1.7;
margin-bottom: 48px;
animation: fade-up 0.8s 0.2s ease both;
}
.hero-actions {
display: flex;
gap: 16px;
flex-wrap: wrap;
animation: fade-up 0.8s 0.3s ease both;
}
.btn-primary {
background: var(--base-blue);
color: #fff;
font-family: var(--font-mono);
font-size: 0.8rem;
letter-spacing: 0.08em;
text-transform: uppercase;
text-decoration: none;
padding: 14px 32px;
transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
background: transparent;
color: var(--text);
font-family: var(--font-mono);
font-size: 0.8rem;
letter-spacing: 0.08em;
text-transform: uppercase;
text-decoration: none;
padding: 14px 32px;
border: 1px solid var(--border);
transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--base-blue); color: var(--base-blue); }
.hero-stats {
position: absolute;
right: 48px;
bottom: 80px;
display: flex;
flex-direction: column;
gap: 24px;
}
.stat { text-align: right; }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label {
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--muted);
letter-spacing: 0.1em;
text-transform: uppercase;
}
.ticker {
position: relative;
z-index: 1;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
padding: 14px 0;
overflow: hidden;
background: var(--bg2);
}
.ticker-track {
display: flex;
gap: 64px;
animation: ticker 20s linear infinite;
white-space: nowrap;
}
.ticker-item {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--muted);
letter-spacing: 0.1em;
text-transform: uppercase;
flex-shrink: 0;
}
.ticker-item span { color: var(--base-blue); margin-right: 8px; }
@keyframes ticker {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
section {
position: relative;
z-index: 1;
padding: 120px 48px;
border-top: 1px solid var(--border);
}
.section-label {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--base-blue);
margin-bottom: 16px;
}
.section-title {
font-size: clamp(2rem, 4vw, 3.5rem);
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.05;
margin-bottom: 64px;
}
.flow-diagram {
display: flex;
align-items: center;
overflow-x: auto;
padding-bottom: 16px;
}
.flow-node {
flex-shrink: 0;
background: var(--surface);
border: 1px solid var(--border);
padding: 28px 32px;
min-width: 200px;
transition: border-color 0.3s;
}
.flow-node:hover { border-color: var(--base-blue); }
.flow-node-icon { font-size: 1.5rem; margin-bottom: 12px; }
.flow-node-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.flow-node-desc { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); line-height: 1.5; }
.flow-arrow {
flex-shrink: 0;
width: 60px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.flow-arrow::before {
content: '';
position: absolute;
left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, var(--base-blue), transparent);
animation: flow-line 2s infinite;
}
@keyframes flow-line {
0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; }
}
.flow-arrow-head {
width: 0; height: 0;
border-left: 8px solid var(--base-blue);
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
margin-left: auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
}
.feature-card {
background: var(--bg);
padding: 48px 40px;
position: relative;
overflow: hidden;
transition: background 0.3s;
}
.feature-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: var(--base-blue);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { background: var(--surface); }
.feature-num { font-family: var(--font-mono); font-size: 0.65rem; color: var(--base-blue); letter-spacing: 0.15em; margin-bottom: 24px; }
.feature-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em; }
.feature-desc { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); line-height: 1.7; }
.stack-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 24px;
}
.stack-card {
border: 1px solid var(--border);
padding: 32px;
background: var(--bg);
transition: all 0.3s;
}
.stack-card:hover { border-color: var(--base-blue); transform: translateY(-4px); }
.stack-logo { font-size: 2rem; margin-bottom: 16px; }
.stack-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.stack-role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); line-height: 1.6; }
.code-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 64px;
align-items: center;
}
.code-block {
background: var(--bg2);
border: 1px solid var(--border);
padding: 32px;
font-family: var(--font-mono);
font-size: 0.8rem;
line-height: 1.8;
position: relative;
}
.code-block::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, var(--base-blue), transparent);
}
.code-bar { display: flex; gap: 6px; margin-bottom: 24px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.cd1 { background: #FF5F57; } .cd2 { background: #FEBC2E; } .cd3 { background: #28C840; }
.code-comment { color: #4A5568; }
.code-keyword { color: var(--base-blue); }
.code-string { color: var(--acid); }
.code-func { color: var(--electric); }
.cta-section {
text-align: center;
overflow: hidden;
}
.cta-title {
font-size: clamp(2.5rem, 6vw, 5rem);
font-weight: 800;
letter-spacing: -0.04em;
line-height: 1;
margin-bottom: 24px;
}
.cta-sub {
font-family: var(--font-mono);
font-size: 0.9rem;
color: var(--muted);
margin-bottom: 48px;
}
footer {
position: relative;
z-index: 1;
padding: 40px 48px;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
}
.footer-left { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.footer-right { display: flex; gap: 24px; }
.footer-right a { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: var(--base-blue); }
@keyframes fade-up {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
nav { padding: 16px 24px; }
.nav-links { display: none; }
.hero { padding: 100px 24px 60px; }
.hero-stats { display: none; }
section { padding: 80px 24px; }
.code-layout { grid-template-columns: 1fr; }
footer { padding: 32px 24px; flex-direction: column; gap: 16px; text-align: center; }
}
</style>
</head>
<body>
<div class="cursor" id="cursor"></div>
<div class="cursor-ring" id="cursorRing"></div>
<div class="grid-bg"></div>
<nav>
<a href="#" class="nav-logo">
<div class="nav-logo-dot"></div>
MetricFlow
</a>
<ul class="nav-links">
<li><a href="#how-it-works">How it works</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#stack">Stack</a></li>
</ul>
<a href="https://github.com/isaaco3349/MetricFlow" target="_blank" class="nav-cta">View on GitHub</a>
</nav>
<section class="hero">
<div class="hero-orb"></div>
<div>
<div class="hero-badge">Built on Base Β· Powered by AgentKit</div>
<h1 class="hero-title">
Social<br/>
<em>signals.</em><br/>
<span class="accent">On-chain</span><br/>
rewards.
</h1>
<p class="hero-sub">
MetricFlow monitors your Farcaster casts in real time.
Every like. Every recast. Automatically rewarded with ETH on Base.
</p>
<div class="hero-actions">
<a href="https://github.com/isaaco3349/MetricFlow" target="_blank" class="btn-primary">Get Started β</a>
<a href="#how-it-works" class="btn-secondary">See How It Works</a>
</div>
</div>
<div class="hero-stats">
<div class="stat">
<div class="stat-num">~2s</div>
<div class="stat-label">Reaction to reward</div>
</div>
<div class="stat">
<div class="stat-num">Base</div>
<div class="stat-label">L2 β near zero fees</div>
</div>
<div class="stat">
<div class="stat-num">100%</div>
<div class="stat-label">Automated</div>
</div>
</div>
</section>
<div class="ticker">
<div class="ticker-track">
<div class="ticker-item"><span>β</span> Like detected on Farcaster</div>
<div class="ticker-item"><span>β</span> ETH sent on Base Sepolia</div>
<div class="ticker-item"><span>β</span> Allowlist updated</div>
<div class="ticker-item"><span>β</span> Recast detected on Farcaster</div>
<div class="ticker-item"><span>β</span> Reward confirmed on-chain</div>
<div class="ticker-item"><span>β</span> Community member rewarded</div>
<div class="ticker-item"><span>β</span> Like detected on Farcaster</div>
<div class="ticker-item"><span>β</span> ETH sent on Base Sepolia</div>
<div class="ticker-item"><span>β</span> Allowlist updated</div>
<div class="ticker-item"><span>β</span> Recast detected on Farcaster</div>
<div class="ticker-item"><span>β</span> Reward confirmed on-chain</div>
<div class="ticker-item"><span>β</span> Community member rewarded</div>
</div>
</div>
<section id="how-it-works">
<div class="section-label reveal">// How It Works</div>
<h2 class="section-title reveal">Four steps.<br/>Zero manual work.</h2>
<div class="flow-diagram reveal">
<div class="flow-node">
<div class="flow-node-icon">π‘</div>
<div class="flow-node-title">Farcaster Cast</div>
<div class="flow-node-desc">You post a cast on Farcaster via Warpcast</div>
</div>
<div class="flow-arrow"><div class="flow-arrow-head"></div></div>
<div class="flow-node">
<div class="flow-node-icon">π</div>
<div class="flow-node-title">Neynar Webhook</div>
<div class="flow-node-desc">Reaction detected in real-time via Neynar API</div>
</div>
<div class="flow-arrow"><div class="flow-arrow-head"></div></div>
<div class="flow-node">
<div class="flow-node-icon">π€</div>
<div class="flow-node-title">MetricFlow Agent</div>
<div class="flow-node-desc">Agent validates reactor and triggers reward logic</div>
</div>
<div class="flow-arrow"><div class="flow-arrow-head"></div></div>
<div class="flow-node" style="border-color: rgba(0,82,255,0.4);">
<div class="flow-node-icon">βοΈ</div>
<div class="flow-node-title">Base Chain</div>
<div class="flow-node-desc">ETH sent + user added to allowlist on Base</div>
</div>
</div>
</section>
<section id="features">
<div class="section-label reveal">// Features</div>
<h2 class="section-title reveal">Built for builders.<br/>Loved by communities.</h2>
<div class="features-grid reveal">
<div class="feature-card">
<div class="feature-num">01 β</div>
<div class="feature-title">Real-time Detection</div>
<div class="feature-desc">Neynar webhooks fire the moment someone likes or recasts your post. No polling. No delays.</div>
</div>
<div class="feature-card">
<div class="feature-num">02 β</div>
<div class="feature-title">Automatic ETH Rewards</div>
<div class="feature-desc">Coinbase AgentKit sends ETH directly to the reactor's verified Base wallet automatically.</div>
</div>
<div class="feature-card">
<div class="feature-num">03 β</div>
<div class="feature-title">Smart Allowlisting</div>
<div class="feature-desc">Every rewarded user is added to a persistent allowlist for future token drops or gated access.</div>
</div>
<div class="feature-card">
<div class="feature-num">04 β</div>
<div class="feature-title">Verified Addresses Only</div>
<div class="feature-desc">Only reactors with verified ETH addresses on Farcaster receive rewards. Sybil-resistant by design.</div>
</div>
<div class="feature-card">
<div class="feature-num">05 β</div>
<div class="feature-title">Testnet First</div>
<div class="feature-desc">Start on Base Sepolia with free test ETH. Graduate to mainnet with one config change.</div>
</div>
<div class="feature-card">
<div class="feature-num">06 β</div>
<div class="feature-title">Open Source</div>
<div class="feature-desc">Fully open on GitHub. Fork it, extend it, build on it. MIT licensed.</div>
</div>
</div>
</section>
<section id="stack" style="background: var(--bg2);">
<div class="section-label reveal">// Tech Stack</div>
<h2 class="section-title reveal">Best-in-class tools.<br/>Minimal complexity.</h2>
<div class="stack-grid">
<div class="stack-card reveal">
<div class="stack-logo">π¦</div>
<div class="stack-name">Base (L2)</div>
<div class="stack-role">Ethereum L2 by Coinbase. Near-zero fees, fast finality. Where all rewards land.</div>
</div>
<div class="stack-card reveal">
<div class="stack-logo">π€</div>
<div class="stack-name">Coinbase AgentKit</div>
<div class="stack-role">The simplest way to send on-chain transactions programmatically via CDP.</div>
</div>
<div class="stack-card reveal">
<div class="stack-logo">π£</div>
<div class="stack-name">Neynar</div>
<div class="stack-role">The leading Farcaster API. Real-time webhooks for reactions and user data.</div>
</div>
<div class="stack-card reveal">
<div class="stack-logo">π·</div>
<div class="stack-name">TypeScript</div>
<div class="stack-role">Fully typed end-to-end. From webhook payload to on-chain transaction.</div>
</div>
</div>
</section>
<section>
<div class="code-layout">
<div class="reveal">
<div class="section-label">// Under the Hood</div>
<h2 class="section-title" style="margin-bottom: 24px;">Simple logic.<br/>Powerful results.</h2>
<p style="font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); line-height: 1.8; margin-bottom: 32px;">
MetricFlow is an "If This Then That" loop. A Farcaster reaction triggers the agent, validates the user, logs them to the allowlist, and fires an on-chain transaction β all in under 2 seconds.
</p>
<a href="https://github.com/isaaco3349/MetricFlow" target="_blank" class="btn-primary">Read the Source β</a>
</div>
<div class="code-block reveal">
<div class="code-bar">
<div class="code-dot cd1"></div>
<div class="code-dot cd2"></div>
<div class="code-dot cd3"></div>
</div>
<div>
<span class="code-comment">// rewardEngine.ts</span><br/><br/>
<span class="code-keyword">async function</span> <span class="code-func">processEvent</span>(<br/>
event: EngagementEvent<br/>
) {<br/><br/>
<span class="code-comment">// Verify ETH address</span><br/>
<span class="code-keyword">if</span> (!event.reactorEthAddress)<br/>
<span class="code-keyword">return</span> skip(<span class="code-string">"no_address"</span>);<br/><br/>
<span class="code-comment">// Add to allowlist</span><br/>
<span class="code-func">addToAllowlist</span>(event);<br/><br/>
<span class="code-comment">// Send ETH on Base</span><br/>
<span class="code-keyword">const</span> tx = <span class="code-keyword">await</span> <span class="code-func">sendReward</span>(<br/>
event.reactorEthAddress,<br/>
config.rewardAmountWei<br/>
);<br/><br/>
<span class="code-keyword">return</span> { status: <span class="code-string">"sent"</span>, tx };<br/>
}
</div>
</div>
</div>
</section>
<section class="cta-section">
<div class="section-label reveal" style="margin-bottom: 24px;">// Get Started</div>
<h2 class="cta-title reveal">
Start rewarding<br/>
<span style="color: var(--base-blue);">your community</span><br/>
today.
</h2>
<p class="cta-sub reveal">Open source. Free to deploy. Built on Base.</p>
<div style="display:flex; gap:16px; justify-content:center;" class="reveal">
<a href="https://github.com/isaaco3349/MetricFlow" target="_blank" class="btn-primary">View on GitHub β</a>
<a href="https://base.org" target="_blank" class="btn-secondary">Learn about Base</a>
</div>
</section>
<footer>
<div class="footer-left">Β© 2026 MetricFlow Β· Built on Base Β· MIT License</div>
<div class="footer-right">
<a href="https://github.com/isaaco3349/MetricFlow" target="_blank">GitHub</a>
<a href="https://base.org" target="_blank">Base</a>
<a href="https://neynar.com" target="_blank">Neynar</a>
<a href="https://docs.cdp.coinbase.com/agentkit" target="_blank">AgentKit</a>
</div>
</footer>
<script>
const cursor = document.getElementById('cursor');
const ring = document.getElementById('cursorRing');
let mx = 0, my = 0, rx = 0, ry = 0;
document.addEventListener('mousemove', e => {
mx = e.clientX; my = e.clientY;
cursor.style.left = mx - 5 + 'px';
cursor.style.top = my - 5 + 'px';
});
function animateRing() {
rx += (mx - rx - 18) * 0.12;
ry += (my - ry - 18) * 0.12;
ring.style.left = rx + 'px';
ring.style.top = ry + 'px';
requestAnimationFrame(animateRing);
}
animateRing();
const reveals = document.querySelectorAll('.reveal');
const observer = new IntersectionObserver(entries => {
entries.forEach((entry, i) => {
if (entry.isIntersecting) {
setTimeout(() => entry.target.classList.add('visible'), i * 80);
}
});
}, { threshold: 0.1 });
reveals.forEach(el => observer.observe(el));
</script>
</body>
</html>