Skip to content

Commit

Permalink
Add landing page for HELM Capabilities leaderboard (#3241)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai authored Dec 20, 2024
1 parent d74392d commit 66eba9f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
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

0 comments on commit 66eba9f

Please sign in to comment.