mirror of
https://github.com/dathere/qsvpro.dathere.com.git
synced 2025-12-18 21:59:24 +00:00
feat: add download from the Microsoft Store button
This commit is contained in:
parent
dc0acd62e5
commit
6d0f0d2177
1 changed files with 51 additions and 36 deletions
|
|
@ -121,42 +121,57 @@ export const Hero = () => {
|
|||
>
|
||||
<div className="grid grid-cols-1 place-items-center gap-2 sm:flex-row mt-14 mb-24 sm:mb-40 justify-center">
|
||||
{downloadData && OS !== "unknown" ? (
|
||||
<>
|
||||
<p className="text-white text-md text-center mx-auto mb-4">
|
||||
Download qsv pro and explore the free plan or unlock features with a paid plan.
|
||||
</p>
|
||||
<div className="flex justify-center">
|
||||
{Object.keys(downloadData).map(
|
||||
(platform) => (
|
||||
<div
|
||||
key={platform}
|
||||
className={`mx-4 ${
|
||||
platform === OS
|
||||
? "text-white text-xl font-bold"
|
||||
: "text-white"
|
||||
}`}
|
||||
>
|
||||
{downloadData[platform].map(
|
||||
(download, index) => (
|
||||
<a
|
||||
key={index}
|
||||
href={`https://github.com/dathere/qsv-pro-releases/releases/download/${name}/${download[1]}`} // Replace with actual download path
|
||||
className={`block lg:min-w-96 text-white font-bold py-2 px-4 rounded mt-4 ${
|
||||
platform === OS
|
||||
? " bg-teal-600 hover:bg-teal-700"
|
||||
: " bg-blue-500 hover:bg-blue-700"
|
||||
}`}
|
||||
download
|
||||
>
|
||||
{download[0]}
|
||||
</a>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
<>
|
||||
<p className="text-white text-md text-center mx-auto mb-4">
|
||||
Download qsv pro and explore the free plan
|
||||
or unlock features with a paid plan.
|
||||
</p>
|
||||
<div className="flex justify-center">
|
||||
{Object.keys(downloadData).map(
|
||||
(platform) => (
|
||||
<div
|
||||
key={platform}
|
||||
className={`mx-4 ${
|
||||
platform === OS
|
||||
? "text-white text-xl font-bold"
|
||||
: "text-white"
|
||||
}`}
|
||||
>
|
||||
{downloadData[platform].map(
|
||||
(download, index) => (
|
||||
<>
|
||||
{platform ===
|
||||
"windows" && (
|
||||
<div className="flex justify-center">
|
||||
<a href="https://apps.microsoft.com/detail/xpffdj3f1jsztf?mode=full">
|
||||
<img
|
||||
src="https://get.microsoft.com/images/en-us%20light.svg"
|
||||
width="200"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
)}
|
||||
<a
|
||||
key={index}
|
||||
href={`https://github.com/dathere/qsv-pro-releases/releases/download/${name}/${download[1]}`} // Replace with actual download path
|
||||
className={`block lg:min-w-96 text-white font-bold py-2 px-4 rounded mt-4 ${
|
||||
platform ===
|
||||
OS
|
||||
? " bg-teal-600 hover:bg-teal-700"
|
||||
: " bg-blue-500 hover:bg-blue-700"
|
||||
}`}
|
||||
download
|
||||
>
|
||||
{download[0]}
|
||||
</a>
|
||||
</>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue