Add dashboard mock routes

This commit is contained in:
dirtydishes 2026-05-28 04:40:10 -04:00
parent ffbdbc3376
commit b075a0994c
10 changed files with 1386 additions and 3 deletions

View file

@ -0,0 +1,458 @@
import Link from "next/link";
import type { CSSProperties, ReactNode } from "react";
type MockVariant = "mock1" | "mock2" | "mock3" | "mock4";
type DashboardMockProps = {
variant: MockVariant;
};
const variants: Record<
MockVariant,
{
title: string;
premise: string;
mode: string;
layout: string;
}
> = {
mock1: {
title: "Command Deck",
premise: "Closest to the reference: left navigation, ticker ribbon, dense evidence panes, replay rail.",
mode: "Dense ops",
layout: "classic"
},
mock2: {
title: "Investigation Stack",
premise: "A calmer analyst layout with the selected symbol story in the center and context wrapped around it.",
mode: "Forensic",
layout: "focus"
},
mock3: {
title: "Signal Wall",
premise: "Prioritizes alert triage and cross-symbol scanning before a user drills into price action.",
mode: "Triage",
layout: "signals"
},
mock4: {
title: "Replay Lab",
premise: "A replay-first structure with timeline, event tape, and causality context always visible.",
mode: "Replay",
layout: "replay"
}
};
const tickers = [
["SPY", "529.18", "+0.23%", "up"],
["QQQ", "452.47", "+0.31%", "up"],
["AAPL", "194.88", "+1.22%", "up"],
["NVDA", "120.19", "-0.41%", "down"],
["TSLA", "180.72", "+0.72%", "up"],
["AMZN", "186.31", "+0.35%", "up"],
["IWM", "205.41", "+0.21%", "up"]
];
const optionRows = [
["2m", "AAPL", "May 17", "195 C", "5,240", "$2.31M", "Sweep", "Bullish"],
["3m", "AAPL", "Jun 21", "200 C", "6,800", "$1.87M", "Block", "Bullish"],
["4m", "NVDA", "May 24", "120 C", "9,150", "$2.01M", "Split", "Bullish"],
["5m", "TSLA", "Jul 19", "205 C", "10,000", "$3.45M", "Block", "Bullish"],
["6m", "AMZN", "May 17", "185 P", "4,500", "$1.20M", "Sweep", "Bearish"],
["7m", "IWM", "Jun 21", "207 C", "3,100", "$712K", "Sweep", "Bullish"],
["8m", "AAPL", "May 24", "197.5 C", "7,600", "$2.01M", "Block", "Bullish"]
];
const signals = [
["09:41:10", "Dark Flow Sweep", "AAPL", "$4.32M", "Bullish"],
["09:40:58", "Unusual Options Activity", "NVDA", "$2.01M", "Bullish"],
["09:40:21", "News Catalyst", "AAPL", "AI update", "News"],
["09:39:47", "Classifier Hit: Momentum", "TSLA", "91%", "Bullish"],
["09:39:12", "Large Block Trade", "AMZN", "$3.67M", "Bearish"]
];
const feedHealth = [
["OPRA Options", "Healthy", "120ms", "2,341"],
["CBOE Quotes", "Healthy", "85ms", "1,987"],
["Nasdaq TotalView", "Healthy", "92ms", "3,102"],
["NYSE Pillar", "Degraded", "412ms", "932"],
["News", "Healthy", "1.2s", "12"],
["Dark Pool", "Healthy", "1.0s", "421"]
];
const darkFlow = [
["09:41:05", "AAPL", "Buy", "25,000", "$4.87M", "Sweep"],
["09:40:51", "AAPL", "Buy", "18,500", "$3.60M", "Sweep"],
["09:40:35", "AAPL", "Sell", "30,000", "$5.84M", "Block"],
["09:39:59", "AAPL", "Buy", "12,000", "$2.34M", "Sweep"],
["09:38:47", "AAPL", "Sell", "21,000", "$4.09M", "Block"]
];
const variantOrder: MockVariant[] = ["mock1", "mock2", "mock3", "mock4"];
export function DashboardMock({ variant }: DashboardMockProps) {
const config = variants[variant];
return (
<section className={`mock-terminal mock-terminal-${config.layout}`} aria-labelledby="mock-title">
<MockHeader config={config} active={variant} />
<TickerRail />
{variant === "mock1" ? <ClassicLayout /> : null}
{variant === "mock2" ? <FocusLayout /> : null}
{variant === "mock3" ? <SignalLayout /> : null}
{variant === "mock4" ? <ReplayLayout /> : null}
</section>
);
}
function MockHeader({
config,
active
}: {
config: (typeof variants)[MockVariant];
active: MockVariant;
}) {
return (
<header className="mock-header">
<div className="mock-brand-lockup">
<span className="mock-mark" aria-hidden="true" />
<div>
<span className="mock-brand">islandflow</span>
<h1 id="mock-title">{config.title}</h1>
</div>
</div>
<p>{config.premise}</p>
<div className="mock-header-tools">
<span className="mock-live-dot">Live</span>
<span className="mock-system">NATS 3ms / US-EAST-1</span>
<span className="mock-clock">09:41:23 ET</span>
<span className="mock-mode">{config.mode}</span>
</div>
<nav className="mock-switcher" aria-label="Mock variants">
{variantOrder.map((item, index) => (
<Link
aria-current={item === active ? "page" : undefined}
className={item === active ? "is-active" : ""}
href={`/${item}`}
key={item}
>
Mock {index + 1}
</Link>
))}
</nav>
</header>
);
}
function TickerRail() {
return (
<div className="mock-ticker-rail" aria-label="Live symbol ticker">
<div className="mock-ticker-track">
{[...tickers, ...tickers].map(([symbol, price, move, direction], index) => (
<article className="mock-ticker-card" key={`${symbol}-${index}`}>
<div>
<strong>{symbol}</strong>
<span>{price}</span>
</div>
<span className={`mock-move is-${direction}`}>{move}</span>
<Sparkline direction={direction} />
</article>
))}
</div>
</div>
);
}
function ClassicLayout() {
return (
<div className="mock-dashboard-grid mock-grid-classic">
<OptionTape />
<ChartPanel />
<SignalPanel />
<FeedHealth />
<DarkFlow />
<EventContext />
<ReplayRail compact />
</div>
);
}
function FocusLayout() {
return (
<div className="mock-dashboard-grid mock-grid-focus">
<SymbolBrief />
<ChartPanel />
<EventContext />
<OptionTape condensed />
<SignalPanel />
<DarkFlow />
</div>
);
}
function SignalLayout() {
return (
<div className="mock-dashboard-grid mock-grid-signals">
<SignalPanel hero />
<OptionTape />
<ChartPanel compact />
<FeedHealth />
<EventContext />
</div>
);
}
function ReplayLayout() {
return (
<div className="mock-dashboard-grid mock-grid-replay">
<ReplayRail />
<ChartPanel />
<EventContext />
<OptionTape condensed />
<SignalPanel />
<DarkFlow />
</div>
);
}
function Panel({
title,
meta,
className = "",
children
}: {
title: string;
meta?: string;
className?: string;
children: ReactNode;
}) {
return (
<section className={`mock-panel ${className}`} aria-label={title}>
<div className="mock-panel-head">
<h2>{title}</h2>
{meta ? <span>{meta}</span> : null}
</div>
{children}
</section>
);
}
function OptionTape({ condensed = false }: { condensed?: boolean }) {
const rows = condensed ? optionRows.slice(0, 5) : optionRows;
return (
<Panel title="Option Flow Tape" meta="250+ shown" className="mock-option-tape">
<div className="mock-table mock-table-options">
<div className="mock-table-row mock-table-head">
<span>Time</span>
<span>Symbol</span>
<span>Exp</span>
<span>Strike</span>
<span>Size</span>
<span>Prem</span>
<span>Type</span>
<span>Score</span>
</div>
{rows.map((row) => (
<div className="mock-table-row" key={`${row[0]}-${row[1]}-${row[3]}`}>
{row.map((cell, index) => (
<span
className={
index === 6
? "mock-pill is-info"
: index === 7
? `mock-pill ${cell === "Bearish" ? "is-bearish" : "is-bullish"}`
: ""
}
key={cell}
>
{cell}
</span>
))}
</div>
))}
</div>
</Panel>
);
}
function ChartPanel({ compact = false }: { compact?: boolean }) {
return (
<Panel title="AAPL | Price & Flow" meta="1m / 5m / 15m" className={compact ? "mock-chart is-compact" : "mock-chart"}>
<div className="mock-chart-meta">
<strong>194.88</strong>
<span className="mock-move is-up">+2.34 (+1.22%)</span>
</div>
<div className="mock-candle-field" aria-hidden="true">
{Array.from({ length: 58 }).map((_, index) => (
<span
className={index % 7 === 0 || index % 11 === 0 ? "is-red" : "is-green"}
key={index}
style={{ "--height": `${18 + ((index * 17) % 62)}%` } as CSSProperties}
/>
))}
</div>
<div className="mock-volume-field" aria-hidden="true">
{Array.from({ length: 42 }).map((_, index) => (
<span
className={index % 6 === 0 ? "is-red" : "is-green"}
key={index}
style={{ "--height": `${14 + ((index * 23) % 68)}%` } as CSSProperties}
/>
))}
</div>
</Panel>
);
}
function SignalPanel({ hero = false }: { hero?: boolean }) {
return (
<Panel title="Signals & Alerts" meta="All / Signals / System" className={hero ? "mock-signals is-hero" : "mock-signals"}>
<div className="mock-signal-list">
{signals.map(([time, title, symbol, value, tag]) => (
<article className="mock-signal-item" key={`${time}-${title}`}>
<time>{time}</time>
<div>
<strong>{title}</strong>
<span>{symbol} / {value}</span>
</div>
<span className={`mock-pill ${tag === "Bearish" ? "is-bearish" : tag === "News" ? "is-news" : "is-bullish"}`}>
{tag}
</span>
</article>
))}
</div>
</Panel>
);
}
function FeedHealth() {
return (
<Panel title="Feed Health" meta="Live checks" className="mock-feed">
<div className="mock-table mock-table-feed">
{feedHealth.map(([feed, status, lag, rate]) => (
<div className="mock-table-row" key={feed}>
<span>{feed}</span>
<span className={`mock-pill ${status === "Degraded" ? "is-warning" : "is-bullish"}`}>{status}</span>
<span>{lag}</span>
<span>{rate}/s</span>
</div>
))}
</div>
</Panel>
);
}
function DarkFlow() {
return (
<Panel title="Dark Flow" meta="Equity prints" className="mock-dark-flow">
<div className="mock-table mock-table-dark">
{darkFlow.map(([time, symbol, side, size, notional, type]) => (
<div className="mock-table-row" key={`${time}-${side}-${size}`}>
<span>{time}</span>
<strong>{symbol}</strong>
<span className={`mock-pill ${side === "Sell" ? "is-bearish" : "is-bullish"}`}>{side}</span>
<span>{size}</span>
<span>{notional}</span>
<span>{type}</span>
</div>
))}
</div>
</Panel>
);
}
function EventContext() {
return (
<Panel title="Event Context" meta="Window: 15m" className="mock-context">
<div className="mock-event-layout">
<ol className="mock-timeline">
{signals.slice(0, 4).map(([time, title, symbol]) => (
<li key={`${time}-${title}`}>
<time>{time}</time>
<strong>{title}</strong>
<span>{symbol} evidence linked</span>
</li>
))}
</ol>
<div className="mock-detail">
<h3>Why it fired</h3>
<dl>
<div>
<dt>Type</dt>
<dd>Dark Flow Sweep</dd>
</div>
<div>
<dt>Premium</dt>
<dd>$4.32M</dd>
</div>
<div>
<dt>Venue</dt>
<dd>Off-exchange</dd>
</div>
<div>
<dt>Tags</dt>
<dd>Bullish / Sweep / Call</dd>
</div>
</dl>
</div>
</div>
</Panel>
);
}
function ReplayRail({ compact = false }: { compact?: boolean }) {
return (
<Panel title="Replay" meta="May 16, 2024" className={compact ? "mock-replay is-compact" : "mock-replay"}>
<div className="mock-replay-controls">
<button type="button">Prev</button>
<button type="button">Pause</button>
<button type="button">Next</button>
<span>32x</span>
</div>
<div className="mock-replay-track">
<span className="mock-replay-window" />
<span className="mock-replay-now" />
</div>
<div className="mock-replay-times">
<span>09:00</span>
<strong>09:41:23 / Live</strong>
<span>10:15</span>
</div>
</Panel>
);
}
function SymbolBrief() {
return (
<Panel title="AAPL Evidence Brief" meta="Focused symbol" className="mock-symbol-brief">
<div className="mock-brief-price">
<strong>194.88</strong>
<span className="mock-move is-up">+1.22%</span>
</div>
<p>
Dark sweep pressure aligns with short-window momentum and a fresh news catalyst. Context confidence is high, but
the largest block remains off-exchange and should be checked against next print behavior.
</p>
<div className="mock-brief-tags">
<span className="mock-pill is-bullish">Bullish</span>
<span className="mock-pill is-info">Sweep</span>
<span className="mock-pill is-news">News linked</span>
</div>
</Panel>
);
}
function Sparkline({ direction }: { direction: string }) {
return (
<svg className="mock-sparkline" viewBox="0 0 96 28" role="img" aria-label={`${direction} sparkline`}>
<polyline
fill="none"
points={
direction === "down"
? "0,8 9,12 18,10 27,17 36,14 45,21 54,18 63,23 72,19 81,24 96,20"
: "0,22 9,18 18,20 27,13 36,15 45,9 54,12 63,6 72,10 81,4 96,7"
}
/>
</svg>
);
}

View file

@ -2362,3 +2362,711 @@ h3 {
border-radius: 14px;
}
}
.mock-terminal {
min-height: calc(100vh - var(--topbar-height));
padding: 18px;
color: var(--text);
background:
linear-gradient(180deg, oklch(0.18 0.018 238 / 0.8), transparent 220px),
linear-gradient(135deg, oklch(0.12 0.015 230), oklch(0.1 0.012 255));
}
.mock-header {
display: grid;
grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr) auto;
gap: 14px;
align-items: center;
margin-bottom: 12px;
}
.mock-brand-lockup {
min-width: 0;
display: flex;
align-items: center;
gap: 11px;
}
.mock-mark {
width: 34px;
height: 34px;
border-radius: 9px;
background:
linear-gradient(135deg, oklch(0.68 0.14 246), oklch(0.68 0.12 164)),
var(--blue-soft);
box-shadow: inset 0 0 0 1px oklch(0.94 0.02 240 / 0.24);
}
.mock-brand {
display: block;
color: var(--text-dim);
font-family: var(--font-mono), monospace;
font-size: 0.74rem;
letter-spacing: 0.12em;
text-transform: lowercase;
}
.mock-header h1 {
margin: 2px 0 0;
font-family: var(--font-display), sans-serif;
font-size: 1.28rem;
line-height: 1.08;
letter-spacing: 0;
}
.mock-header p {
max-width: 72ch;
margin: 0;
color: var(--text-dim);
font-size: 0.9rem;
}
.mock-header-tools,
.mock-switcher {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
flex-wrap: wrap;
}
.mock-header-tools span,
.mock-switcher a {
min-height: 30px;
display: inline-flex;
align-items: center;
border: 1px solid var(--border);
border-radius: 8px;
padding: 6px 9px;
background: oklch(0.97 0.008 250 / 0.035);
color: var(--text-dim);
font-family: var(--font-mono), monospace;
font-size: 0.68rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.mock-live-dot {
color: var(--green) !important;
background: var(--green-soft) !important;
}
.mock-mode,
.mock-switcher a.is-active {
color: var(--accent) !important;
border-color: var(--border-strong) !important;
background: var(--accent-soft) !important;
}
.mock-switcher {
grid-column: 1 / -1;
justify-content: flex-start;
}
.mock-ticker-rail {
overflow: hidden;
margin-bottom: 10px;
border: 1px solid var(--border);
border-radius: 10px;
background: oklch(0.13 0.015 245 / 0.94);
}
.mock-ticker-track {
display: flex;
width: max-content;
gap: 8px;
padding: 7px;
animation: mockTicker 42s linear infinite;
}
.mock-ticker-card {
width: 176px;
min-height: 48px;
display: grid;
grid-template-columns: 1fr auto;
gap: 7px;
align-items: center;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: linear-gradient(180deg, oklch(0.18 0.017 244), oklch(0.14 0.014 244));
}
.mock-ticker-card div {
display: grid;
gap: 2px;
}
.mock-ticker-card strong,
.mock-table strong {
font-family: var(--font-mono), monospace;
}
.mock-ticker-card span {
color: var(--text-dim);
font-size: 0.75rem;
}
.mock-sparkline {
grid-column: 1 / -1;
width: 100%;
height: 22px;
}
.mock-sparkline polyline {
stroke: var(--green);
stroke-width: 2;
}
.mock-ticker-card:has(.is-down) .mock-sparkline polyline {
stroke: var(--red);
}
.mock-dashboard-grid {
display: grid;
gap: 10px;
}
.mock-grid-classic {
grid-template-columns: minmax(420px, 1.18fr) minmax(420px, 1.48fr) minmax(320px, 0.95fr);
grid-template-areas:
"tape chart signals"
"feed dark context"
"replay replay replay";
}
.mock-grid-focus {
grid-template-columns: minmax(280px, 0.78fr) minmax(480px, 1.45fr) minmax(360px, 0.95fr);
grid-template-areas:
"brief chart context"
"tape chart context"
"signals dark context";
}
.mock-grid-signals {
grid-template-columns: minmax(360px, 0.92fr) minmax(440px, 1.15fr) minmax(360px, 0.9fr);
grid-template-areas:
"signals tape chart"
"signals tape feed"
"context context context";
}
.mock-grid-replay {
grid-template-columns: minmax(340px, 0.95fr) minmax(460px, 1.25fr) minmax(360px, 0.9fr);
grid-template-areas:
"replay replay replay"
"tape chart context"
"signals dark context";
}
.mock-panel {
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: 10px;
background: linear-gradient(180deg, oklch(0.18 0.016 246 / 0.98), oklch(0.135 0.014 246 / 0.98));
}
.mock-panel-head {
min-height: 40px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
}
.mock-panel-head h2 {
margin: 0;
font-family: var(--font-mono), monospace;
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.mock-panel-head span {
color: var(--text-faint);
font-family: var(--font-mono), monospace;
font-size: 0.68rem;
}
.mock-option-tape {
grid-area: tape;
}
.mock-chart {
grid-area: chart;
}
.mock-signals {
grid-area: signals;
}
.mock-feed {
grid-area: feed;
}
.mock-dark-flow {
grid-area: dark;
}
.mock-context {
grid-area: context;
}
.mock-replay {
grid-area: replay;
}
.mock-symbol-brief {
grid-area: brief;
}
.mock-table {
display: grid;
padding: 6px 10px 10px;
}
.mock-table-row {
min-height: 36px;
display: grid;
gap: 10px;
align-items: center;
border-bottom: 1px solid oklch(0.72 0.012 250 / 0.09);
color: var(--text-dim);
font-size: 0.76rem;
}
.mock-table-row:last-child {
border-bottom: 0;
}
.mock-table-head {
min-height: 30px;
color: var(--text-faint);
font-family: var(--font-mono), monospace;
font-size: 0.64rem;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.mock-table-options .mock-table-row {
grid-template-columns: 42px 58px 70px 64px 68px 72px 68px 76px;
}
.mock-table-feed .mock-table-row {
grid-template-columns: minmax(110px, 1fr) 86px 58px 70px;
}
.mock-table-dark .mock-table-row {
grid-template-columns: 72px 56px 64px 74px 78px 64px;
}
.mock-pill {
width: fit-content;
max-width: 100%;
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 3px 7px;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--text-dim);
font-family: var(--font-mono), monospace;
font-size: 0.64rem;
letter-spacing: 0.02em;
}
.mock-pill.is-bullish {
color: var(--green);
background: var(--green-soft);
}
.mock-pill.is-bearish {
color: var(--red);
background: var(--red-soft);
}
.mock-pill.is-info,
.mock-pill.is-news {
color: var(--blue);
background: var(--blue-soft);
}
.mock-pill.is-warning {
color: var(--accent);
background: var(--accent-soft);
}
.mock-move {
font-family: var(--font-mono), monospace;
font-size: 0.72rem;
}
.mock-move.is-up {
color: var(--green);
}
.mock-move.is-down {
color: var(--red);
}
.mock-chart {
min-height: 326px;
}
.mock-chart.is-compact {
min-height: 240px;
}
.mock-chart-meta {
display: flex;
align-items: baseline;
gap: 10px;
padding: 10px 12px 0;
}
.mock-chart-meta strong,
.mock-brief-price strong {
font-family: var(--font-mono), monospace;
font-size: 1rem;
}
.mock-candle-field {
position: relative;
height: 190px;
margin: 8px 12px 0;
display: flex;
align-items: end;
gap: 4px;
padding: 12px 0;
border-top: 1px solid oklch(0.72 0.012 250 / 0.08);
border-bottom: 1px solid oklch(0.72 0.012 250 / 0.08);
background:
repeating-linear-gradient(0deg, transparent 0 38px, oklch(0.72 0.012 250 / 0.08) 39px 40px),
linear-gradient(180deg, oklch(0.16 0.018 246), oklch(0.12 0.014 246));
}
.mock-chart.is-compact .mock-candle-field {
height: 126px;
}
.mock-candle-field span {
width: 5px;
height: var(--height);
min-height: 18px;
border-radius: 4px;
}
.mock-candle-field .is-green,
.mock-volume-field .is-green {
background: var(--green);
}
.mock-candle-field .is-red,
.mock-volume-field .is-red {
background: var(--red);
}
.mock-volume-field {
height: 70px;
display: flex;
align-items: end;
gap: 5px;
padding: 9px 12px 12px;
}
.mock-chart.is-compact .mock-volume-field {
height: 54px;
}
.mock-volume-field span {
width: 7px;
height: var(--height);
min-height: 8px;
opacity: 0.85;
}
.mock-signal-list {
display: grid;
padding: 6px 10px 10px;
}
.mock-signal-item {
min-height: 58px;
display: grid;
grid-template-columns: 70px minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
border-bottom: 1px solid oklch(0.72 0.012 250 / 0.09);
}
.mock-signal-item:last-child {
border-bottom: 0;
}
.mock-signal-item time,
.mock-timeline time {
color: var(--text-faint);
font-family: var(--font-mono), monospace;
font-size: 0.72rem;
}
.mock-signal-item div {
min-width: 0;
display: grid;
gap: 3px;
}
.mock-signal-item strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.82rem;
}
.mock-signal-item span:not(.mock-pill) {
color: var(--text-dim);
font-size: 0.75rem;
}
.mock-signals.is-hero .mock-signal-item {
min-height: 74px;
}
.mock-event-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
gap: 10px;
padding: 10px;
}
.mock-timeline {
display: grid;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.mock-timeline li {
display: grid;
gap: 4px;
padding: 9px;
border: 1px solid oklch(0.72 0.012 250 / 0.1);
border-radius: 8px;
background: oklch(0.97 0.008 250 / 0.028);
}
.mock-timeline strong {
font-size: 0.8rem;
}
.mock-timeline span,
.mock-detail dd,
.mock-symbol-brief p {
color: var(--text-dim);
font-size: 0.78rem;
}
.mock-detail {
padding: 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: oklch(0.12 0.014 246 / 0.72);
}
.mock-detail h3 {
margin: 0 0 10px;
font-size: 0.86rem;
}
.mock-detail dl {
display: grid;
gap: 9px;
margin: 0;
}
.mock-detail div {
display: flex;
justify-content: space-between;
gap: 10px;
}
.mock-detail dt {
color: var(--text-faint);
font-family: var(--font-mono), monospace;
font-size: 0.65rem;
text-transform: uppercase;
}
.mock-detail dd {
margin: 0;
text-align: right;
}
.mock-replay {
min-height: 112px;
}
.mock-replay-controls {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 12px 0;
}
.mock-replay-controls button {
min-height: 30px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg-soft);
color: var(--text);
cursor: pointer;
}
.mock-replay-controls span {
color: var(--text-faint);
font-family: var(--font-mono), monospace;
font-size: 0.72rem;
}
.mock-replay-track {
position: relative;
height: 26px;
margin: 12px;
border: 1px solid var(--border);
border-radius: 8px;
background:
repeating-linear-gradient(90deg, transparent 0 22px, oklch(0.72 0.012 250 / 0.18) 23px 24px),
oklch(0.11 0.014 246);
}
.mock-replay-window {
position: absolute;
inset: 6px 28% 6px 42%;
border-radius: 999px;
background: var(--blue);
}
.mock-replay-now {
position: absolute;
top: 2px;
bottom: 2px;
left: 62%;
width: 3px;
border-radius: 999px;
background: var(--green);
}
.mock-replay-times {
display: flex;
justify-content: space-between;
padding: 0 12px 12px;
color: var(--text-faint);
font-family: var(--font-mono), monospace;
font-size: 0.68rem;
}
.mock-replay-times strong {
color: var(--green);
}
.mock-symbol-brief {
padding-bottom: 12px;
}
.mock-brief-price,
.mock-brief-tags {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 12px 0;
flex-wrap: wrap;
}
.mock-symbol-brief p {
margin: 12px 12px 0;
}
@keyframes mockTicker {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}
@media (prefers-reduced-motion: reduce) {
.mock-ticker-track {
animation: none;
}
}
@media (max-width: 1180px) {
.mock-header {
grid-template-columns: 1fr;
}
.mock-header-tools,
.mock-switcher {
justify-content: flex-start;
}
.mock-grid-classic,
.mock-grid-focus,
.mock-grid-signals,
.mock-grid-replay {
grid-template-columns: 1fr;
grid-template-areas:
"replay"
"brief"
"signals"
"chart"
"tape"
"context"
"feed"
"dark";
}
.mock-grid-classic {
grid-template-areas:
"tape"
"chart"
"signals"
"feed"
"dark"
"context"
"replay";
}
}
@media (max-width: 720px) {
.mock-terminal {
padding: 12px;
}
.mock-table {
overflow-x: auto;
}
.mock-table-row {
width: max-content;
min-width: 100%;
}
.mock-event-layout {
grid-template-columns: 1fr;
}
.mock-signal-item {
grid-template-columns: 62px minmax(0, 1fr);
}
.mock-signal-item .mock-pill {
grid-column: 2;
}
}

View file

@ -22,7 +22,7 @@ const mono = IBM_Plex_Mono({
});
export const metadata = {
title: "Islandflow Terminal",
title: "islandflow terminal",
description: "Realtime options flow and off-exchange analysis terminal"
};

View file

@ -0,0 +1,7 @@
import { DashboardMock } from "../dashboard-mocks";
export const dynamic = "force-dynamic";
export default function Mock1Page() {
return <DashboardMock variant="mock1" />;
}

View file

@ -0,0 +1,7 @@
import { DashboardMock } from "../dashboard-mocks";
export const dynamic = "force-dynamic";
export default function Mock2Page() {
return <DashboardMock variant="mock2" />;
}

View file

@ -0,0 +1,7 @@
import { DashboardMock } from "../dashboard-mocks";
export const dynamic = "force-dynamic";
export default function Mock3Page() {
return <DashboardMock variant="mock3" />;
}

View file

@ -0,0 +1,7 @@
import { DashboardMock } from "../dashboard-mocks";
export const dynamic = "force-dynamic";
export default function Mock4Page() {
return <DashboardMock variant="mock4" />;
}

View file

@ -8958,7 +8958,7 @@ export function TerminalAppShell({ children }: { children: ReactNode }) {
<div className="terminal-drawer-head">
<div className="terminal-brand">
<span className="terminal-brand-kicker">IF</span>
<span className="terminal-brand-name">Islandflow</span>
<span className="terminal-brand-name">islandflow</span>
</div>
<button
aria-label="Close navigation drawer"