AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
Revert "feat(site): 针对移动端触控与人体工学进行专属体验深度优化"
tianma-if189625ea0293
diff --git a/apps/site/src/components/hero.astro b/apps/site/src/components/hero.astroindex 12f0d43d..706860e0 100644--- a/apps/site/src/components/hero.astro+++ b/apps/site/src/components/hero.astro@@ -13,28 +13,25 @@ const agentPromptText = copy.agentPromptText;---<main class="relative grid gap-8 lg:gap-10 lg:grid-cols-2 place-items-center pt-4 pb-10 md:pt-10 md:pb-16 overflow-hidden max-w-full">- <!-- Background Glow Orbs & Meteors Container -->+ <!-- Background Glow Orbs & Meteors Container (strictly overflow-hidden) --><div class="absolute inset-0 overflow-hidden pointer-events-none z-0"><div class="absolute top-0 left-1/4 w-[280px] sm:w-[450px] h-[280px] sm:h-[450px] bg-brand/10 rounded-full blur-3xl animate-slow-spin"></div><div class="absolute bottom-0 right-1/4 w-[240px] sm:w-[380px] h-[240px] sm:h-[380px] bg-emerald-400/10 rounded-full blur-3xl animate-float"></div>- <Meteors number={12} client:load />+ <Meteors number={16} client:load /></div><div class="relative z-20 w-full max-w-full flex flex-col items-start min-w-0">{copy.badgeText && (<ahref={`${getLocalizedPath(locale, "/")}blog?tag=migration`}- class="animate-rise flex items-center gap-2 max-w-full min-w-0 px-3.5 py-1.5 mb-5 md:mb-6 text-xs text-brand bg-brand/5 border border-brand-border/30 hover:border-brand/40 hover:bg-brand/10 rounded-full backdrop-blur-sm select-none hover:-translate-y-0.5 transition-all duration-300 group/badge cursor-pointer"+ class="animate-rise flex items-center gap-2 max-w-full min-w-0 px-3 py-1.5 mb-5 md:mb-6 text-xs text-brand bg-brand/5 border border-brand-border/30 hover:border-brand/40 hover:bg-brand/10 rounded-full backdrop-blur-sm select-none hover:-translate-y-0.5 transition-all duration-300 group/badge cursor-pointer"style="animation-delay: 0ms;"><span class="relative flex h-2 w-2 shrink-0"><span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-brand opacity-75"></span><span class="relative inline-flex rounded-full h-2 w-2 bg-brand"></span></span>- <span class="text-slate-600 font-medium group-hover/badge:text-brand transition-colors text-[11px] sm:text-xs truncate min-w-0 flex-1">- <span class="hidden sm:inline">{copy.badgeText}</span>- <span class="inline sm:hidden">{locale === 'zh-CN' ? '💡 印象笔记 / Notion 零成本平替,双 MCP 搬家' : '💡 Serverless Evernote Alternative'}</span>- </span>+ <span class="text-slate-600 font-medium group-hover/badge:text-brand transition-colors text-[11px] sm:text-xs truncate min-w-0 flex-1">{copy.badgeText}</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="w-3 h-3 text-slate-400 group-hover/badge:text-brand transition-all duration-300 transform group-hover/badge:translate-x-0.5 shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" /></svg>@@ -51,12 +48,12 @@ const agentPromptText = copy.agentPromptText;<span class="hero-slogan block mt-3 sm:mt-4 max-w-xl text-base sm:text-lg md:text-xl font-normal leading-relaxed text-slate-600">{copy.slogan}</span></h1>- <!-- Primary Action Buttons (Mobile 44px+ touch targets) -->+ <!-- Primary Action Buttons --><div class="animate-rise mt-6 sm:mt-8 flex flex-col sm:flex-row items-stretch sm:items-center gap-3 w-full sm:w-auto max-w-full z-20" style="animation-delay: 160ms;"><Linkhref="https://demo.edgeever.org"target="_blank"- class="group flex gap-2 items-center justify-center min-h-[44px] px-6 py-3 text-white bg-brand border-transparent shadow-[0_12px_30px_-14px_rgb(var(--edgeever-brand-rgb)/0.8)] hover:bg-brand-hover hover:shadow-brand/40 active:scale-[0.99] transition-all duration-300 hover:-translate-y-0.5 rounded-full font-bold text-sm w-full sm:w-auto text-center"+ class="group flex gap-2 items-center justify-center px-6 py-3 text-white bg-brand border-transparent shadow-[0_12px_30px_-14px_rgb(var(--edgeever-brand-rgb)/0.8)] hover:bg-brand-hover hover:shadow-brand/40 transition-all duration-300 hover:-translate-y-0.5 rounded-full font-semibold text-sm w-full sm:w-auto text-center"rel="noopener"><Icon class="w-4 h-4" name="bx:bx-show" /><span>{copy.demo}</span>@@ -66,7 +63,7 @@ const agentPromptText = copy.agentPromptText;style="outline"rel="noopener"href="https://github.com/tianma-if/edgeever"- class="flex gap-2 items-center justify-center min-h-[44px] px-6 py-3 border border-slate-200 hover:border-slate-400 bg-white/80 backdrop-blur-sm text-slate-800 active:scale-[0.99] transition-all rounded-full font-bold text-sm hover:-translate-y-0.5 w-full sm:w-auto text-center"+ class="flex gap-2 items-center justify-center px-6 py-3 border border-slate-200 hover:border-slate-400 bg-white/80 backdrop-blur-sm text-slate-800 transition-all rounded-full font-semibold text-sm hover:-translate-y-0.5 w-full sm:w-auto text-center"target="_blank"><Icon class="text-slate-800 w-4 h-4" name="bx:bxl-github" /><span>GitHub Star</span>@@ -74,64 +71,39 @@ const agentPromptText = copy.agentPromptText;<arel="noopener"href={getLocalizedPath(locale, "/blog/ai-agent-deploy-cloudflare")}- class="flex gap-2 items-center justify-center min-h-[44px] px-5 py-3 bg-brand/5 border border-brand/20 hover:border-brand/40 text-brand-text hover:bg-brand/10 active:scale-[0.99] transition-all rounded-full font-bold text-sm hover:-translate-y-0.5 w-full sm:w-auto text-center"+ class="flex gap-2 items-center justify-center px-5 py-3 bg-brand/5 border border-brand/20 hover:border-brand/40 text-brand-text hover:bg-brand/10 transition-all rounded-full font-semibold text-sm hover:-translate-y-0.5 w-full sm:w-auto text-center"><Icon class="w-4 h-4" name="simple-icons:cloudflare" /><span>{copy.agentInstall}</span></a></div>- <!-- Agent Terminal Prompt Pill (Desktop & Mobile Ergonomic Touch Bar) -->+ <!-- Agent Terminal Prompt Pill (Pireel style) --><div class="animate-rise mt-6 w-full max-w-full sm:max-w-lg z-30 relative" style="animation-delay: 240ms;"><!-- Hidden Textarea for clean text copying --><textarea id="agent-prompt-textarea" class="sr-only" aria-hidden="true" readonly>{agentPromptText}</textarea><div class="flex flex-col gap-1.5 w-full max-w-full">- <!-- Desktop Pill --><buttontype="button"id="copy-agent-prompt"title="点击复制 AI 部署 Prompt 指令"- class="group relative hidden sm:flex items-center justify-between gap-2 w-full max-w-full rounded-full border border-slate-200/90 bg-white/90 backdrop-blur hover:border-emerald-500/60 p-1.5 pl-4 transition-all hover:shadow-md cursor-pointer text-left select-none z-30 min-w-0"+ class="group relative flex items-center justify-between gap-2 w-full max-w-full rounded-2xl sm:rounded-full border border-slate-200/90 bg-white/90 backdrop-blur hover:border-emerald-500/60 p-2 sm:p-1.5 sm:pl-4 transition-all hover:shadow-md cursor-pointer text-left select-none z-30 min-w-0"><div class="flex items-center gap-2 overflow-hidden pointer-events-none min-w-0 flex-1"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-emerald-600 shrink-0"><path d="M12 19h8"></path><path d="m4 17 6-6-6-6"></path></svg>- <span class="font-mono text-xs text-slate-700 font-medium truncate min-w-0 flex-1">+ <span class="font-mono text-[10.5px] sm:text-xs text-slate-700 font-medium truncate min-w-0 flex-1">{copy.terminalCmd}</span></div><span class="copy-icon-box grid h-7 w-7 shrink-0 place-items-center rounded-full bg-slate-100 text-slate-500 group-hover:bg-emerald-50 group-hover:text-emerald-700 transition-colors pointer-events-none"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></span>- <span id="prompt-tooltip" class="absolute -top-10 right-4 hidden rounded-lg bg-emerald-700 px-3 py-1.5 text-xs font-semibold text-white shadow-lg transition-opacity pointer-events-none z-50 flex items-center gap-1.5">+ <span id="prompt-tooltip" class="absolute -top-10 right-2 sm:right-4 hidden rounded-lg bg-emerald-700 px-3 py-1.5 text-xs font-semibold text-white shadow-lg transition-opacity pointer-events-none z-50 flex items-center gap-1.5"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg><span>{copy.copySuccess}</span></span></button>-- <!-- Mobile Touch Optimized Copy Card -->- <button- type="button"- id="copy-agent-prompt-mobile"- class="group relative flex sm:hidden items-center justify-between gap-2.5 w-full rounded-2xl border border-slate-200/90 bg-white/95 p-3 shadow-xs active:scale-[0.99] transition-all cursor-pointer text-left select-none z-30"- >- <div class="flex items-center gap-2 overflow-hidden pointer-events-none min-w-0 flex-1">- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-emerald-600 shrink-0"><path d="M12 19h8"></path><path d="m4 17 6-6-6-6"></path></svg>- <div class="flex flex-col min-w-0">- <span class="text-xs font-bold text-slate-800 truncate">- {locale === 'zh-CN' ? '复制 AI 自动化部署 Prompt' : 'Copy AI Deployment Prompt'}- </span>- <span class="text-[10px] text-slate-500 font-mono truncate">- {copy.terminalCmd}- </span>- </div>- </div>- <span class="mobile-copy-badge shrink-0 px-3 py-1.5 bg-emerald-50 text-emerald-700 font-bold text-xs rounded-xl border border-emerald-200/80 flex items-center gap-1">- <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg>- <span>{locale === 'zh-CN' ? '一键复制' : 'Copy'}</span>- </span>- </button>-<span class="text-[10.5px] sm:text-[11.5px] text-slate-600 pl-2 sm:pl-4 font-medium select-none truncate max-w-full">{copy.terminalSub}</span></div></div>@@ -198,7 +170,7 @@ const agentPromptText = copy.agentPromptText;}document.addEventListener("click", function (e) {- var btn = e.target && e.target.closest ? e.target.closest("#copy-agent-prompt, #copy-agent-prompt-mobile") : null;+ var btn = e.target && e.target.closest ? e.target.closest("#copy-agent-prompt") : null;if (!btn) return;e.preventDefault();@@ -209,28 +181,23 @@ const agentPromptText = copy.agentPromptText;if (!textToCopy) return;var tooltip = document.getElementById("prompt-tooltip");- var iconContainer = document.querySelector(".copy-icon-box");- var mobileBadge = document.querySelector(".mobile-copy-badge");+ var iconContainer = btn.querySelector(".copy-icon-box");function showSuccess() {- if (btn) btn.classList.add("border-emerald-500", "bg-emerald-50");- if (tooltip) tooltip.classList.remove("hidden");- if (mobileBadge) {- mobileBadge.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="text-emerald-600"><polyline points="20 6 9 17 4 12"></polyline></svg><span>已复制</span>';- mobileBadge.classList.add("bg-emerald-600", "text-white");+ btn.classList.add("border-emerald-500", "bg-emerald-50");+ if (tooltip) {+ tooltip.classList.remove("hidden");}if (iconContainer) {iconContainer.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="text-emerald-600"><polyline points="20 6 9 17 4 12"></polyline></svg>';}setTimeout(function () {- if (btn) btn.classList.remove("border-emerald-500", "bg-emerald-50");- if (tooltip) tooltip.classList.add("hidden");- if (mobileBadge) {- mobileBadge.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg><span>一键复制</span>';- mobileBadge.classList.remove("bg-emerald-600", "text-white");+ btn.classList.remove("border-emerald-500", "bg-emerald-50");+ if (tooltip) {+ tooltip.classList.add("hidden");}if (iconContainer) {- iconContainer.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg>';+ iconContainer.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg>';}}, 2500);}diff --git a/apps/site/src/components/mobile-sticky-bar.astro b/apps/site/src/components/mobile-sticky-bar.astrodeleted file mode 100644index 3fce7be3..00000000--- a/apps/site/src/components/mobile-sticky-bar.astro+++ /dev/null@@ -1,62 +0,0 @@-----import { getLocalizedPath, getSiteLocale, siteCopy } from "@/i18n";-import { Icon } from "astro-icon/components";--const locale = getSiteLocale(Astro.url.pathname);-const copy = siteCopy[locale].hero;------<!-- Mobile Floating Bottom Action Bar (Appears on Mobile Scroll) -->-<div- id="mobile-sticky-bar"- class="fixed bottom-4 left-4 right-4 z-40 sm:hidden transition-all duration-300 transform translate-y-20 opacity-0 pointer-events-none"->- <div class="flex items-center justify-between p-2 pl-3.5 rounded-full border border-slate-200/90 bg-white/95 backdrop-blur-lg shadow-xl border-slate-100">- <a href={getLocalizedPath(locale, "/")} class="flex items-center gap-1.5 shrink-0">- <span class="flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-[var(--edgeever-brand-logo-bg)] shadow-2xs">- <svg class="h-4 w-4" viewBox="0 0 64 64" role="img" aria-hidden="true">- <rect x="14" y="10" width="36" height="44" rx="8" fill="var(--edgeever-brand-logo-mark)" />- <path d="M24 23h18v5H30v5h11v5H30v6h13v5H24V23Z" fill="var(--edgeever-brand-surface)" />- <path d="M19 16h26" stroke="var(--edgeever-brand-logo-accent)" stroke-width="3" stroke-linecap="round" />- </svg>- </span>- <span class="font-bold text-slate-900 text-xs tracking-tight">EdgeEver</span>- </a>-- <div class="flex items-center gap-1.5">- <a- href="https://demo.edgeever.org"- target="_blank"- rel="noopener"- class="inline-flex items-center gap-1 px-3 py-1.5 text-[11px] font-bold text-white bg-brand rounded-full shadow-xs active:scale-95 transition-transform"- >- <Icon name="bx:bx-show" class="w-3.5 h-3.5" />- <span>{copy.demo}</span>- </a>- <a- href={getLocalizedPath(locale, "/blog/ai-agent-deploy-cloudflare")}- class="inline-flex items-center gap-1 px-3 py-1.5 text-[11px] font-bold text-brand-text bg-emerald-50 border border-emerald-200/80 rounded-full active:scale-95 transition-transform"- >- <Icon name="simple-icons:cloudflare" class="w-3 h-3 text-emerald-600" />- <span>{copy.agentInstall}</span>- </a>- </div>- </div>-</div>--<script is:inline>- (function () {- var bar = document.getElementById("mobile-sticky-bar");- if (!bar) return;-- window.addEventListener("scroll", function () {- if (window.scrollY > 320) {- bar.classList.remove("translate-y-20", "opacity-0", "pointer-events-none");- bar.classList.add("translate-y-0", "opacity-100");- } else {- bar.classList.add("translate-y-20", "opacity-0", "pointer-events-none");- bar.classList.remove("translate-y-0", "opacity-100");- }- }, { passive: true });- })();-</script>diff --git a/apps/site/src/layouts/Layout.astro b/apps/site/src/layouts/Layout.astroindex a201b557..84520ec6 100644--- a/apps/site/src/layouts/Layout.astro+++ b/apps/site/src/layouts/Layout.astro@@ -2,7 +2,6 @@import { SEO } from "astro-seo";import Footer from "@/components/footer.astro";import Navbar from "@/components/navbar/navbar.astro";-import MobileStickyBar from "@/components/mobile-sticky-bar.astro";import { getLocalizedPath, getSiteLocale, siteCopy, siteLocaleDataAttribute, siteLocaleStorageKey } from "@/i18n";import "@fontsource-variable/inter/index.css";import "@fontsource-variable/bricolage-grotesque";@@ -217,7 +216,6 @@ const localeRedirectScript = `(() => {<Navbar /><slot /><Footer />- <MobileStickyBar /><style is:global>/* Improve Page speed *//* https://css-tricks.com/almanac/properties/c/content-visibility/ */