Skip to content
Merged
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
26 changes: 23 additions & 3 deletions apps/web/src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,14 @@ function CTAButton({
? "px-4 h-8 flex items-center text-sm bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-full shadow-md active:scale-[98%] transition-all"
: "px-4 h-8 flex items-center text-sm bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-full shadow-md hover:shadow-lg hover:scale-[102%] active:scale-[98%] transition-all";

if (mobile && platform === "mobile") {
return (
<Link to="/" hash="hero" onClick={scrollToHero} className={baseClass}>
Get reminder
</Link>
);
}

if (platformCTA.action === "download") {
return (
<a href="/download/apple-silicon" download className={baseClass}>
Expand All @@ -402,7 +410,7 @@ function CTAButton({

return (
<Link to="/" hash="hero" onClick={scrollToHero} className={baseClass}>
{mobile && platform === "mobile" ? "Get reminder" : platformCTA.label}
{platformCTA.label}
</Link>
);
}
Expand Down Expand Up @@ -604,7 +612,19 @@ function MobileMenuCTAs({
>
Get started
</Link>
{platformCTA.action === "download" ? (
{platform === "mobile" ? (
<Link
to="/"
hash="hero"
onClick={() => {
setIsMenuOpen(false);
scrollToHero();
}}
className="block w-full px-4 py-3 text-center text-sm bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-lg shadow-md active:scale-[98%] transition-all"
>
Get reminder
</Link>
) : platformCTA.action === "download" ? (
<a
href="/download/apple-silicon"
download
Expand All @@ -623,7 +643,7 @@ function MobileMenuCTAs({
}}
className="block w-full px-4 py-3 text-center text-sm bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-lg shadow-md active:scale-[98%] transition-all"
>
{platform === "mobile" ? "Get reminder" : platformCTA.label}
{platformCTA.label}
</Link>
)}
</div>
Expand Down