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.badgeText && ( @@ -78,37 +76,9 @@ 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;
- -