From 476b232615b257e04c9f9065e435b26860b2995a Mon Sep 17 00:00:00 2001 From: Roldan Montilla Jr Date: Fri, 17 Nov 2023 22:17:14 +0800 Subject: [PATCH] fix(website): wrong download link for macOS apple silicon installer --- website/src/config.ts | 6 +++--- website/src/sections/hero.tsx | 8 ++------ website/src/styles/sections/hero.ts | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/website/src/config.ts b/website/src/config.ts index 008551c3..2c38cc03 100644 --- a/website/src/config.ts +++ b/website/src/config.ts @@ -56,7 +56,7 @@ export const INSTALLERS = { universal: `${DOWNLOAD_PREFIX}/Pomatez_${json.version}_universal-mac-tauri-beta.dmg`, }, }, -}; +} as const; export const NAV_LINKS = [ { label: "Features", link: "features", offset: -24 }, @@ -69,10 +69,10 @@ export const NAV_LINKS = [ label: "Discord", link: `https://discord.gg/ZqPqN3hwcB`, }, -]; +] as const; export const ENV = { GOOGLE_VERIFICATION: process.env.GOOGLE_VERIFICATION || "", GA_TRACKING_ID: process.env.GA_TRACKING_ID || "", IS_DEV: process.env.NODE_ENV !== "production", -}; +} as const; diff --git a/website/src/sections/hero.tsx b/website/src/sections/hero.tsx index 85014f23..a127a5ca 100644 --- a/website/src/sections/hero.tsx +++ b/website/src/sections/hero.tsx @@ -18,11 +18,7 @@ import { StyledWatermarkContainer, StyledHeroBetaDescription, } from "../styles"; -import { - MAC_x64_INSTALLER, - PROJECT_GITHUB_URL, - INSTALLERS, -} from "../config"; +import { PROJECT_GITHUB_URL, INSTALLERS } from "../config"; import { OSTypes, detectOS } from "../utils"; import { ThemeContext } from "../context"; import { useLandingQuery } from "../queries"; @@ -91,7 +87,7 @@ export function Hero() { } return ( - + for macOS {isArm ? "Apple Silicon" : "Intel"} diff --git a/website/src/styles/sections/hero.ts b/website/src/styles/sections/hero.ts index 5f153d1f..a6fd8bf2 100644 --- a/website/src/styles/sections/hero.ts +++ b/website/src/styles/sections/hero.ts @@ -165,7 +165,7 @@ export const StyledHeroBetaDescription = styled(motion.h2).attrs( variants: fadeFromBottom, }) )` - font-size: 2.2rem; + font-size: 2rem; font-weight: 400; line-height: 1.7; margin-top: 4.8rem;