feat: 添加顶部公告栏跳转链接和关闭按钮功能

- 新增 AnnouncementBar 客户端组件支持点击跳转
- 添加关闭按钮,状态保存至 localStorage
- 刷新页面后记住用户关闭状态
- 支持 i18n 配置公告内容和链接

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-29 19:57:47 +08:00
co-authored by Claude
parent a8a847beb2
commit 3ab2d2057c
4 changed files with 165 additions and 34 deletions
+31 -4
View File
@@ -3,15 +3,19 @@
"search": "Search",
"loading": "Loading...",
"noResults": "No results found",
"noProjects": "No projects yet",
"viewMore": "View More",
"backToHome": "Back to Home"
"backToHome": "Back to Home",
"viewDetails": "VIEW DETAILS"
},
"home": {
"title": "AI Project Navigator",
"subtitle": "Discover and explore AI projects",
"featuredProjects": "Featured Projects",
"browseByTag": "Browse by Tag",
"searchPlaceholder": "Search AI projects..."
"searchPlaceholder": "Search AI projects...",
"metaTitle": "Agent Park - AI Project Navigator",
"metaDescription": "Discover and explore quality AI projects from across the web"
},
"project": {
"details": "Project Details",
@@ -21,11 +25,34 @@
"website": "Website",
"github": "GitHub",
"huggingface": "HuggingFace",
"paper": "Paper"
"paper": "Paper",
"submitYourProject": "Submit Your Project",
"submitProjectTitle": "Submit Your Project",
"submitProjectDescription": "Have an AI tool worth sharing? Add it to Agent Park.",
"submitNow": "SUBMIT NOW"
},
"navigation": {
"home": "Home",
"projects": "Projects",
"about": "About"
"blog": "Blog",
"about": "About",
"submitProject": "SUBMIT PROJECT"
},
"layout": {
"announcement": "DISCOVER THE FUTURE OF AI AGENTS",
"announcementHref": "/projects",
"stayUpdated": "STAY UPDATED",
"stayUpdatedDesc": "Get the latest AI tools and trends delivered straight to your inbox. No spam, just intelligence.",
"email": "E-mail",
"subscribe": "SUBSCRIBE",
"subscribeConsent": "Subscribe to Agent Park updates",
"footerDesc": "Discover and explore high-quality AI projects from across the web. Curated for developers and enthusiasts.",
"resources": "Resources",
"legal": "Legal",
"privacyPolicy": "Privacy Policy",
"termsOfService": "Terms of Service",
"followUs": "Follow Us",
"copyright": "© 2025 Agent Park. All rights reserved.",
"designedFor": "DESIGNED FOR AI BUILDERS"
}
}