Skip to content

feat: add /desktop page with download buttons#3

Merged
chen-ran merged 6 commits into
mainfrom
feat/desktop-page
May 13, 2026
Merged

feat: add /desktop page with download buttons#3
chen-ran merged 6 commits into
mainfrom
feat/desktop-page

Conversation

@sheepbox8646
Copy link
Copy Markdown
Member

Summary

  • 引入 vue-router,新增 /desktop 路由;首页内容抽到 HomePage.vue,桌面页为 DesktopPage.vue
  • 抽取共享 TopBar.vue:GitHub 文本项改为右侧图标按钮;新增 Desktop 导航;/desktop 隐藏中间导航;支持 brandSuffix,桌面页 logo 显示为 Memoh Desktop
  • 新建桌面页:极简大标题 + 副标题 + 紫色下载下拉按钮(macOS Apple Silicon / macOS Intel / Windows x64 / Linux x64)+ 紫色描边的「文档」按钮
  • 引入 @iconify/vue + mdi 图标集,使用真品牌 logo(mdi:apple / mdi:microsoft-windows / mdi:linux),替代之前的 lucide 水果苹果与手写 SVG
  • i18n 补充 nav.desktopdesktop.* 文案;sitemap.xml 增加 /desktop

Notes

  • 下载链接当前为 # 占位,等真实 URL 后替换 DesktopPage.vue 中的 downloadOptions 数组即可
  • history 模式下,生产静态托管需配置 SPA fallback(Vercel/Netlify 默认支持;Nginx 需 try_files $uri /index.html;

Test plan

  • pnpm build 通过(已本地验证)
  • 访问 /:首页内容、动画、topbar 导航(Docs / Supermarket / Desktop)正常
  • 访问 /desktop:标题、副标题、紫色下载下拉、文档按钮显示正确,topbar 中间导航隐藏,logo 变为 Memoh Desktop
  • 下载下拉点击展开/外部点击关闭,4 个 OS 选项的图标为真品牌 logo
  • 中英文切换文案正确;移动端 topbar 表现正常

sheepbox8646 and others added 6 commits May 4, 2026 16:29
- Introduce vue-router with HomePage / DesktopPage routes
- Extract shared TopBar: GitHub moves to right side as icon, add Desktop nav, hide nav on /desktop, support brandSuffix
- Add DesktopPage with hero title/subtitle and a purple download dropdown (macOS Apple Silicon, macOS Intel, Windows x64, Linux x64) plus a purple outlined Docs button
- Use @iconify/vue with mdi brand icons for real Apple/Windows/Linux logos
- i18n: add nav.desktop and desktop.* keys, update sitemap.xml
- useDark({ initialValue: 'dark' }) so first-time visitors see dark mode while user toggles still persist via localStorage
- Inline boot script in index.html sets the .dark class before Vue mounts to avoid FOUC
@chen-ran chen-ran merged commit 86e7229 into main May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants