Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 50 additions & 17 deletions web/src/routes/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,54 @@ import { TryTheApi } from '@/features/overview/TryTheApi'
import { getOverview } from '@/mock/overview'

export function Overview() {
const data = getOverview()
return (
<Shell activeNav="Overview" topBar={<OverviewTopBar status={data.status} services={data.services} />}>
<div className="flex flex-col gap-[18px] px-6 pb-8 pt-6">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
{data.kpis.map((kpi) => (
<Kpi key={kpi.label} datum={kpi} />
))}
</div>
<div className="grid grid-cols-1 gap-[18px] lg:grid-cols-2">
<ActivityFeed activity={data.activity} />
<TryTheApi examples={data.apiExamples} />
</div>
<SystemLinks links={data.systemLinks} />
</div>
</Shell>
)
const data = getOverview()
return (
<Shell
activeNav="Overview"
topBar={<OverviewTopBar status={data.status} services={data.services} />}
>
<div className="flex flex-col gap-[18px] px-6 pb-8 pt-6">
<div
role="note"
style={{
display: 'flex',
alignItems: 'center',
gap: 10,
padding: '10px 14px',
borderRadius: 10,
border: '1px solid var(--amber)',
background: 'var(--surface)',
fontSize: 12.5,
color: 'var(--text-2)',
}}
>
<span
style={{
width: 7,
height: 7,
borderRadius: '50%',
background: 'var(--amber)',
flexShrink: 0,
}}
/>
<span>
<strong style={{ color: 'var(--text)' }}>Demo overview.</strong> FinCore is
fully functional and serves a live API; the other screens read real data.
The headline metrics and activity feed on this landing page are sample
values for demonstration, not a live feed.
</span>
</div>
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
{data.kpis.map((kpi) => (
<Kpi key={kpi.label} datum={kpi} />
))}
</div>
<div className="grid grid-cols-1 gap-[18px] lg:grid-cols-2">
<ActivityFeed activity={data.activity} />
<TryTheApi examples={data.apiExamples} />
</div>
<SystemLinks links={data.systemLinks} />
</div>
</Shell>
)
}
Loading