Add new isos, consolidate mirror to just world wide

This commit is contained in:
ferrreo 2023-07-16 15:14:12 +01:00
parent d2f94ef530
commit a86a2ec8f8
2 changed files with 30 additions and 11 deletions

View File

@ -3,7 +3,6 @@ import { Icon } from 'astro-icon';
interface Download { interface Download {
text: string; text: string;
hrefEU: string;
hrefWW: string; hrefWW: string;
md5: string; md5: string;
isComgingSoon: boolean; isComgingSoon: boolean;
@ -37,11 +36,11 @@ const {
) )
} }
{subtitle && <p class="text-xl text-gray-600 dark:text-slate-400" set:html={subtitle} />} {subtitle && <p class="text-xl text-gray-600 dark:text-slate-400" set:html={subtitle} />}
<div class="grid grid-cols-4 gap-4"><div class="mb-3 text-xl font-bold">ISO</div><div class="mb-3 text-xl font-bold">EU Mirror</div><div class="mb-3 text-xl font-bold">World Mirror</div><div class="mb-3 text-xl font-bold">Hash</div> <div class="grid grid-cols-4 gap-4"><div class="mb-3 text-xl font-bold">ISO</div><div class="mb-3 text-xl font-bold">World Mirror</div><div class="mb-3 text-xl font-bold">Hash</div>
{ {
downloads && downloads &&
downloads.map((download) => ( downloads.map((download) => (
<div>{download.text}</div><div>{download.isComgingSoon ? "Coming Soon" : (<a class="flex flex-row flex-auto justify-center" href={download.hrefEU} target="_blank">{<Icon name="tabler:download" class="w-5 h-5 mr-1 -ml-1.5" />}ISO</a>)}</div><div>{download.isComgingSoon ? "Coming Soon" : (<a class="flex flex-row flex-auto justify-center" href={download.hrefWW} target="_blank">{<Icon name="tabler:download" class="w-5 h-5 mr-1 -ml-1.5" />}ISO</a>)}</div><div>{download.isComgingSoon ? "Coming Soon" : (<a class="flex flex-row flex-auto justify-center" href={download.md5} target="_blank">{<Icon name="tabler:download" class="w-5 h-5 mr-1 -ml-1.5" />}MD5</a>)}</div> <div>{download.text}</div><div>{download.isComgingSoon ? "Coming Soon" : (<a class="flex flex-row flex-auto justify-center" href={download.hrefWW} target="_blank">{<Icon name="tabler:download" class="w-5 h-5 mr-1 -ml-1.5" />}ISO</a>)}</div><div>{download.isComgingSoon ? "Coming Soon" : (<a class="flex flex-row flex-auto justify-center" href={download.md5} target="_blank">{<Icon name="tabler:download" class="w-5 h-5 mr-1 -ml-1.5" />}MD5</a>)}</div>
)) ))
} }
</div> </div>

View File

@ -258,20 +258,40 @@ const meta = {
downloads={[ downloads={[
{ {
text: "Gnome", text: "Gnome",
hrefEU: hrefWW: "https://cdn.pika-os.com/PikaOS-Gnome-2304-amd64-23.07.16.iso",
"https://pika-os.com/PikaOS-Gnome-2304-amd64-23.05.30.iso", md5: "https://iso.pika-os.com/PikaOS-Gnome-2304-amd64-23.07.16.md5",
hrefWW: "https://cdn.pika-os.com/PikaOS-Gnome-2304-amd64-23.05.30.iso",
md5: "https://pika-os.com/PikaOS-Gnome-2304-amd64-23.05.30.md5",
isComgingSoon: false, isComgingSoon: false,
}, },
{ {
text: "KDE", text: "KDE",
hrefEU: hrefWW: "https://cdn.pika-os.com/PikaOS-KDE-2304-amd64-23.07.16.iso",
"https://pika-os.com/PikaOS-KDE-2304-amd64-23.05.30.iso", md5: "https://iso.pika-os.com/PikaOS-KDE-2304-amd64-23.07.16.md5",
hrefWW: "https://cdn.pika-os.com/PikaOS-KDE-2304-amd64-23.05.30.iso",
md5: "https://pika-os.com/PikaOS-KDE-2304-amd64-23.05.30.md5",
isComgingSoon: false, isComgingSoon: false,
}, },
{
text: "Hyprland",
hrefWW: "https://cdn.pika-os.com/PikaOS-Hyprland-2304-amd64-23.07.16.iso",
md5: "https://iso.pika-os.com/PikaOS-Hyprland-2304-amd64-23.07.16.md5",
isComgingSoon: true,
},
{
text: "Gnome Nvidia",
hrefWW: "https://cdn.pika-os.com/PikaOS-nvidia-Gnome-2304-amd64-23.07.16.iso",
md5: "https://iso.pika-os.com/PikaOS-nvidia-Gnome-2304-amd64-23.07.16.md5",
isComgingSoon: false,
},
{
text: "KDE Nvidia",
hrefWW: "https://cdn.pika-os.com/PikaOS-nvidia-KDE-2304-amd64-23.07.16.iso",
md5: "https://iso.pika-os.com/PikaOS-nvidia-KDE-2304-amd64-23.07.16.md5",
isComgingSoon: false,
},
{
text: "Hyprland Nvidia",
hrefWW: "https://cdn.pika-os.com/PikaOS-nvidia-Hyprland-2304-amd64-23.07.16.iso",
md5: "https://iso.pika-os.com/PikaOS-nvidia-Hyprland-2304-amd64-23.07.16.md5",
isComgingSoon: true,
},
]} ]}
> >
<Fragment slot="title">PikaOS Download</Fragment> <Fragment slot="title">PikaOS Download</Fragment>