Skip to content

Commit e22c99c

Browse files
Add submissions CTA to landing page (#478)
* Add submissions CTA to landing page * Fix submissions CTA navigation
1 parent 97d1435 commit e22c99c

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

packages/app/cypress/e2e/navigation.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,9 @@ describe('First-load navigation', () => {
7676
cy.contains('a', 'Open Dashboard').click();
7777
cy.location('pathname').should('eq', '/inference');
7878
});
79+
80+
it('navigates to submissions from the landing CTA', () => {
81+
cy.get('[data-testid="landing-submissions-link"]').click();
82+
cy.location('pathname').should('eq', '/submissions');
83+
});
7984
});

packages/app/src/components/landing/landing-page.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ export function LandingPage() {
7272
full logs and artifacts are publicly viewable. Click any point on a chart to jump
7373
straight to the run that produced it. All reproducible, auditable, and open source.
7474
</p>
75+
<p className="text-sm text-muted-foreground mb-4">
76+
<span className="font-semibold text-foreground">
77+
1,000+ new benchmark datapoints added per week on average.
78+
</span>{' '}
79+
Browse every new model, GPU, framework, and configuration as it lands.
80+
</p>
7581
<div className="grid grid-cols-1 sm:grid-cols-3 gap-3 mb-4">
7682
<div className="rounded-md border border-border bg-card p-3">
7783
<div className="text-sm font-semibold text-foreground">Public Actions runs</div>
@@ -96,12 +102,24 @@ export function LandingPage() {
96102
</div>
97103
</div>
98104
<div className="flex flex-wrap gap-3 text-sm">
105+
<Link
106+
href="/submissions"
107+
data-testid="landing-submissions-link"
108+
onClick={(e) => {
109+
track('landing_submissions_clicked');
110+
navigateInApp(e, router, '/submissions');
111+
}}
112+
className="inline-flex items-center gap-1.5 rounded-md bg-brand text-primary-foreground hover:bg-brand/90 px-3 py-1.5 transition-colors font-medium"
113+
>
114+
Browse submissions
115+
<ArrowRight className="size-3.5" />
116+
</Link>
99117
<a
100118
href={`https://github.com/${GITHUB_OWNER}/${GITHUB_REPO}/actions?query=branch%3Amain+event%3Apush`}
101119
target="_blank"
102120
rel="noopener noreferrer"
103121
onClick={() => track('landing_reproducibility_actions_clicked')}
104-
className="inline-flex items-center gap-1.5 rounded-md bg-brand text-primary-foreground hover:bg-brand/90 px-3 py-1.5 transition-colors font-medium"
122+
className="inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 hover:bg-accent transition-colors"
105123
>
106124
View benchmark runs on GitHub Actions
107125
<ArrowRight className="size-3.5" />

0 commit comments

Comments
 (0)