style(account): apply proto2 surfaces

This commit is contained in:
zetaloop
2026-02-25 05:10:31 +08:00
parent 5dbf6bdd77
commit 3f3172fabb
4 changed files with 8 additions and 9 deletions
+3 -4
View File
@@ -24,7 +24,7 @@ const typeLabels: Record<Notification["type"], string> = {
function NotificationItem({ notification }: { notification: Notification }) { function NotificationItem({ notification }: { notification: Notification }) {
const Icon = typeIcons[notification.type] const Icon = typeIcons[notification.type]
const content = ( const content = (
<div className="flex items-start gap-3 rounded-md border p-3 hover:bg-muted/50 transition-colors"> <Card className="flex items-start gap-3 p-3 hover:bg-muted/50 transition-colors shadow-none">
<div className="h-8 w-8 rounded-full bg-muted flex items-center justify-center shrink-0 mt-0.5"> <div className="h-8 w-8 rounded-full bg-muted flex items-center justify-center shrink-0 mt-0.5">
<Icon className="h-4 w-4" /> <Icon className="h-4 w-4" />
</div> </div>
@@ -41,9 +41,8 @@ function NotificationItem({ notification }: { notification: Notification }) {
<Badge variant="outline" className="text-[10px] shrink-0"> <Badge variant="outline" className="text-[10px] shrink-0">
{typeLabels[notification.type]} {typeLabels[notification.type]}
</Badge> </Badge>
</div> </Card>
) )
return notification.link ? <Link href={notification.link}>{content}</Link> : content return notification.link ? <Link href={notification.link}>{content}</Link> : content
} }
@@ -56,7 +55,7 @@ export default function NotificationsPage() {
const systemNotifs = notifications.filter((notification) => notification.type === "system") const systemNotifs = notifications.filter((notification) => notification.type === "system")
return ( return (
<div className="max-w-2xl mx-auto space-y-6"> <div className="container mx-auto max-w-2xl px-4 py-8 space-y-6">
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<h1 className="text-2xl font-bold"></h1> <h1 className="text-2xl font-bold"></h1>
+1 -1
View File
@@ -34,7 +34,7 @@ export default function SettingsPage() {
const isRoleVerified = (role: UserRole) => verifiedRoles.includes(role) const isRoleVerified = (role: UserRole) => verifiedRoles.includes(role)
return ( return (
<div className="max-w-2xl mx-auto space-y-6"> <div className="container mx-auto max-w-2xl px-4 py-8 space-y-6">
<h1 className="text-2xl font-bold"></h1> <h1 className="text-2xl font-bold"></h1>
<Card> <Card>
+3 -3
View File
@@ -57,7 +57,7 @@ export default function VerifyPage() {
] ]
return ( return (
<div className="max-w-2xl mx-auto space-y-6"> <div className="container mx-auto max-w-2xl px-4 py-8 space-y-6">
<h1 className="text-2xl font-bold"></h1> <h1 className="text-2xl font-bold"></h1>
<Card> <Card>
@@ -86,7 +86,7 @@ export default function VerifyPage() {
const reason = verificationReasons[item.role] const reason = verificationReasons[item.role]
return ( return (
<div key={item.role} className="rounded-md border p-3 space-y-2"> <Card key={item.role} className="p-3 space-y-2 shadow-none">
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<span className="text-sm font-medium">{item.label}</span> <span className="text-sm font-medium">{item.label}</span>
{status === "approved" || verifiedRoles.includes(item.role) ? ( {status === "approved" || verifiedRoles.includes(item.role) ? (
@@ -123,7 +123,7 @@ export default function VerifyPage() {
</Button> </Button>
)} )}
</div> </Card>
) )
})} })}
</CardContent> </CardContent>
+1 -1
View File
@@ -74,7 +74,7 @@ export default function WalletPage() {
} }
return ( return (
<div className="max-w-2xl mx-auto space-y-6"> <div className="container mx-auto max-w-2xl px-4 py-8 space-y-6">
<h1 className="text-2xl font-bold"></h1> <h1 className="text-2xl font-bold"></h1>
<Card> <Card>