mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-31 05:15:32 +00:00
fix(stats): reorder market share section
This commit is contained in:
parent
c977cb7f31
commit
aa22cf841d
1 changed files with 6 additions and 6 deletions
|
|
@ -38,9 +38,9 @@ const statsUnfurlAlt = "OpenCode Stats wordmark on a dark patterned background"
|
|||
const headerLinks = [
|
||||
{ href: "#top-models", label: "Top Models" },
|
||||
{ href: "#leaderboard", label: "Leaderboard" },
|
||||
{ href: "#market-share", label: "Market Share" },
|
||||
{ href: "#token-cost", label: "Token Cost" },
|
||||
{ href: "#session-cost", label: "Session Cost" },
|
||||
{ href: "#market-share", label: "Market Share" },
|
||||
] as const
|
||||
const githubLink = {
|
||||
href: "https://github.com/anomalyco/opencode",
|
||||
|
|
@ -160,9 +160,9 @@ export default function StatsHome() {
|
|||
<>
|
||||
<Hero updatedAt={stats().updatedAt} />
|
||||
<TopModelsSection data={stats().usage} leaderboard={stats().leaderboard} />
|
||||
<MarketShareSection data={stats().market} />
|
||||
<TokenCostSection data={stats().tokenCost} />
|
||||
<SessionCostSection data={stats().sessionCost} />
|
||||
<MarketShareSection data={stats().market} />
|
||||
</>
|
||||
)}
|
||||
</Show>
|
||||
|
|
@ -913,7 +913,7 @@ function MarketShareSection(props: { data: StatsHomeData["market"] }) {
|
|||
setInspecting(false)
|
||||
}}
|
||||
>
|
||||
<SectionBridge label="LEADERBOARD" href="#leaderboard" />
|
||||
<SectionBridge label="SESSION COST" href="#session-cost" />
|
||||
<SectionTitle title="Market Share" description="Compare token share by model author." />
|
||||
<Show
|
||||
when={activeDay()}
|
||||
|
|
@ -1154,7 +1154,7 @@ function TokenCostSection(props: { data: StatsHomeData["tokenCost"] }) {
|
|||
|
||||
return (
|
||||
<section id="token-cost" data-section="token-cost">
|
||||
<SectionBridge label="MARKET SHARE" href="#market-share" />
|
||||
<SectionBridge label="LEADERBOARD" href="#leaderboard" />
|
||||
<SectionTitle title="Token Cost" description="Price per 1M tokens." />
|
||||
<Show
|
||||
when={visible().length > 0}
|
||||
|
|
@ -1509,9 +1509,9 @@ function Footer(props: {
|
|||
const modelStats = [
|
||||
{ href: "#top-models", label: "Top Models" },
|
||||
{ href: "#leaderboard", label: "Leaderboard" },
|
||||
{ href: "#market-share", label: "Market Share" },
|
||||
{ href: "#token-cost", label: "Token Cost" },
|
||||
{ href: "#session-cost", label: "Session Cost" },
|
||||
{ href: "#market-share", label: "Market Share" },
|
||||
]
|
||||
const legal = [
|
||||
{ href: "https://opencode.ai/legal/terms-of-service", label: "Terms of service" },
|
||||
|
|
@ -1527,7 +1527,7 @@ function Footer(props: {
|
|||
|
||||
return (
|
||||
<footer data-component="footer">
|
||||
<SectionBridge label="SESSION COST" href="#session-cost" />
|
||||
<SectionBridge label="MARKET SHARE" href="#market-share" />
|
||||
<div data-slot="footer-grid">
|
||||
<a data-slot="footer-mark" href="https://opencode.ai" aria-label="OpenCode home">
|
||||
<OpenCodeMark />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue