Skip to content

Commit 1a9b12c

Browse files
committed
feat: hide windows and linux download buttons for pure mac build mapping
1 parent cb1e1af commit 1a9b12c

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

src/components/DownloadsSection.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ export function DownloadsSection() {
5656
const macLink = latestRelease ? getTargetAssetUrl(latestRelease.assets, ".dmg") : "/downloads/v0.2.1-beta/Devian_Desktop_0.2.1_aarch64.dmg";
5757
const macSize = latestRelease ? getTargetAssetSize(latestRelease.assets, ".dmg") : "9.8 MB";
5858

59-
const winLink = latestRelease ? getTargetAssetUrl(latestRelease.assets, ".msi") || getTargetAssetUrl(latestRelease.assets, ".exe") : "/downloads/v0.2.1-beta/Devian.Desktop_0.2.1_x64_en-US.msi";
60-
const winSize = latestRelease ? getTargetAssetSize(latestRelease.assets, ".msi") || getTargetAssetSize(latestRelease.assets, ".exe") : "3.3 MB";
61-
62-
const linuxLink = latestRelease ? getTargetAssetUrl(latestRelease.assets, ".deb") : "/downloads/v0.2.1-beta/Devian.Desktop_0.2.1_amd64.deb";
63-
const linuxSize = latestRelease ? getTargetAssetSize(latestRelease.assets, ".deb") : "4.2 MB";
64-
6559
const handleCopyCommand = () => {
6660
navigator.clipboard.writeText("brew install --cask --no-quarantine devian-labs/tap/devian-desktop");
6761
setCopied(true);
@@ -124,30 +118,6 @@ export function DownloadsSection() {
124118
{macSize && <div className="text-xs text-black/50 font-medium mt-1">{macSize}</div>}
125119
</div>
126120
</a>
127-
128-
{/* Windows */}
129-
<a href={winLink || "#"} download={!!winLink} className={`bg-white hover:bg-white/90 text-black p-5 md:p-8 rounded-[24px] md:rounded-[32px] flex items-center justify-center gap-4 md:gap-6 transition-all group flex-1 w-full sm:min-w-[300px] ${winLink ? "cursor-pointer shadow-[0_0_40px_rgba(255,255,255,0.1)] hover:shadow-[0_0_60px_rgba(255,255,255,0.2)] hover:scale-[1.02]" : "opacity-50 grayscale cursor-not-allowed"}`}>
130-
<div className="h-10 w-10 md:h-16 md:w-16 bg-[#F5F5F7] rounded-xl md:rounded-2xl flex items-center justify-center shadow-inner shrink-0">
131-
<Monitor className="h-5 w-5 md:h-8 md:w-8 text-black" />
132-
</div>
133-
<div className="text-left">
134-
<div className="text-[10px] md:text-xs font-bold uppercase tracking-widest text-black/50 mb-1">Windows (x64)</div>
135-
<div className="text-lg md:text-2xl font-black">{winLink ? "Download .msi" : "Coming Soon"}</div>
136-
{winSize && <div className="text-xs text-black/50 font-medium mt-1">{winSize}</div>}
137-
</div>
138-
</a>
139-
140-
{/* Linux */}
141-
<a href={linuxLink || "#"} download={!!linuxLink} className={`bg-white hover:bg-white/90 text-black p-5 md:p-8 rounded-[24px] md:rounded-[32px] flex items-center justify-center gap-4 md:gap-6 transition-all group flex-1 w-full sm:min-w-[300px] ${linuxLink ? "cursor-pointer shadow-[0_0_40px_rgba(255,255,255,0.1)] hover:shadow-[0_0_60px_rgba(255,255,255,0.2)] hover:scale-[1.02]" : "opacity-50 grayscale cursor-not-allowed"}`}>
142-
<div className="h-10 w-10 md:h-16 md:w-16 bg-[#F5F5F7] rounded-xl md:rounded-2xl flex items-center justify-center shadow-inner shrink-0">
143-
<Box className="h-5 w-5 md:h-8 md:w-8 text-black" />
144-
</div>
145-
<div className="text-left">
146-
<div className="text-[10px] md:text-xs font-bold uppercase tracking-widest text-black/50 mb-1">Linux (deb)</div>
147-
<div className="text-lg md:text-2xl font-black">{linuxLink ? "Download .deb" : "Coming Soon"}</div>
148-
{linuxSize && <div className="text-xs text-black/50 font-medium mt-1">{linuxSize}</div>}
149-
</div>
150-
</a>
151121
</div>
152122

153123
<p className="mt-8 md:mt-12 text-xs md:text-sm text-white/40 font-medium flex flex-col sm:flex-row items-center justify-center gap-2">

0 commit comments

Comments
 (0)