From d1f797d4397cdf7344b11f559f99f5e7f0ad461b Mon Sep 17 00:00:00 2001 From: rzmk <30333942+rzmk@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:52:29 -0400 Subject: [PATCH] chore: show easier download choices based on OS --- src/components/FAQ.jsx | 6 +---- src/components/Hero.jsx | 55 ++++++++++++++++++++++------------------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/components/FAQ.jsx b/src/components/FAQ.jsx index 8056ada..9fe4789 100644 --- a/src/components/FAQ.jsx +++ b/src/components/FAQ.jsx @@ -29,12 +29,8 @@ const FAQData = [ }, { question: "How do I get qsv pro?", - answer: "You may download the latest version of qsv pro with a 7-day free trial (no payment method required). During or after the trial, you may purchase a license to continue using qsv pro. You may choose between any of the installers for Windows (.msi, -setup.exe), macOS (.app, .dmg), and Linux (.AppImage, .deb).", + answer: "You may download the latest version of qsv pro with a 7-day free trial (no payment method required) from the top of this page. During or after the trial, you may purchase a license to continue using qsv pro. You may choose between any of the installers for Windows (.msi), macOS (.app.tar.gz), and Linux (.AppImage).", links: [ - { - label: "Download qsv pro", - url: "https://github.com/dathere/qsv-pro/releases/latest", - }, { label: "Purchase a license", url: "https://store.dathere.com/checkout/buy/41f919fd-2b68-40ea-a5ed-0f531b2efba5", diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index 7989101..1a9ad0c 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -33,18 +33,21 @@ export const Hero = () => { const version = name.slice(1); const downloadData = { windows: [ - `qsv.pro_${version}_x64_en-US.msi`, - `qsv.pro_${version}_x64-setup.exe`, + ["Windows", `qsv.pro_${version}_x64_en-US.msi`], + // `qsv.pro_${version}_x64-setup.exe`, ], macos: [ - `qsv.pro_x64.app.tar.gz`, - `qsv.pro_aarch64.app.tar.gz`, - `qsv.pro_${version}_x64.dmg`, - `qsv.pro_${version}_aarch64.dmg`, + ["macOS (Apple Silicon)", `qsv.pro_aarch64.app.tar.gz`], + ["macOS (Intel)", `qsv.pro_x64.app.tar.gz`], + // `qsv.pro_${version}_x64.dmg`, + // `qsv.pro_${version}_aarch64.dmg`, ], linux: [ - `qsv-pro_${version}_amd64.AppImage`, - `qsv-pro_${version}_amd64.deb`, + [ + "Linux (AppImage)", + `qsv-pro_${version}_amd64.AppImage`, + ], + // `qsv-pro_${version}_amd64.deb`, ], }; setDownloadData(downloadData); @@ -147,34 +150,34 @@ export const Hero = () => { : "text-white" }`} > -

- {platform === "macos" - ? "macOS" - : platform[0].toUpperCase() + - platform.slice(1)} -

- {downloadData && - platform === "windows" && ( - - You may get an - antivirus - notification that - you have to skip. - - )} {downloadData[platform].map( (download, index) => ( - {download} + {download[0]} + {platform === + "windows" && ( + <> +
+ + You may + get an + antivirus + notification + that you + have to + skip. + + + )}
) )}