Skip to content

Commit

Permalink
Merge pull request #14 from zhuba-Ahhh/dev
Browse files Browse the repository at this point in the history
fix: 🐛 footer跟随主题
  • Loading branch information
zhuba-Ahhh authored Oct 22, 2024
2 parents 1ef7c1d + 7f44585 commit b4525f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"apiCenterServerPort": 55507
}
9 changes: 5 additions & 4 deletions src/components/app/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ export default function Footer() {
const isNew = currentYear === buildYear; // 判断是否为新建站

return (
<footer className="border-t py-6 md:py-0 bg-gray-100">
<footer className="border-t py-6 md:py-0 bg-background">
<div className="container flex flex-col items-center justify-between gap-4 md:h-24 md:flex-row">
<div className="flex flex-col items-center gap-4 px-8 md:flex-row md:gap-2 md:px-0">
<p className="text-center text-sm leading-loose text-muted-foreground md:text-left">
&copy; {currentYear} 我的博客. 保留所有权利。{isNew ? "新建站" : `建站时间: ${buildYear}年`},感谢您的访问!
&copy; {currentYear} 我的博客. 保留所有权利。
{isNew ? "新建站" : `建站时间: ${buildYear}年`},感谢您的访问!
</p>
</div>
<nav className="flex items-center space-x-4">
{links.map((link) => (
<Link
key={link.href}
href={link.href}
className="text-sm text-muted-foreground hover:text-blue-500 transition duration-200" // 增加过渡效果
className="text-sm text-muted-foreground hover:text-primary transition duration-200"
>
<Badge>{link.label}</Badge>
<Badge variant="outline">{link.label}</Badge>
</Link>
))}
</nav>
Expand Down

0 comments on commit b4525f8

Please sign in to comment.