Skip to content

Commit 619b0ec

Browse files
fix(marketing): show platform-appropriate commit shortcut on the website (pingdotgg#3644)
1 parent ef943a2 commit 619b0ec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/marketing/src/pages/index.astro‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const mobileEndorsementRows = [
254254
<button class="pr-button">
255255
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.2"/><circle cx="6" cy="18" r="2.2"/><circle cx="18" cy="6" r="2.2"/><path d="M6 8v8M18 8v5a3 3 0 01-3 3h-3M13 13l-2 3 2 3"/></svg>
256256
Commit &amp; push
257-
<span class="pr-button-kbd">⌘⏎</span>
257+
<span id="pr-button-kbd" class="pr-button-kbd">⌘⏎</span>
258258
</button>
259259
</div>
260260
</div>
@@ -403,12 +403,14 @@ const mobileEndorsementRows = [
403403
const label = document.getElementById("download-label");
404404
const ctaBtn = document.getElementById("cta-download-btn") as HTMLAnchorElement | null;
405405
const ctaLabel = document.getElementById("cta-download-label");
406+
const kbd = document.getElementById("pr-button-kbd");
406407

407408
const platform = detectPlatform();
408409
if (!platform) return;
409410
document.documentElement.dataset.platform = platform.os;
410411
if (label) label.textContent = platform.label;
411412
if (ctaLabel) ctaLabel.textContent = platform.label;
413+
if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎";
412414

413415
try {
414416
const release = await fetchLatestRelease();

0 commit comments

Comments
 (0)