Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

style(site): refine community tutorial card layout and copywriting

tianma-if3c2c24c33411
diff --git a/apps/site/src/components/community-tutorial.astro b/apps/site/src/components/community-tutorial.astro
index eacc2524..9536e941 100644
--- a/apps/site/src/components/community-tutorial.astro
+++ b/apps/site/src/components/community-tutorial.astro
@@ -3,22 +3,50 @@ import { Icon } from "astro-icon/components";
---
<aside
- class="not-prose relative left-1/2 my-10 w-[min(92vw,960px)] -translate-x-1/2 rounded-2xl border border-brand-border bg-brand-soft/40 px-6 py-6 sm:px-8"
+ class="not-prose relative left-1/2 my-12 w-[min(92vw,960px)] -translate-x-1/2 overflow-hidden rounded-2xl border border-brand-border/60 bg-gradient-to-br from-brand-soft/80 via-white to-brand-soft/30 p-6 shadow-xs transition hover-lift sm:p-8"
aria-labelledby="community-tutorial-title"
>
- <p class="text-sm font-semibold text-brand-text">社区教程</p>
- <a
- id="community-tutorial-title"
- class="mt-2 inline-flex items-start gap-2 text-lg font-bold leading-7 text-slate-900 transition hover:text-brand-text"
- href="https://www.dujin.org/23773.html"
- target="_blank"
- rel="noopener noreferrer"
- >
- <span>一分钟部署零成本、开源且原生支持 AI Agent 的个人笔记 EdgeEver</span>
- <Icon class="mt-1 h-5 w-5 shrink-0" name="bx:bx-link-external" />
- </a>
- <p class="mt-3 text-sm leading-6 text-slate-600">
- 由独立博主「缙哥哥」撰写的第三方中文图文教程,内容由其独立维护。感谢他为 EdgeEver
- 提供了许多宝贵建议与测试环境支持。
- </p>
+ <!-- Decorative soft glow background -->
+ <div class="absolute -right-16 -top-16 -z-10 h-32 w-32 rounded-full bg-brand-muted/20 blur-2xl"></div>
+
+ <div class="flex flex-col justify-between min-w-0">
+ <div>
+ <div class="flex items-center gap-2">
+ <span class="inline-flex items-center gap-1 rounded-full bg-brand-soft px-2.5 py-0.5 text-xs font-semibold text-brand-text border border-brand-border/30 shadow-xs">
+ <Icon class="h-3.5 w-3.5" name="bx:bx-award" />
+ 社区推荐教程
+ </span>
+ </div>
+
+ <a
+ id="community-tutorial-title"
+ class="group mt-3 inline-flex items-start gap-1.5 text-lg font-bold leading-snug text-slate-900 transition hover:text-brand-text"
+ href="https://www.dujin.org/23773.html"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <span class="underline decoration-slate-200 decoration-2 underline-offset-4 transition group-hover:decoration-brand-border">
+ 一分钟部署零成本、开源且原生支持 AI Agent 的个人笔记 EdgeEver
+ </span>
+ <Icon class="mt-1 h-4 w-4 shrink-0 text-slate-400 transition group-hover:text-brand-text group-hover:translate-x-0.5 group-hover:-translate-y-0.5" name="bx:bx-link-external" />
+ </a>
+
+ <p class="mt-3 text-xs leading-relaxed text-slate-500">
+ 由独立博主「缙哥哥」精心撰写的第三方中文图文教程(内容由其独立维护)。在此特别感谢他在项目早期提供了许多宝贵建议与测试环境支持!
+ </p>
+ </div>
+
+ <div class="mt-4 pt-4 border-t border-slate-100/60 flex items-center justify-end">
+ <a
+ href="https://www.dujin.org/23773.html"
+ target="_blank"
+ rel="noopener noreferrer"
+ class="inline-flex items-center gap-1 text-xs font-semibold text-brand transition hover:text-brand-hover hover:underline"
+ >
+ 阅读教程 <Icon class="h-4 w-4" name="bx:bx-right-arrow-alt" />
+ </a>
+ </div>
+ </div>
</aside>
+
+