diff --git a/src/components/SiteFooter.astro b/src/components/SiteFooter.astro
index 42bb619..691990d 100644
--- a/src/components/SiteFooter.astro
+++ b/src/components/SiteFooter.astro
@@ -1,5 +1,5 @@
---
-import { getLang, t, localePath } from "~/i18n";
+import { getLang, t, localePath, sponsorHref } from "~/i18n";
import TwMark from "./TwMark.astro";
import Bi from "./Bi.astro";
@@ -28,6 +28,9 @@ const link = (path: string) => ({ href: localePath(lang, path), "data-localize":
+
+
+
diff --git a/src/components/pages/LitePage.astro b/src/components/pages/LitePage.astro
index b10de07..ddd62c1 100644
--- a/src/components/pages/LitePage.astro
+++ b/src/components/pages/LitePage.astro
@@ -13,7 +13,7 @@ import TwMark from "~/components/TwMark.astro";
import Base from "~/layouts/Base.astro";
import SiteHeader from "~/components/SiteHeader.astro";
import SiteFooter from "~/components/SiteFooter.astro";
-import { getLang, localePath, t } from "~/i18n";
+import { getLang, localePath, sponsorHref, t } from "~/i18n";
import { liteCopy } from "~/i18n/pages/lite";
import { formatSize, getLatestLiteRelease } from "~/lib/github";
import { liteLd } from "~/lib/structured-data";
@@ -133,6 +133,7 @@ const archLabel = { x64: "x64", arm64: "ARM64" } as const;
{c.hero.ctaSecondary}
+
@@ -945,6 +946,27 @@ const archLabel = { x64: "x64", arm64: "ARM64" } as const;
background: rgba(255, 255, 255, 0.04);
border-color: rgba(255, 255, 255, 0.26);
}
+ .sponsor {
+ margin: 20px 0 0;
+ font-size: 14px;
+ color: var(--color-dim);
+ }
+ /* From sm up the download button's version line hangs below the buttons (LiteDownload) */
+ @media (min-width: 640px) {
+ .sponsor {
+ margin-top: 48px;
+ }
+ }
+ .sponsor a {
+ color: var(--color-muted);
+ text-decoration: underline;
+ text-decoration-color: rgba(255, 255, 255, 0.2);
+ text-underline-offset: 3px;
+ transition: color 160ms;
+ }
+ .sponsor a:hover {
+ color: var(--color-text);
+ }
@media (max-width: 1023px) {
.hero-grid {
grid-template-columns: 1fr;
diff --git a/src/i18n/index.ts b/src/i18n/index.ts
index 5d1333c..d17e665 100644
--- a/src/i18n/index.ts
+++ b/src/i18n/index.ts
@@ -3,6 +3,9 @@
export type Lang = "en" | "zh-CN";
+/** Where the sponsor line on the Lite page and in the footer leads; the Lite README links to the same address */
+export const sponsorHref = "mailto:fylorn@outlook.com?subject=ThinkWatch%20Lite%20Sponsorship";
+
const dict = {
en: {
common: {
@@ -11,6 +14,8 @@ const dict = {
copy: "Copy",
copied: "Copied ✓",
skipToContent: "Skip to content",
+ sponsors: "Sponsors: ",
+ sponsorsCta: "Want to appear here?",
},
nav: {
@@ -241,6 +246,8 @@ const dict = {
copy: "复制",
copied: "已复制 ✓",
skipToContent: "跳转到正文",
+ sponsors: "赞助商:",
+ sponsorsCta: "想出现在这里吗?",
},
nav: {