Files
Mycontent/app/admin/settings/page.tsx
2025-12-29 14:01:37 +08:00

67 lines
2.7 KiB
TypeScript

"use client"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import { Label } from "@/components/ui/label"
import { Input } from "@/components/ui/input"
import { Button } from "@/components/ui/button"
import { Switch } from "@/components/ui/switch"
export default function SettingsPage() {
return (
<div className="space-y-6">
<div>
<h2 className="text-3xl font-bold tracking-tight"></h2>
<p className="text-muted-foreground"></p>
</div>
<Card>
<CardHeader>
<CardTitle></CardTitle>
<CardDescription></CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<div className="grid gap-2">
<Label htmlFor="site-name"></Label>
<Input id="site-name" defaultValue="一场Soul的创业实验" />
</div>
<div className="grid gap-2">
<Label htmlFor="author"></Label>
<Input id="author" defaultValue="卡若" />
</div>
<Button></Button>
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle></CardTitle>
<CardDescription></CardDescription>
</CardHeader>
<CardContent className="space-y-6">
<div className="flex items-center justify-between space-x-2">
<Label htmlFor="maintenance-mode" className="flex flex-col space-y-1">
<span></span>
<span className="font-normal text-xs text-muted-foreground"></span>
</Label>
<Switch id="maintenance-mode" />
</div>
<div className="flex items-center justify-between space-x-2">
<Label htmlFor="payment-enabled" className="flex flex-col space-y-1">
<span></span>
<span className="font-normal text-xs text-muted-foreground"></span>
</Label>
<Switch id="payment-enabled" defaultChecked />
</div>
<div className="flex items-center justify-between space-x-2">
<Label htmlFor="referral-enabled" className="flex flex-col space-y-1">
<span></span>
<span className="font-normal text-xs text-muted-foreground"></span>
</Label>
<Switch id="referral-enabled" defaultChecked />
</div>
</CardContent>
</Card>
</div>
)
}