Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): wrong download link for macOS apple silicon installer #521

Merged
merged 1 commit into from
Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading