feat: 修改默认主题颜色为紫色,并更新私有页面的登录链接方式

This commit is contained in:
Montia37
2025-09-10 11:09:34 +08:00
parent c6e5dc6d39
commit 8de836507e
4 changed files with 10 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ export const DEFAULT_CONFIG: ConfigOptions = {
enableTransparentTags: true,
tagDefaultColorList:
"ruby,gray,gold,bronze,brown,yellow,amber,orange,tomato,red",
selectThemeColor: "gray",
selectThemeColor: "violet",
enableLocalStorage: true,
selectedDefaultView: "grid",
selectedDefaultAppearance: "system",

View File

@@ -6,11 +6,7 @@ import {
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { useNavigate } from "react-router-dom";
export default function Private() {
const navigate = useNavigate();
return (
<div className="fixed inset-0 flex items-center justify-center">
<Card className="w-full max-w-md">
@@ -19,9 +15,13 @@ export default function Private() {
<CardDescription></CardDescription>
</CardHeader>
<CardFooter>
<Button onClick={() => navigate("/admin")} className="w-full">
</Button>
<a
href="/admin"
target="_blank"
rel="noopener noreferrer"
className="w-full">
<Button className="w-full"></Button>
</a>
</CardFooter>
</Card>
</div>