feat(public-frontend): 公开前端 UI 视觉升级 #22
Reference in New Issue
Block a user
Delete Branch "devin/1782270985-public-ui-redesign"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
公开前端(
public-frontend/,即 goods.tangshasha.com)此前风格偏朴素(灰底白卡、系统字体)。本 PR 引入一套统一的品牌设计系统并套用到所有页面,在不增加功能、不改 API 的前提下提升视觉质感。纯前端样式改动。设计系统(基础设施)
tailwind.config.js: 新增brand色阶(50–900,翠绿/teal)、Inter字体、三档阴影(card/card-hover/glow)、2xl/3xl圆角、fade-up入场动效。index.html: 引入 Inter 字体 +theme-color/descriptionmeta。index.css: 双径向渐变背景,新增@layer components复用类.card/.input/.btn-primary/.btn-ghost/.chip。页面套用
App.tsx: 顶栏改为 sticky + 毛玻璃,logo 渐变图标,导航 active 态,页脚收录数胶囊徽章。Home.tsx: 重做 hero(渐变标题「天工」、徽章、搜索框 + 示例 chips),未搜索时展示三张特性卡;搜索结果列表加 hover 与箭头指示。ProductView.tsx/Contribute.tsx/ApiDocs.tsx/Account.tsx: 统一套用.card/.input/.btn-primary,徽章改为 rounded-full brand 配色,emerald 硬编码替换为 brand 色阶。验证
npm run build(tsc + vite build)通过。