mirror of
https://github.com/dathere/qsvpro.dathere.com.git
synced 2025-12-19 05:59:24 +00:00
chore: show easier download choices based on OS
This commit is contained in:
parent
12c2829408
commit
d1f797d439
2 changed files with 30 additions and 31 deletions
|
|
@ -29,12 +29,8 @@ const FAQData = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
question: "How do I get qsv pro?",
|
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: [
|
links: [
|
||||||
{
|
|
||||||
label: "Download qsv pro",
|
|
||||||
url: "https://github.com/dathere/qsv-pro/releases/latest",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "Purchase a license",
|
label: "Purchase a license",
|
||||||
url: "https://store.dathere.com/checkout/buy/41f919fd-2b68-40ea-a5ed-0f531b2efba5",
|
url: "https://store.dathere.com/checkout/buy/41f919fd-2b68-40ea-a5ed-0f531b2efba5",
|
||||||
|
|
|
||||||
|
|
@ -33,18 +33,21 @@ export const Hero = () => {
|
||||||
const version = name.slice(1);
|
const version = name.slice(1);
|
||||||
const downloadData = {
|
const downloadData = {
|
||||||
windows: [
|
windows: [
|
||||||
`qsv.pro_${version}_x64_en-US.msi`,
|
["Windows", `qsv.pro_${version}_x64_en-US.msi`],
|
||||||
`qsv.pro_${version}_x64-setup.exe`,
|
// `qsv.pro_${version}_x64-setup.exe`,
|
||||||
],
|
],
|
||||||
macos: [
|
macos: [
|
||||||
`qsv.pro_x64.app.tar.gz`,
|
["macOS (Apple Silicon)", `qsv.pro_aarch64.app.tar.gz`],
|
||||||
`qsv.pro_aarch64.app.tar.gz`,
|
["macOS (Intel)", `qsv.pro_x64.app.tar.gz`],
|
||||||
`qsv.pro_${version}_x64.dmg`,
|
// `qsv.pro_${version}_x64.dmg`,
|
||||||
`qsv.pro_${version}_aarch64.dmg`,
|
// `qsv.pro_${version}_aarch64.dmg`,
|
||||||
],
|
],
|
||||||
linux: [
|
linux: [
|
||||||
|
[
|
||||||
|
"Linux (AppImage)",
|
||||||
`qsv-pro_${version}_amd64.AppImage`,
|
`qsv-pro_${version}_amd64.AppImage`,
|
||||||
`qsv-pro_${version}_amd64.deb`,
|
],
|
||||||
|
// `qsv-pro_${version}_amd64.deb`,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
setDownloadData(downloadData);
|
setDownloadData(downloadData);
|
||||||
|
|
@ -147,34 +150,34 @@ export const Hero = () => {
|
||||||
: "text-white"
|
: "text-white"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<p>
|
|
||||||
{platform === "macos"
|
|
||||||
? "macOS"
|
|
||||||
: platform[0].toUpperCase() +
|
|
||||||
platform.slice(1)}
|
|
||||||
</p>
|
|
||||||
{downloadData &&
|
|
||||||
platform === "windows" && (
|
|
||||||
<small className="text-xs text-zinc-300 mt-4">
|
|
||||||
You may get an
|
|
||||||
antivirus
|
|
||||||
notification that
|
|
||||||
you have to skip.
|
|
||||||
</small>
|
|
||||||
)}
|
|
||||||
{downloadData[platform].map(
|
{downloadData[platform].map(
|
||||||
(download, index) => (
|
(download, index) => (
|
||||||
<a
|
<a
|
||||||
key={index}
|
key={index}
|
||||||
href={`https://github.com/dathere/qsv-pro-releases/releases/download/${name}/${download}`} // Replace with actual download path
|
href={`https://github.com/dathere/qsv-pro-releases/releases/download/${name}/${download[1]}`} // Replace with actual download path
|
||||||
className={`block text-white font-bold py-2 px-4 rounded mt-4 ${
|
className={`block lg:min-w-96 text-white font-bold py-2 px-4 rounded mt-4 ${
|
||||||
platform === OS
|
platform === OS
|
||||||
? " bg-teal-500 hover:bg-teal-700"
|
? " bg-teal-500 hover:bg-teal-700"
|
||||||
: " bg-blue-500 hover:bg-blue-700"
|
: " bg-blue-500 hover:bg-blue-700"
|
||||||
}`}
|
}`}
|
||||||
download
|
download
|
||||||
>
|
>
|
||||||
{download}
|
{download[0]}
|
||||||
|
{platform ===
|
||||||
|
"windows" && (
|
||||||
|
<>
|
||||||
|
<br />
|
||||||
|
<small className="text-xs text-zinc-300 mt-4">
|
||||||
|
You may
|
||||||
|
get an
|
||||||
|
antivirus
|
||||||
|
notification
|
||||||
|
that you
|
||||||
|
have to
|
||||||
|
skip.
|
||||||
|
</small>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue