调整组件位置

This commit is contained in:
2025-05-12 22:43:24 +08:00
parent 367ec1d9a0
commit b764d3c932
6 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,47 @@
"use client";
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/components/ui/popover";
import { Button } from "@/components/ui/button";
import { toast } from "sonner";
async function handleCopy(text: string) {
try {
await navigator.clipboard.writeText(text);
toast.success("复制成功");
} catch (error) {
if (error instanceof Error) {
toast.error(`复制失败 ${error.message}`);
}
}
}
export default function Footer() {
return (
<footer className="border-t border-zinc-300 h-3 relative">
<div className="bg-zinc-50 h-20 flex sm:justify-between justify-center items-center sm:px-20 flex-col sm:flex-row">
<div className="flex flex-col items-center sm:block">
<a href="https://beian.miit.gov.cn/" className="text-sm text-zinc-500 hover:border-zinc-500 border-b border-transparent">ICP备2023009516号-1</a>
<div className="text-sm text-zinc-500 cursor-default">© 2025 TONE Page. All rights reserved.</div>
</div>
<div>
<Popover>
<PopoverTrigger>
<div className="cursor-pointer text-zinc-600 hover:border-zinc-600 border-b border-transparent"></div>
</PopoverTrigger>
<PopoverContent className="w-60 mr-5">
<div className="flex items-center">
<div className="text-sm">:</div>
<Button variant="link" className="cursor-pointer select-text" onClick={() => handleCopy('tone@ctbu.net.cn')}>tone@ctbu.net.cn</Button>
</div>
</PopoverContent>
</Popover>
</div>
</div>
</footer>
)
}