Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add landing page for HELM Capabilities leaderboard #3241

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
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
40 changes: 40 additions & 0 deletions helm-frontend/src/components/Landing/CapabilitiesLanding.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import MiniLeaderboard from "@/components/MiniLeaderboard";
import { Link } from "react-router-dom";

export default function CapabilitiesLanding() {
return (
<div className="container mx-auto px-16">
<h1 className="text-3xl my-8 font-bold text-center">HELM Capabilities</h1>
<div className="flex flex-col lg:flex-row gap-8">
<div className="flex-1 text-l">
<p>
HELM Capabilities is a new leaderboard for benchmarking the
capabilities of foundation models, featuring 6 challenging
scenarios.
</p>
<div className="flex flex-row justify-center my-4">
<Link to="#" className="px-10 btn rounded-md mx-4">
Blog Post
</Link>
<Link to="leaderboard" className="px-10 btn rounded-md mx-4">
Leaderboard
</Link>
</div>
</div>
<div
className="py-2 pb-6 rounded-3xl bg-gray-100 h-full" // Stretched to full height
style={{ maxWidth: "100%" }}
>
<MiniLeaderboard />
<div className="flex justify-end">
<Link to="leaderboard">
<button className="px-4 mx-3 mt-1 btn bg-white rounded-md">
<span>See More</span>
</button>
</Link>
</div>
</div>
</div>
</div>
);
}
3 changes: 3 additions & 0 deletions helm-frontend/src/routes/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Image2StructLanding from "@/components/Landing/Image2StructLanding";
import EWoKLanding from "@/components/Landing/EWoKLanding";
import MedicalLanding from "@/components/Landing/MedicalLanding";
import SafetyLanding from "@/components/Landing/SafetyLanding";
import CapabilitiesLanding from "@/components/Landing/CapabilitiesLanding";

export default function Home() {
// TODO consider a more streamlined way to do this?
Expand Down Expand Up @@ -47,6 +48,8 @@ export default function Home() {
return <MedicalLanding />;
} else if (window.PROJECT_ID === "safety") {
return <SafetyLanding />;
} else if (window.PROJECT_ID === "capabilities") {
return <CapabilitiesLanding />;
} else if (window.PROJECT_ID === "home") {
return <HomeLanding />;
} else {
Expand Down
Loading