From d03554f1ee2dcee7092fa140dde02a1bf88138e0 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Sat, 29 Aug 2026 11:44:38 +0800 Subject: [PATCH] feat(site): refine homepage messaging and accessibility --- apps/site/public/_headers | 2 + apps/site/public/_redirects | 1 + apps/site/src/components/footer.astro | 10 +- apps/site/src/components/hero.astro | 118 ++---------------- .../src/components/marquee-showcase.astro | 10 +- apps/site/src/components/navbar/navbar.astro | 39 ++++-- .../blog/ai-agent-deploy-cloudflare.md | 4 +- .../content/blog/evernote-migration-guide.md | 4 +- .../blog_en/ai-agent-deploy-cloudflare.md | 4 +- .../blog_en/evernote-migration-guide.md | 4 +- apps/site/src/i18n.ts | 64 ++++------ apps/site/src/pages/en/index.astro | 2 +- apps/site/src/pages/index.astro | 2 +- 13 files changed, 85 insertions(+), 179 deletions(-) create mode 100644 apps/site/public/_headers create mode 100644 apps/site/public/_redirects diff --git a/apps/site/public/_headers b/apps/site/public/_headers new file mode 100644 index 00000000..ed88e9a2 --- /dev/null +++ b/apps/site/public/_headers @@ -0,0 +1,2 @@ +/_astro/* + Cache-Control: public, max-age=31536000, immutable diff --git a/apps/site/public/_redirects b/apps/site/public/_redirects new file mode 100644 index 00000000..68346be8 --- /dev/null +++ b/apps/site/public/_redirects @@ -0,0 +1 @@ +https://www.edgeever.org/* https://edgeever.org/:splat 301 diff --git a/apps/site/src/components/footer.astro b/apps/site/src/components/footer.astro index 7d29e2f4..ee6b75b9 100644 --- a/apps/site/src/components/footer.astro +++ b/apps/site/src/components/footer.astro @@ -16,17 +16,17 @@ const copy = siteCopy[locale].nav; href="https://www.dujin.org/" target="_blank" rel="noopener noreferrer" - title="感谢独立博主缙哥哥在项目成长中提出的宝贵建议与教程分享" - class="hover:text-emerald-700 transition-colors" + aria-label={locale === "en-US" ? "Thanks to independent blogger Dujin for product feedback and tutorials" : "感谢独立博主缙哥哥在项目成长中提出的宝贵建议与教程分享"} + class="inline-flex min-h-11 sm:min-h-0 items-center hover:text-emerald-700 transition-colors" > {locale === "en-US" ? "Thanks" : "特别致谢"} • - + {copy.contact} • - + {copy.privacy} • @@ -34,7 +34,7 @@ const copy = siteCopy[locale].nav; href="https://github.com/tianma-if/edgeever" target="_blank" rel="noopener" - class="hover:text-emerald-700 transition-colors" + class="inline-flex min-h-11 sm:min-h-0 items-center hover:text-emerald-700 transition-colors" > GitHub diff --git a/apps/site/src/components/hero.astro b/apps/site/src/components/hero.astro index cfcfe061..82a26d09 100644 --- a/apps/site/src/components/hero.astro +++ b/apps/site/src/components/hero.astro @@ -8,8 +8,6 @@ import { getLocalizedPath, getSiteLocale, siteCopy } from "@/i18n"; const locale = getSiteLocale(Astro.url.pathname); const copy = siteCopy[locale].hero; - -const agentPromptText = copy.agentPromptText; ---
@@ -23,8 +21,8 @@ const agentPromptText = copy.agentPromptText; - +
- - - -
- - {copy.terminalSub} -
- - -
+
{locale === "en-US" ? "Get Apps:" : "获取客户端:"} @@ -116,7 +86,7 @@ const agentPromptText = copy.agentPromptText; href="https://github.com/tianma-if/edgeever/releases" target="_blank" rel="noopener" - class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" + class="inline-flex min-h-11 sm:min-h-0 items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" > macOS @@ -125,7 +95,7 @@ const agentPromptText = copy.agentPromptText; href="https://apps.apple.com/us/app/edgeever/id6792625631" target="_blank" rel="noopener" - class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" + class="inline-flex min-h-11 sm:min-h-0 items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" > iOS @@ -134,7 +104,7 @@ const agentPromptText = copy.agentPromptText; href="https://play.google.com/store/apps/details?id=org.edgeever.mobile" target="_blank" rel="noopener" - class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" + class="inline-flex min-h-11 sm:min-h-0 items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" > Android @@ -143,7 +113,7 @@ const agentPromptText = copy.agentPromptText; href="https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo" target="_blank" rel="noopener" - class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" + class="inline-flex min-h-11 sm:min-h-0 items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-100/90 hover:bg-emerald-50 hover:text-emerald-700 hover:border-emerald-300 border border-slate-200/80 text-[11px] font-medium text-slate-700 transition-all shadow-2xs" > {locale === "en-US" ? "Clipper" : "剪藏插件"} @@ -191,78 +161,6 @@ const agentPromptText = copy.agentPromptText;
- -