diff --git a/apps/website/src/assets/boxicons/bx-arrow-in-down-square-half.svg b/apps/website/src/assets/boxicons/bx-arrow-in-down-square-half.svg new file mode 100644 index 000000000..6f4f20ac7 --- /dev/null +++ b/apps/website/src/assets/boxicons/bx-arrow-in-down-square-half.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/website/src/components/Button.css b/apps/website/src/components/Button.css index 8c3355fcf..d79e17ec0 100644 --- a/apps/website/src/components/Button.css +++ b/apps/website/src/components/Button.css @@ -6,4 +6,5 @@ a.button { color: var(--brand-foreground-color); text-decoration: none; text-align: center; + box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); } \ No newline at end of file diff --git a/apps/website/src/components/Button.tsx b/apps/website/src/components/Button.tsx index 9874e8aee..6c1e8a422 100644 --- a/apps/website/src/components/Button.tsx +++ b/apps/website/src/components/Button.tsx @@ -7,12 +7,13 @@ interface ButtonProps { iconSvg?: string; text: ComponentChildren; openExternally?: boolean; + className?: string; } -export default function Button({ href, iconSvg, openExternally, text }: ButtonProps) { +export default function Button({ href, iconSvg, openExternally, text, className }: ButtonProps) { return ( diff --git a/apps/website/src/components/DownloadButton.css b/apps/website/src/components/DownloadButton.css index c67f84b04..864088dc6 100644 --- a/apps/website/src/components/DownloadButton.css +++ b/apps/website/src/components/DownloadButton.css @@ -1,10 +1,4 @@ .download-button { - text-decoration: none; - background: var(--brand-1); - padding: 0.5em 1em; - border-radius: 6px; - color: white; - box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); display: none; } diff --git a/apps/website/src/components/DownloadButton.tsx b/apps/website/src/components/DownloadButton.tsx index 0c19c7d55..18e150026 100644 --- a/apps/website/src/components/DownloadButton.tsx +++ b/apps/website/src/components/DownloadButton.tsx @@ -1,17 +1,24 @@ import { getRecommendedDownload } from "../download-helper"; import "./DownloadButton.css"; +import Button from "./Button"; +import downloadIcon from "../assets/boxicons/bx-arrow-in-down-square-half.svg?raw"; interface DownloadButtonProps { big?: boolean; } -const { architecture, platform, url } = getRecommendedDownload(); +const { name, url } = getRecommendedDownload(); export default function DownloadButton({ big }: DownloadButtonProps) { return ( - - Download now{" "} - {platform} {architecture} - +