Skip to content
Closed
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
10 changes: 9 additions & 1 deletion apps/marketing/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const mobileEndorsementRows = [

<span id="cta-download-label">Download for macOS</span>
</a>
<a class="btn btn-ghost btn-lg" href="/download">Windows · Linux · other</a>
<a id="cta-other-platforms" class="btn btn-ghost btn-lg" href="/download">Windows · Linux · other</a>
</div>
</div>
</section>
Expand Down Expand Up @@ -452,6 +452,14 @@ const mobileEndorsementRows = [
document.documentElement.dataset.platform = platform.os;
if (label) label.textContent = platform.label;
if (ctaLabel) ctaLabel.textContent = platform.label;
const otherPlatforms = document.getElementById("cta-other-platforms");
if (otherPlatforms) {
otherPlatforms.textContent = {
mac: "Windows · Linux · other",
win: "macOS · Linux · other",
linux: "macOS · Windows · other",
}[platform.os];
}
if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎";

try {
Expand Down
Loading