Skip to content

Commit

Permalink
fix(website): wrong download link for macOS apple silicon installer
Browse files Browse the repository at this point in the history
  • Loading branch information
roldanjr authored and sekwah41 committed Nov 18, 2023
1 parent c7dd230 commit 476b232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions website/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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;
8 changes: 2 additions & 6 deletions website/src/sections/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -91,7 +87,7 @@ export function Hero() {
}
return (
<StyledCTADownloader>
<a href={MAC_x64_INSTALLER}>
<a href={INSTALLERS.ELECTRON.MAC[isArm ? "arm" : "x64"]}>
<SVG name="apple" />
for macOS {isArm ? "Apple Silicon" : "Intel"}
</a>
Expand Down
2 changes: 1 addition & 1 deletion website/src/styles/sections/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 476b232

Please sign in to comment.