diff --git a/public/css/styles.css b/public/css/styles.css index bd8bfc2..104c66d 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -292,14 +292,6 @@ footer .about * { Responsive ========================================================================== */ -@media only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and (min--moz-device-pixel-ratio: 2), - only screen and (-o-min-device-pixel-ratio: 2/1) { - .jumbotron:after { - background-size: 150px 150px; - } -} - @media (min-width: 768px) and (max-width: 979px) { .jumbotron { margin-top: -20px; diff --git a/public/img/backgrounds/hero-banner.gif b/public/img/backgrounds/hero-banner.gif index db7d87b..41c9d5f 100644 Binary files a/public/img/backgrounds/hero-banner.gif and b/public/img/backgrounds/hero-banner.gif differ diff --git a/src/components/Home/DownloadButton.astro b/src/components/Home/DownloadButton.astro index 64c5f81..9e9cbe8 100644 --- a/src/components/Home/DownloadButton.astro +++ b/src/components/Home/DownloadButton.astro @@ -1,8 +1,7 @@ --- import { getLatestDownloads } from "$lib/downloads"; -const latestDownloads = await getLatestDownloads(); -const downloads = latestDownloads.success ? latestDownloads.data : []; +const downloads = await getLatestDownloads(); const defaultDownload = downloads[0]; --- diff --git a/src/lib/downloads.ts b/src/lib/downloads.ts index 758b565..e58a65e 100644 --- a/src/lib/downloads.ts +++ b/src/lib/downloads.ts @@ -24,6 +24,7 @@ type DownloadPlatformConfig = { label: string; icon: ImageMetadata; versionKey: keyof LatestBuildsResponse; + fileNameOverride?: string; }; export const downloadPlatforms: DownloadPlatformConfig[] = [ @@ -41,31 +42,34 @@ export const downloadPlatforms: DownloadPlatformConfig[] = [ }, { platform: "meta", - label: "Meta Quest", + label: "Oculus Quest", icon: metaIcon, versionKey: "latestMetaVersion", + fileNameOverride: "android.apk" }, ]; export const buildDownloadOptions = ( latestVersions: LatestBuildsResponse, ): DownloadOption[] => - downloadPlatforms.map(({ platform, label, icon, versionKey }) => { + downloadPlatforms.map(({ platform, label, icon, versionKey, fileNameOverride }) => { const version = latestVersions[versionKey]; + const fileName = fileNameOverride ? fileNameOverride : `${platform}.zip`; + return { platform, label, version, - href: `${TWY_CDN_URL}/builds/${encodeURIComponent(version)}/${platform}.zip`, + href: `${TWY_CDN_URL}/builds/${encodeURIComponent(version)}/${fileName}`, icon, }; }); -export const getLatestDownloads = async (): Promise> => { +export const getLatestDownloads = async (): Promise => { const latestVersions = await api.builds.v1.getLatestVersions(); if (!latestVersions.success) - return ApiResult.failure(latestVersions.error); + return []; - return ApiResult.success(buildDownloadOptions(latestVersions.data)); -}; + return buildDownloadOptions(latestVersions.data); +}; \ No newline at end of file diff --git a/src/pages/downloads.astro b/src/pages/downloads.astro index b2dc2ba..1a69663 100644 --- a/src/pages/downloads.astro +++ b/src/pages/downloads.astro @@ -6,8 +6,7 @@ import { getLatestDownloads } from "$lib/downloads"; import Layout from "$layouts/Layout.astro"; -const latestDownloads = await getLatestDownloads(); -const downloads = latestDownloads.success ? latestDownloads.data : []; +const downloads = await getLatestDownloads(); const patchNotes = await api.builds.v1.getPatchNotes(); ---