Skip to content

Commit 67f8872

Browse files
committed
feat: add GitHub repo link to header
Add a GitHub icon next to the Benchmarks logo that links back to https://github.com/vltpkg/benchmarks, making it easy for visitors to find the source code and methodology.
1 parent f5bf8c1 commit 67f8872

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

app/src/components/header.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useLocation, NavLink } from "react-router";
33
import { PackageManagerFilter } from "@/components/package-manager-filter";
44
import { FixtureFilter } from "@/components/fixture-filter";
55
import { VariationDropdown } from "@/components/variation-dropdown";
6-
import { Benchmarks, Package, StopWatch, Database } from "@/components/icons";
6+
import { Benchmarks, Github, Package, StopWatch, Database } from "@/components/icons";
77
import { Button } from "@/components/ui/button";
88
import { format } from "date-fns";
99
import {
@@ -247,6 +247,15 @@ const HeaderLogo = forwardRef<HTMLDivElement, ComponentProps<"div">>(
247247
)}
248248
</span>
249249
)}
250+
<a
251+
href="https://github.com/vltpkg/benchmarks"
252+
target="_blank"
253+
rel="noopener noreferrer"
254+
className="text-muted-foreground hover:text-foreground transition-colors ml-1"
255+
title="View source on GitHub"
256+
>
257+
<Github className="size-5" />
258+
</a>
250259
</div>
251260
);
252261
},

0 commit comments

Comments
 (0)