authorgravatar for VedankPurohit2@gmail.comVedank Purohit <VedankPurohit2@gmail.com> 2026-07-12 15:28:55+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-07-12 09:58:55+00:00
log619b0ece940ed0ae92a1efffc2b3a1409f0c95d8
tree918ad1d2510c87fe986ec0afb570103cdaec76c0
parentef943a26abe4dd95fabd32d81ccc4e66f62de2e1
signature Signed by PGP key B5690EEEBB952194

fix(marketing): show platform-appropriate commit shortcut on the website (#3644)


1 files changed, 3 insertions(+), 1 deletions(-)

apps/marketing/src/pages/index.astro+3-1
...@@ -254,7 +254,7 @@ const mobileEndorsementRows = [...@@ -254,7 +254,7 @@ const mobileEndorsementRows = [
254 <button class="pr-button">254 <button class="pr-button">
255 <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>255 <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>
256 Commit &amp; push256 Commit &amp; push
257 <span class="pr-button-kbd">⌘⏎</span>257 <span id="pr-button-kbd" class="pr-button-kbd">⌘⏎</span>
258 </button>258 </button>
259 </div>259 </div>
260 </div>260 </div>
...@@ -403,12 +403,14 @@ const mobileEndorsementRows = [...@@ -403,12 +403,14 @@ const mobileEndorsementRows = [
403 const label = document.getElementById("download-label");403 const label = document.getElementById("download-label");
404 const ctaBtn = document.getElementById("cta-download-btn") as HTMLAnchorElement | null;404 const ctaBtn = document.getElementById("cta-download-btn") as HTMLAnchorElement | null;
405 const ctaLabel = document.getElementById("cta-download-label");405 const ctaLabel = document.getElementById("cta-download-label");
406 const kbd = document.getElementById("pr-button-kbd");
406407
407 const platform = detectPlatform();408 const platform = detectPlatform();
408 if (!platform) return;409 if (!platform) return;
409 document.documentElement.dataset.platform = platform.os;410 document.documentElement.dataset.platform = platform.os;
410 if (label) label.textContent = platform.label;411 if (label) label.textContent = platform.label;
411 if (ctaLabel) ctaLabel.textContent = platform.label;412 if (ctaLabel) ctaLabel.textContent = platform.label;
413 if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎";
412414
413 try {415 try {
414 const release = await fetchLatestRelease();416 const release = await fetchLatestRelease();