Skip to content

Commit bf64f1b

Browse files
committed
update: 一些小调整
1 parent 2cd0ccc commit bf64f1b

File tree

8 files changed

+838
-976
lines changed

8 files changed

+838
-976
lines changed

web/src/components/layout/navbar-logo.tsx

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ export const NavbarLogo = () => {
5050
// 确定badge内容和颜色
5151
const getBadgeProps = () => {
5252
if (isDev) {
53-
return { content: "dev", color: "default" as const };
53+
return { content: "dev", color: "secondary" as const };
5454
}
5555
if (isBeta) {
56-
return { content: "beta", color: "default" as const };
56+
return { content: "beta", color: "primary" as const };
5757
}
5858
return null;
5959
};
@@ -64,20 +64,27 @@ export const NavbarLogo = () => {
6464
<NavbarBrand as="li" className="gap-3 max-w-fit">
6565
<Link className="flex justify-start items-center gap-2" href="/">
6666
{badgeProps ? (
67-
<Badge
68-
content={badgeProps.content}
69-
color={badgeProps.color}
70-
size="sm"
71-
variant="flat"
72-
>
67+
<>
7368
<NodePassLogo />
74-
</Badge>
69+
<Badge
70+
content={badgeProps.content}
71+
color={badgeProps.color}
72+
variant="flat"
73+
size="sm"
74+
>
75+
<p className={cn("font-bold text-foreground", fontSans.className)}>
76+
NodePassDash
77+
</p>
78+
</Badge>
79+
</>
7580
) : (
76-
<NodePassLogo />
81+
<>
82+
<NodePassLogo />
83+
<p className={cn("font-bold text-foreground", fontSans.className)}>
84+
NodePassDash
85+
</p>
86+
</>
7787
)}
78-
<p className={cn("font-bold text-foreground", fontSans.className)}>
79-
NodePassDash
80-
</p>
8188
</Link>
8289
</NavbarBrand>
8390
);

0 commit comments

Comments
 (0)