From a66eebf1a2f921b5d97220582dcf419057430771 Mon Sep 17 00:00:00 2001 From: Vikram Date: Tue, 1 Dec 2026 08:48:50 +0530 Subject: [PATCH] Website: a proper Download for Mac button with the Apple logo Black Apple-logo buttons for Apple silicon and Intel Macs, Notarized by Apple in the requirements, and a tip for finding out which Mac you have. Co-Authored-By: Claude Opus 5.5 --- website/app/download/page.tsx | 18 +++++++++++++----- website/app/pages.css | 14 ++++++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/website/app/download/page.tsx b/website/app/download/page.tsx index 2b0f933..5d675b9 100644 --- a/website/app/download/page.tsx +++ b/website/app/download/page.tsx @@ -1,7 +1,7 @@ import type {Metadata} from 'next'; import {OG_IMAGE} from '@/lib/site'; import Image from 'next/image'; -import {Apple,Check,Download,Github,Laptop,Monitor,ShieldCheck,Terminal} from 'lucide-react'; +import {Check,Download,Github,Laptop,Monitor,ShieldCheck,Terminal} from 'lucide-react'; import {Nav} from '@/components/Nav'; import {Footer} from '@/components/Footer'; import {checksums,installers,latestRelease,RELEASES_URL} from '@/lib/releases'; @@ -15,17 +15,24 @@ export const revalidate=300; type Link={label:string;href?:string;size?:number}; const mb=(bytes?:number)=>bytes?` · ${(bytes/1048576).toFixed(0)} MB`:''; +/** The Apple mark (Simple Icons, CC0), drawn inline. */ +const AppleMark=({size=20}:{size?:number})=>; + /** The four-square Windows mark, drawn inline. */ const WindowsMark=()=>; -function Platform({icon,name,detail,store,primary,others,requirements}:{icon:React.ReactNode;name:string;detail:string;store?:string;primary:Link;others:Link[];requirements:string[]}){ - return
+function Platform({icon,name,detail,store,mac,primary,others,requirements,tip}:{icon:React.ReactNode;name:string;detail:string;store?:string;mac?:{intel:Link};primary:Link;others:Link[];requirements:string[];tip?:React.ReactNode}){ + return ; } @@ -39,7 +46,8 @@ export default async function DownloadPage(){
{release?`VERSION ${release.version}`:'PUBLIC PREVIEW'}

Meet your new workspace.

Veyra runs natively on Windows, macOS and Linux, and keeps itself up to date automatically.

{downloads>=SHOW_INSTALLS_FROM&&

}
} name="Windows" detail="Windows 10 and 11 · 64-bit" store={MS_STORE_URL} primary={{label:'Download installer (.exe)',...asset(files.windows)}} others={[{label:'MSI package',...asset(files.windowsMsi)}]} requirements={['Windows 10 or newer','WebView2 (installed automatically)']}/> - } name="macOS" detail="Apple silicon and Intel" primary={{label:'Apple silicon (.dmg)',...asset(files.macArm)}} others={[{label:'Intel Mac (.dmg)',...asset(files.macIntel)}]} requirements={['macOS 11 or newer']}/> + } name="macOS" detail="Apple silicon and Intel Macs" mac={{intel:{label:'Intel Mac (.dmg)',...asset(files.macIntel)}}} primary={{label:'Apple silicon (.dmg)',...asset(files.macArm)}} others={[]} requirements={['Notarized by Apple: opens without warnings','macOS 11 or newer']} + tip={<>Not sure which Mac you have? Open the Apple menu → About This Mac: Chip: Apple M… means Apple silicon, Processor: Intel means Intel.}/> } name="Linux" detail="64-bit distributions" primary={{label:'AppImage',...asset(files.appImage)}} others={[{label:'Debian / Ubuntu (.deb)',...asset(files.deb)},{label:'Fedora (.rpm)',...asset(files.rpm)}]} requirements={['WebKitGTK 4.1','glibc 2.35 or newer']}/>
diff --git a/website/app/pages.css b/website/app/pages.css index 958a4a5..014bb89 100644 --- a/website/app/pages.css +++ b/website/app/pages.css @@ -32,5 +32,19 @@ .store-button small{font-size:10.5px;font-weight:400;opacity:.8} .platform-card .alt-primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-top:10px;font-size:13px;color:#c5d0db;text-decoration:underline;text-underline-offset:3px} +/* Download for Mac: black Apple-logo buttons, like the Microsoft Store one */ +.mac-logo{display:inline-grid;place-items:center;color:var(--mint,#68f4d1)} +.mac-buttons{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;margin-top:auto} +.platform-card .mac-button{display:flex;align-items:center;gap:14px;width:100%;max-width:300px;padding:12px 18px;border-radius:14px;background:#0b0b0b;color:#fff;border:1px solid #ffffff3a;box-shadow:0 10px 30px #0006;text-decoration:none;transition:background .15s,border-color .15s,transform .15s} +.platform-card .mac-button:hover{background:#171717;border-color:#ffffff73;transform:translateY(-1px)} +.platform-card .mac-button.primary{margin-top:0;background:linear-gradient(180deg,#1c1c1e,#050505);border-color:#ffffff59} +.mac-button span{display:grid;text-align:left;line-height:1.15;font-size:17px;font-weight:700;letter-spacing:-.2px} +.mac-button small{font-size:11px;font-weight:500;opacity:.75;letter-spacing:0} +.mac-button em{font-style:normal;font-size:11.5px;font-weight:500;opacity:.6;margin-top:2px} +.platform-card .mac-button.intel{padding:9px 16px;background:transparent;box-shadow:none} +.mac-button.intel span{font-size:14px} +.platform-tip{margin:12px 0 0;text-align:left;font-size:12px;line-height:1.55;color:var(--muted,#8997a5)} +.platform-tip b{color:#d5dee6;font-weight:600} + /* Veyra Studio's real download count on the Download page. */ .page-head .download-count{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:4px 12px;border-radius:999px;color:var(--mint,#68f4d1);background:#68f4d114;border:1px solid #68f4d133;font:700 12px var(--font-mono,monospace);letter-spacing:.3px}