Site: downloads in the hero; hero links on one baseline, Source translated [skip ci]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-13 13:47:15 -04:00
1 parent 854c360ea1
commit f447cdca5c
4 files changed
+39 -12

No files matched your search

+9 -6
View File
@@ -18,15 +18,16 @@ if (!app) throw new Error("index.html has no #app");
const hero = document.createElement("header");
const title = document.createElement("h1");
title.textContent = "Ely Office";
const source = document.createElement("a");
const source = said("a", "source");
source.href = REPO;
source.textContent = "Source";
const download = said("a", "get");
download.href = RELEASES;
const links = document.createElement("div");
links.className = "links";
links.append(download, source);
hero.append(title, said("p", "tagline"), said("p", "platforms"), links);
const heroCount = said("p", "count");
heroCount.hidden = true;
hero.append(title, said("p", "tagline"), said("p", "platforms"), heroCount, links);
const { section, host, svg } = tour(hero);
rhythm(host, svg);
@@ -60,7 +61,9 @@ say(lang);
reveal([shelf]);
void latest().then(({ version: v, downloads }) => {
version.textContent = `Ely Office ${v}`;
count.dataset.n = String(downloads);
count.textContent = word(lang, "count", downloads);
count.hidden = false;
for (const el of [heroCount, count]) {
el.dataset.n = String(downloads);
el.textContent = word(lang, "count", downloads);
el.hidden = false;
}
});
+1
View File
@@ -62,6 +62,7 @@ button:focus-visible {
.hero .links {
display: flex;
align-items: baseline;
gap: 1.5rem;
}
+2
View File
@@ -18,6 +18,7 @@ const en = {
unsigned: "Not notarized. If macOS blocks the app, open System Settings › Privacy & Security and click Open Anyway.",
get: "Download",
count: "{n} downloads so far.",
source: "Source",
other: "中文",
roads: "Drag a file down the road.",
fileDoc: "ElyDoc file",
@@ -55,6 +56,7 @@ const zh: typeof en = {
unsigned: "未经公证。macOS 拦下应用时,打开“系统设置 › 隐私与安全性”,点“仍要打开”。",
get: "前往下载",
count: "已下载 {n} 次。",
source: "源码",
other: "English",
roads: "把文件沿着路拖过去。",
fileDoc: "ElyDoc 文件",