This commit is contained in:
mauro-balades
2024-09-04 19:58:31 +02:00
3 changed files with 97 additions and 80 deletions

View File

@@ -259,6 +259,7 @@ export default function DownloadPage() {
</p> </p>
</> </>
)} )}
{/*Changes for the Choose your platform as checkbox looks old*/}
<div className="relative w-full"> <div className="relative w-full">
{platform === null && ( {platform === null && (
<FormField enter={platform === null} out={platform !== null}> <FormField enter={platform === null} out={platform !== null}>
@@ -266,38 +267,60 @@ export default function DownloadPage() {
<FieldDescription> <FieldDescription>
Choose the platform you want to download Zen for. Choose the platform you want to download Zen for.
</FieldDescription> </FieldDescription>
<div className="flex">
<div <div
onClick={() => setSelectedPlatform("Windows")} onClick={() => setSelectedPlatform("Windows")}
className={ny( className={ny(
"select-none mb-2 px-4 py-3 flex items-center rounded-lg bg-background cursor-pointer border", "select-none mr-2 flex flex-col items-center justify-center rounded-lg bg-background cursor-pointer border",
selectedPlatform === "Windows" ? "border-blue-400" : "" selectedPlatform === "Windows" ? "border-blue-400" : ""
)} )}
style={{
height: "11.25rem",
width: "18.75rem",
}}
> >
<Checkbox checked={selectedPlatform === "Windows"} /> <i
<i className="devicon-windows8-original ml-3 p-2 border border-blue-400 rounded-lg"></i> className="devicon-windows8-original p-2 border border-blue-400 rounded-lg"
<div className="ml-2">Windows</div> style={{ marginBottom: "10px" }}
></i>
<div className="font-bold">Windows</div>
</div> </div>
<div <div
onClick={() => setSelectedPlatform("Linux")} onClick={() => setSelectedPlatform("Linux")}
className={ny( className={ny(
"select-none mb-2 px-4 py-3 flex items-center rounded-lg bg-background cursor-pointer border", "select-none mr-2 flex flex-col items-center justify-center rounded-lg bg-background cursor-pointer border",
selectedPlatform === "Linux" ? "border-yellow-400" : "" selectedPlatform === "Linux" ? "border-yellow-400" : ""
)} )}
style={{
height: "11.25rem",
width: "18.75rem",
}}
> >
<Checkbox checked={selectedPlatform === "Linux"} /> <i
<i className="devicon-linux-plain ml-3 p-2 border border-yellow-400 rounded-lg"></i> className="devicon-linux-plain p-2 border border-yellow-400 rounded-lg"
<div className="ml-2">Linux</div> style={{ marginBottom: "10px" }}
></i>
<div className="font-bold">Linux</div>
</div> </div>
<div <div
onClick={() => setSelectedPlatform("MacOS")} onClick={() => setSelectedPlatform("MacOS")}
className={ny( className={ny(
"select-none mb-2 px-4 py-3 flex items-center rounded-lg bg-background cursor-pointer border", "select-none flex flex-col items-center justify-center rounded-lg bg-background cursor-pointer border",
selectedPlatform === "MacOS" ? "border-purple-400" : "" selectedPlatform === "MacOS" ? "border-purple-400" : ""
)} )}
style={{
height: "11.25rem",
width: "18.75rem",
}}
> >
<Checkbox checked={selectedPlatform === "MacOS"} /> <i
<i className="devicon-apple-original p-2 border border-purple-400 ml-3 rounded-lg"></i> className="devicon-apple-original p-2 border border-purple-400 rounded-lg"
<div className="ml-2 font-bold">MacOS</div> style={{ marginBottom: "10px" }}
></i>
<div className="font-bold">MacOS</div>
</div>
</div> </div>
</FormField> </FormField>
)} )}
@@ -371,30 +394,24 @@ export default function DownloadPage() {
<div <div
onClick={() => setSelectedArchitecture("specific")} onClick={() => setSelectedArchitecture("specific")}
className={ny( className={ny(
"select-none w-full h-full mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", "select-none w-full h-64 mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border",
selectedArchitecture === "specific" selectedArchitecture === "specific" ? "border-blue-400" : ""
? "border-blue-400"
: ""
)} )}
> >
<h1 className="text-5xl my-2 opacity-40 dark:opacity-20"> <h1 className="text-5xl my-2 opacity-40 dark:opacity-20">🍏</h1>
🍏
</h1>
<h1 className="text-2xl font-semibold my-2">AArch64</h1> <h1 className="text-2xl font-semibold my-2">AArch64</h1>
<p className="text-muted-foreground mx-auto text-center">64-bit ARM architecture, for Apple's M Series Chips</p> <p className="text-muted-foreground mx-auto text-center">
64-bit ARM architecture, for Apple's M Series Chips
</p>
</div> </div>
<div <div
onClick={() => setSelectedArchitecture("generic")} onClick={() => setSelectedArchitecture("generic")}
className={ny( className={ny(
"select-none w-full h-full mb-2 ml-10 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", "select-none w-full h-64 mb-2 ml-10 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border",
selectedArchitecture === "generic" selectedArchitecture === "generic" ? "border-blue-400" : ""
? "border-blue-400"
: ""
)} )}
> >
<h1 className="text-5xl font-bold my-2 opacity-40 dark:opacity-20"> <h1 className="text-5xl font-bold my-2 opacity-40 dark:opacity-20">x64</h1>
x64
</h1>
<h1 className="text-2xl font-semibold my-2">Intel</h1> <h1 className="text-2xl font-semibold my-2">Intel</h1>
<p className="text-muted-foreground mx-auto text-center"> <p className="text-muted-foreground mx-auto text-center">
64-bit Intel architecture, for older Macs 64-bit Intel architecture, for older Macs