Initial eth_hedge_sim: P0 market, auth UI, one-click deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-24 16:33:25 +08:00
commit e51f357b48
49 changed files with 4783 additions and 0 deletions
+238
View File
@@ -0,0 +1,238 @@
:root {
--bg: #0b0e11;
--bg-elev: #12161c;
--bg-panel: #151a21;
--line: #1e2630;
--text: #eaecef;
--muted: #848e9c;
--accent: #f0b90b;
--up: #0ecb81;
--down: #f6465d;
--input: #0f141a;
--danger: #f6465d;
font-family: "IBM Plex Sans", sans-serif;
color: var(--text);
background: var(--bg);
}
* {
box-sizing: border-box;
}
html,
body,
#root {
margin: 0;
min-height: 100%;
}
body {
background:
radial-gradient(1200px 600px at 10% -10%, rgba(240, 185, 11, 0.08), transparent 55%),
radial-gradient(900px 500px at 100% 0%, rgba(14, 203, 129, 0.05), transparent 50%),
var(--bg);
}
button,
input {
font: inherit;
}
.mono {
font-family: "IBM Plex Mono", monospace;
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr;
}
.topnav {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
border-bottom: 1px solid var(--line);
background: rgba(11, 14, 17, 0.92);
backdrop-filter: blur(8px);
position: sticky;
top: 0;
z-index: 10;
}
.brand {
font-weight: 700;
letter-spacing: 0.02em;
margin-right: 12px;
color: var(--accent);
}
.topnav a {
color: var(--muted);
text-decoration: none;
padding: 8px 12px;
border-radius: 6px;
}
.topnav a.active {
color: var(--text);
background: var(--bg-panel);
}
.topnav .spacer {
flex: 1;
}
.topnav .meta {
color: var(--muted);
font-size: 12px;
margin-right: 8px;
}
.page {
padding: 16px;
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
.card {
background: var(--bg-panel);
border: 1px solid var(--line);
border-radius: 10px;
padding: 16px;
}
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
@media (max-width: 800px) {
.grid-2 {
grid-template-columns: 1fr;
}
}
.kv {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--line);
font-size: 14px;
}
.kv:last-child {
border-bottom: 0;
}
.kv span:first-child {
color: var(--muted);
}
.login-wrap {
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
}
.login-box {
width: min(420px, 100%);
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: 14px;
padding: 28px 24px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.login-box h1 {
margin: 0 0 6px;
font-size: 22px;
}
.login-box p {
margin: 0 0 20px;
color: var(--muted);
font-size: 13px;
}
.field {
display: grid;
gap: 6px;
margin-bottom: 14px;
}
.field label {
font-size: 12px;
color: var(--muted);
}
.field input {
background: var(--input);
border: 1px solid var(--line);
color: var(--text);
border-radius: 8px;
padding: 10px 12px;
outline: none;
}
.field input:focus {
border-color: rgba(240, 185, 11, 0.55);
}
.btn {
border: 0;
border-radius: 8px;
padding: 10px 14px;
cursor: pointer;
background: var(--accent);
color: #111;
font-weight: 600;
}
.btn.ghost {
background: transparent;
color: var(--muted);
border: 1px solid var(--line);
}
.btn.block {
width: 100%;
}
.err {
color: var(--danger);
font-size: 13px;
margin: 0 0 12px;
}
.hint {
margin-top: 12px;
color: var(--muted);
font-size: 12px;
line-height: 1.5;
}
.tag {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
border: 1px solid var(--line);
color: var(--muted);
}
.tag.up {
color: var(--up);
border-color: rgba(14, 203, 129, 0.35);
}
.tag.down {
color: var(--down);
border-color: rgba(246, 70, 93, 0.35);
}