From 66a5c4ea1793886aad80a67ad0e40aca6066bcde Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 9 Oct 2026 18:27:14 +0300 Subject: Added grayed out download icons for now --- website.templ | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'website.templ') diff --git a/website.templ b/website.templ index 8b316b9..1371351 100644 --- a/website.templ +++ b/website.templ @@ -291,9 +291,10 @@ type FlagshipInfo struct { } type Download struct { - Label string // "Linux", "Windows" - URL string - Size string // "42 MB" + Label string // "Linux", "Windows" + URL string + Size string // "42 MB" + Enabled bool } type Stat struct { @@ -370,12 +371,25 @@ templ VersionTag(project Project) { } } -templ DownloadButton(d Download) { - - @IconArchive("text-(--secondary)") - { d.Label } - if d.Size != "" { - { d.Size } +templ DownloadButton(download Download) { + + if download.Enabled { + @IconArchive("text-(--secondary)") + } else { + @IconArchive("text-(--alt)") + } + { download.Label } + if download.Size != "" { + { download.Size } } } -- cgit v1.3.1