feat: add draggable glass tab bar and mobile calendar prices

This commit is contained in:
陈煜 committed 2026-10-08 14:14:07 +08:00
1 parent 40b8d4dc99
commit f101415722
8 files changed
+412 -57

No files matched your search

+11 -19
View File
@@ -1,3 +1,4 @@
import { PrimaryNav } from './PrimaryNav';
import { t as tr, useLocale, LanguagePicker } from './i18n';
import {
useState,
@@ -1087,25 +1088,16 @@ export default function App() {
<span>W</span> WorthPath
</div>
<p className="nav-caption">{tr('我的资产空间')}</p>
<nav
className="primary-nav"
aria-label={tr('主导航')}
style={{ gridTemplateColumns: `repeat(${visibleNav.length}, minmax(0, 1fr))` }}
>
{visibleNav.map(([key, Icon, label]) => (
<button
key={key}
className={activeGroup === key ? 'active' : ''}
aria-current={activeGroup === key ? 'page' : undefined}
onClick={() => {
navigateTo(navigationDestination(key, hiddenMenus, user.role)!);
}}
>
<Icon size={19} />
<span>{tr(label)}</span>
</button>
))}
</nav>
<PrimaryNav
active={activeGroup}
label={tr('主导航')}
items={visibleNav.map(([key, Icon, label]) => ({
key,
label: tr(label),
icon: <Icon size={19} />,
select: () => navigateTo(navigationDestination(key, hiddenMenus, user.role)!),
}))}
/>
<div className="side-bottom">
<div className="avatar">{user.username.slice(0, 1).toUpperCase()}</div>
<div>