2 Commits

Author SHA1 Message Date
Eamon-meng
d83ad11241 我的账单页面取消退款和操作列 & 后台Header添加返回首页功能 2026-03-13 14:15:29 +08:00
Eamon-meng
bce7e41adf 修改网站图标显示 & 所以按钮添加手形样式 2026-03-13 14:15:28 +08:00
8 changed files with 21 additions and 13 deletions

View File

@@ -141,7 +141,7 @@ export default function LoginCard() {
<button <button
type="button" type="button"
tabIndex={-1} tabIndex={-1}
className="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600" className="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 cursor-pointer"
onClick={() => setShowPwd(v => !v)} onClick={() => setShowPwd(v => !v)}
aria-label={showPwd ? '隐藏密码' : '显示密码'} aria-label={showPwd ? '隐藏密码' : '显示密码'}
> >

View File

@@ -28,7 +28,7 @@ export function HeroSection() {
</div> </div>
<FreeTrial className={[ <FreeTrial className={[
`mt-32 max-md:mt-20 w-96 max-md:w-full h-16 md:h-24 rounded-lg shadow-lg`, `mt-32 max-md:mt-20 w-96 max-md:w-full h-16 md:h-24 rounded-lg shadow-lg cursor-pointer`,
`bg-linear-to-r from-blue-500 to-cyan-400 text-white text-xl lg:text-4xl`, `bg-linear-to-r from-blue-500 to-cyan-400 text-white text-xl lg:text-4xl`,
].join(' ')}/> ].join(' ')}/>
</Wrap> </Wrap>

View File

@@ -16,7 +16,7 @@ export default function SidebarDrawer() {
<span className="font-medium text-slate-900"></span> <span className="font-medium text-slate-900"></span>
<Drawer open={open} onOpenChange={setOpen}> <Drawer open={open} onOpenChange={setOpen}>
<DrawerTrigger asChild> <DrawerTrigger asChild>
<button className="flex items-center gap-2 text-slate-600 hover:text-slate-900 p-1"> <button className="flex items-center gap-2 text-slate-600 hover:text-slate-900 p-1 cursor-pointer">
<Menu size={20}/> <Menu size={20}/>
<span className="text-sm"></span> <span className="text-sm"></span>
</button> </button>

View File

@@ -225,7 +225,7 @@ function MenuItem(props: {
onPointerLeave={props.onPointerLeave} onPointerLeave={props.onPointerLeave}
className={[ className={[
`h-full px-4 flex gap-3 items-center cursor-pointer text-lg`, `h-full px-4 flex gap-3 items-center cursor-pointer text-lg`,
`transition-colors duration-200 ease-in-out`, `transition-colors duration-200 ease-in-out cursor-pointer`,
props.active props.active
? `text-blue-500` ? `text-blue-500`
: ``, : ``,

View File

@@ -99,7 +99,7 @@ export default function BillsPage(props: BillsPageProps) {
<SelectItem value="all"></SelectItem> <SelectItem value="all"></SelectItem>
<SelectItem value="3"></SelectItem> <SelectItem value="3"></SelectItem>
<SelectItem value="1"></SelectItem> <SelectItem value="1"></SelectItem>
<SelectItem value="2">退</SelectItem> {/* <SelectItem value="2">退款</SelectItem> */}
</SelectContent> </SelectContent>
</Select> </Select>
)} )}
@@ -284,13 +284,13 @@ export default function BillsPage(props: BillsPageProps) {
format(new Date(row.original.created_at), 'yyyy-MM-dd HH:mm') format(new Date(row.original.created_at), 'yyyy-MM-dd HH:mm')
), ),
}, },
{ // {
accessorKey: 'action', header: `操作`, cell: item => ( // accessorKey: 'action', header: `操作`, cell: item => (
<div className="flex gap-2"> // <div className="flex gap-2">
- // -
</div> // </div>
), // ),
}, // },
]} ]}
/> />
</Page> </Page>

View File

@@ -116,7 +116,14 @@ export function Header() {
</div> </div>
{/* right */} {/* right */}
<div className="flex-none flex items-center justify-end pr-4"> <div className="flex-none flex items-center justify-end pr-4 max-md:hidden gap-2">
<Link
href="/"
className={merge(
`flex-none h-16 flex items-center justify-center`,
)}>
</Link>
<Suspense> <Suspense>
<HeaderUserCenter/> <HeaderUserCenter/>
</Suspense> </Suspense>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -11,6 +11,7 @@ export const buttonVariants = cva(
'aria-invalid:ring-fail/20 dark:aria-invalid:ring-fail/40 aria-invalid:border-fail', // 无效状态样式 'aria-invalid:ring-fail/20 dark:aria-invalid:ring-fail/40 aria-invalid:border-fail', // 无效状态样式
'inline-flex items-center justify-center gap-2', // 布局 'inline-flex items-center justify-center gap-2', // 布局
'[&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 ', '[&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 ',
'cursor-pointer',
], ],
{ {
variants: { variants: {