import { useEffect, useRef, useState } from 'react'
import {
SedaMark,
ArrowRight,
ArrowUp,
Caret,
CHAINS,
DistributedGlobal,
Coinbase,
Reciprocal,
Uncorrelated,
} from './logos.jsx'
import heroTopLeft from './assets/hero-topleft.jpg'
import heroLeft from './assets/hero-left.jpg'
import heroTopCenter from './assets/hero-topcenter.jpg'
import heroMid from './assets/hero-mid.jpg'
import heroRight from './assets/hero-right.jpg'
import feat1 from './assets/feat-1.jpg'
import feat2 from './assets/feat-2.jpg'
import feat3 from './assets/feat-3.jpg'
import feat4 from './assets/feat-4.jpg'
import feat5 from './assets/feat-5.jpg'
import cardImg1 from './assets/card-img-1.jpg'
import cardImg2 from './assets/card-img-2.jpg'
import cardImg3 from './assets/card-img-3.jpg'
import footerWave from './assets/footer-wave.jpg'
const scrollToId = (id) => {
const el = document.getElementById(id)
if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' })
}
/* ---------------------------------- nav ---------------------------------- */
function Nav() {
const [learnOpen, setLearnOpen] = useState(false)
const learnRef = useRef(null)
useEffect(() => {
const close = (e) => {
if (learnRef.current && !learnRef.current.contains(e.target)) setLearnOpen(false)
}
document.addEventListener('click', close)
return () => document.removeEventListener('click', close)
}, [])
const go = (id) => (e) => {
e.preventDefault()
setLearnOpen(false)
scrollToId(id)
}
return (
)
}
/* ---------------------------------- hero --------------------------------- */
function Hero() {
return (
)
}
/* --------------------------------- stats --------------------------------- */
const STATS = [
['+$152B', 'Total value enabled'],
['+12M', 'Data-feed updates'],
['+24', 'Networks we support'],
['+$22M', 'Raised'],
]
function Stats() {
return (
{STATS.map(([n, label]) => (
))}
)
}
/* -------------------------------- features ------------------------------- */
const FEATURES = [
{
img: feat1,
lines: ['SEDA is a base network that forms a', 'foundational layer below blockchain', 'ecosystems as the HTTP of web3.'],
},
{
img: feat2,
lines: [
'SEDA seamlessly integrates with any',
'Blockchain Network using an open-',
'source relay smart contract, making',
'deployment fast and secure.',
],
},
{
img: feat3,
lines: [
'The SEDA Network is permissionless',
'by design. Information and value can',
'be validated, exchanged, relayed, and',
'requested by any entity across any',
'network with shared security.',
],
},
{
img: feat4,
lines: ['The SEDA Network is built with the', 'Cosmos SDK, creating a robust and', 'decentralized validator set.'],
},
{
img: feat5,
lines: ['SEDA can support any EVM Network,', 'including non-EVM Networks, within a', 'swift timeframe of just 24 hours.'],
},
]
// desktop-measured offsets (px from section top) — collapse to flow on mobile
const FEAT_POS = [
{ img: [342, -560, 520, 470], txt: 604, num: [572, 66] },
{ img: [892, -560, 520, 480], txt: 1102, num: [1043, 338] },
{ img: [1402, -540, 500, 470], txt: 1630, num: [1542, 84] },
{ img: [1982, -540, 500, 420], txt: 2190, num: [2091, 338] },
{ img: [2562, -560, 520, 510], txt: 2688, num: [2599, 74] },
]
function Features() {
return (
{FEATURES.map((f, i) => {
const p = FEAT_POS[i]
return (
{i + 1}
{f.lines.map((line, j) => (
{line}
{j < f.lines.length - 1 &&
}
))}
)
})}
)
}
/* -------------------------------- pillars -------------------------------- */
const PILLARS = [
{
title: 'Secure',
hue: 0,
lines: ['Every step in the SEDA', 'network is strongly secured', 'by cryptographic primitives', 'and economic guarantees.'],
},
{
title: 'Fast',
hue: 160,
lines: ['Provides low latency for', 'queried data based on a', 'Proof-of-Stake (PoS)', 'consensus mechanism.'],
},
{
title: 'Permissionless',
hue: 300,
lines: ['No central authority controls', 'the data being transported', 'from the source to the', 'destination.'],
},
]
function Pillars() {
return (
{PILLARS.map((p) => (
{p.title}
{p.lines.map((line, j) => (
{line}
{j < p.lines.length - 1 &&
}
))}
))}
)
}
/* ------------------------------- ecosystems ------------------------------ */
const ROW1 = ['Algorand', 'Arbitrum', 'Aurora', 'avalanche', 'Binance', 'Cardano', 'Sui', 'Aptos']
const ROW2 = ['Sui', 'Aptos', 'Algorand', 'Arbitrum', 'Aurora', 'avalanche', 'Binance', 'Cardano']
function Ecosystems() {
return (
Our expanding network
of ecosystems
{ROW1.map((name, i) => (
{CHAINS[name]}
{name}
))}
{ROW2.map((name, i) => (
{CHAINS[name]}
{name}
))}
)
}
/* ---------------------------- audience cards ----------------------------- */
const AUDIENCES = [
{ title: ['For', 'Developers'], img: cardImg1, target: 'network' },
{ title: ['For', 'Validators'], img: cardImg2, target: 'ecosystems' },
{ title: ['For', 'Community'], img: cardImg3, target: 'footer' },
]
function Audiences() {
return (
{AUDIENCES.map((a) => (
{a.title[0]}
{a.title[1]}
))}
)
}
/* --------------------------------- footer -------------------------------- */
const FOOTER_COLS = [
{ head: 'Build', links: [['Developers', 'network'], ['Validators', 'audiences'], ['Primer', 'pillars']] },
{
head: 'Learn',
links: [
['About', 'top'],
['FAQs', 'pillars'],
['Ecosystem', 'ecosystems'],
['Careers', 'footer', 'hiring'],
['Contact us', 'footer'],
['Press & brand', 'footer'],
],
},
{
head: 'Community',
links: [['Podcast', 'top'], ['Blog', 'network'], ['Twitter', 'top'], ['Telegram', 'top'], ['Discord', 'top']],
},
{
head: 'Token',
links: [
['Explorer', 'top', 'soon'],
['FLX staking', 'top'],
['Etherscan', 'top'],
['Coingecko', 'top'],
['Coinmarketcap', 'top'],
],
},
]
const MARQUEE = Array.from({ length: 4 })
function Footer() {
return (
)
}
export default function App() {
return (
)
}