diff --git a/site/i18n.js b/site/i18n.js index 8f3429e96..30b663a8f 100644 --- a/site/i18n.js +++ b/site/i18n.js @@ -138,6 +138,10 @@ const zh = { "fin.gh": "在 GitHub 上查看", "plat.mac": "11 及以上", "plat.win": "10 及以上", + "chan.label": "版本", + "chan.latest": "最新版", + "chan.stable": "稳定版", + "chan.title": "每周一个版本,先经过三天使用", "foot.start": "快速上手", "foot.feed": "更新源", "foot.contrib": "贡献墙", @@ -291,6 +295,10 @@ const ja = { "fin.gh": "GitHub で見る", "plat.mac": "11 以降", "plat.win": "10 以降", + "chan.label": "リリース", + "chan.latest": "最新版", + "chan.stable": "安定版", + "chan.title": "週に 1 バージョン、3 日間使われてから", "foot.start": "はじめに", "foot.feed": "更新フィード", "foot.contrib": "コントリビューター", @@ -444,6 +452,10 @@ const de = { "fin.gh": "Auf GitHub ansehen", "plat.mac": "11 oder neuer", "plat.win": "10 oder neuer", + "chan.label": "Version", + "chan.latest": "Neueste", + "chan.stable": "Stabil", + "chan.title": "Eine Version pro Woche, nach drei Tagen Nutzung", "foot.start": "Erste Schritte", "foot.feed": "Update-Feed", "foot.contrib": "Mitwirkende", diff --git a/site/public/index.html b/site/public/index.html index 42b5bb2d8..bc1619432 100644 --- a/site/public/index.html +++ b/site/public/index.html @@ -244,6 +244,16 @@ html[data-os="windows"] .btn .os-windows, html[data-os="linux"] .btn .os-linux { .plats span { color: var(--ink3); font-size: 12.5px; justify-self: end; } .plats a { color: var(--ink2); text-decoration: none; } .plats a:hover { color: var(--ink); text-decoration: underline; } +/* Latest or Stable: which release the platform links download */ +.chan { display: inline-flex; gap: 2px; margin-top: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); } +.chan button { display: inline-flex; align-items: baseline; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink3); font: inherit; font-size: 13px; cursor: pointer; transition: background-color .15s ease, color .15s ease; } +.chan button b { font-weight: 500; color: var(--ink2); transition: color .15s ease; } +.chan button[aria-pressed="true"] { background: var(--card); color: var(--ink2); box-shadow: 0 1px 2px rgba(0,0,0,.06); } +.chan button[aria-pressed="true"] b { color: var(--ink); } +@media (hover: hover) and (pointer: fine) { .chan button:hover b { color: var(--ink); } } +.chan button:focus-visible { outline: 2px solid var(--ink3); outline-offset: 1px; } +.chan + .plats { margin-top: 16px; } +.chan[hidden], .to-stable[hidden] { display: none; } footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink3); } footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; } footer .links { margin-left: auto; display: flex; gap: 20px; } @@ -443,7 +453,7 @@ footer a:hover { color: var(--ink); } Install from terminal -
+
@@ -740,6 +750,10 @@ magpie tui # t
Free, open source, native. For macOS, Windows and Linux.
+