chore(website): reimplement download button

This commit is contained in:
Elian Doran
2025-09-26 23:28:58 +03:00
parent 772d4ac5a1
commit 68ef6ea142
6 changed files with 36 additions and 34 deletions

View File

@@ -0,0 +1,17 @@
import { useLayoutEffect } from "preact/hooks";
import { getRecommendedDownload } from "../download-helper";
interface DownloadButtonProps {
big?: boolean;
}
const { architecture, platform, url } = getRecommendedDownload();
export default function DownloadButton({ big }: DownloadButtonProps) {
return (
<a className={`download-button ${big ? "big" : ""}`} href={url}>
Download now{" "}
<span class="platform">{platform} {architecture}</span>
</a>
)
}