refactor(shadow): introduce shadow-card utility and extend tailwind-merge
This commit is contained in:
@@ -23,7 +23,7 @@ export default function DashboardPage() {
|
|||||||
<h1 className="text-2xl font-bold">概览</h1>
|
<h1 className="text-2xl font-bold">概览</h1>
|
||||||
|
|
||||||
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
|
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">总订单</CardTitle>
|
<CardTitle className="text-sm font-medium">总订单</CardTitle>
|
||||||
<ListOrdered className="h-4 w-4 text-muted-foreground" />
|
<ListOrdered className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -34,7 +34,7 @@ export default function DashboardPage() {
|
|||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">评分</CardTitle>
|
<CardTitle className="text-sm font-medium">评分</CardTitle>
|
||||||
<Star className="h-4 w-4 text-muted-foreground" />
|
<Star className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -43,7 +43,7 @@ export default function DashboardPage() {
|
|||||||
<div className="text-2xl font-bold">{isOwner ? shop.rating : player.rating}</div>
|
<div className="text-2xl font-bold">{isOwner ? shop.rating : player.rating}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">{isOwner ? "签约打手" : "完成率"}</CardTitle>
|
<CardTitle className="text-sm font-medium">{isOwner ? "签约打手" : "完成率"}</CardTitle>
|
||||||
{isOwner ? (
|
{isOwner ? (
|
||||||
@@ -65,7 +65,7 @@ export default function DashboardPage() {
|
|||||||
)}
|
)}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">{isOwner ? "本月收入" : "服务数"}</CardTitle>
|
<CardTitle className="text-sm font-medium">{isOwner ? "本月收入" : "服务数"}</CardTitle>
|
||||||
{isOwner ? (
|
{isOwner ? (
|
||||||
@@ -82,7 +82,7 @@ export default function DashboardPage() {
|
|||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between">
|
<CardHeader className="flex flex-row items-center justify-between">
|
||||||
<CardTitle className="text-base">最近订单</CardTitle>
|
<CardTitle className="text-base">最近订单</CardTitle>
|
||||||
<Button variant="ghost" size="sm" asChild>
|
<Button variant="ghost" size="sm" asChild>
|
||||||
@@ -114,7 +114,7 @@ export default function DashboardPage() {
|
|||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
{!isOwner && (
|
{!isOwner && (
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">快捷操作</CardTitle>
|
<CardTitle className="text-base">快捷操作</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export default function NewServicePage() {
|
|||||||
返回服务列表
|
返回服务列表
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>发布服务</CardTitle>
|
<CardTitle>发布服务</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export default function ServicesPage() {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">已发布的服务</CardTitle>
|
<CardTitle className="text-base">已发布的服务</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export default function EmployeesPage() {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<CardTitle className="text-base">签约打手 ({shopPlayers.length})</CardTitle>
|
<CardTitle className="text-base">签约打手 ({shopPlayers.length})</CardTitle>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export default function ShopIncomePage() {
|
|||||||
<h1 className="text-2xl font-bold">收入统计</h1>
|
<h1 className="text-2xl font-bold">收入统计</h1>
|
||||||
|
|
||||||
<div className="grid gap-4 sm:grid-cols-3">
|
<div className="grid gap-4 sm:grid-cols-3">
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">总收入</CardTitle>
|
<CardTitle className="text-sm font-medium">总收入</CardTitle>
|
||||||
<DollarSign className="h-4 w-4 text-muted-foreground" />
|
<DollarSign className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -67,7 +67,7 @@ export default function ShopIncomePage() {
|
|||||||
<div className="text-2xl font-bold">¥{totalIncome.toFixed(2)}</div>
|
<div className="text-2xl font-bold">¥{totalIncome.toFixed(2)}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">本月收入</CardTitle>
|
<CardTitle className="text-sm font-medium">本月收入</CardTitle>
|
||||||
<CreditCard className="h-4 w-4 text-muted-foreground" />
|
<CreditCard className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -76,7 +76,7 @@ export default function ShopIncomePage() {
|
|||||||
<div className="text-2xl font-bold">¥{thisMonthIncome.toFixed(2)}</div>
|
<div className="text-2xl font-bold">¥{thisMonthIncome.toFixed(2)}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">待结算</CardTitle>
|
<CardTitle className="text-sm font-medium">待结算</CardTitle>
|
||||||
<ArrowUpRight className="h-4 w-4 text-muted-foreground" />
|
<ArrowUpRight className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -87,7 +87,7 @@ export default function ShopIncomePage() {
|
|||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>交易明细</CardTitle>
|
<CardTitle>交易明细</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export default function ShopOrdersPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
|
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">总订单</CardTitle>
|
<CardTitle className="text-sm font-medium">总订单</CardTitle>
|
||||||
<ListOrdered className="h-4 w-4 text-muted-foreground" />
|
<ListOrdered className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -53,7 +53,7 @@ export default function ShopOrdersPage() {
|
|||||||
<div className="text-2xl font-bold">{totalOrders}</div>
|
<div className="text-2xl font-bold">{totalOrders}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">进行中</CardTitle>
|
<CardTitle className="text-sm font-medium">进行中</CardTitle>
|
||||||
<Clock className="h-4 w-4 text-muted-foreground" />
|
<Clock className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -62,7 +62,7 @@ export default function ShopOrdersPage() {
|
|||||||
<div className="text-2xl font-bold">{activeOrders}</div>
|
<div className="text-2xl font-bold">{activeOrders}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">已完成</CardTitle>
|
<CardTitle className="text-sm font-medium">已完成</CardTitle>
|
||||||
<CheckCircle className="h-4 w-4 text-muted-foreground" />
|
<CheckCircle className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -71,7 +71,7 @@ export default function ShopOrdersPage() {
|
|||||||
<div className="text-2xl font-bold">{completedOrders}</div>
|
<div className="text-2xl font-bold">{completedOrders}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">争议订单</CardTitle>
|
<CardTitle className="text-sm font-medium">争议订单</CardTitle>
|
||||||
<AlertCircle className="h-4 w-4 text-muted-foreground" />
|
<AlertCircle className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -82,7 +82,7 @@ export default function ShopOrdersPage() {
|
|||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>订单列表</CardTitle>
|
<CardTitle>订单列表</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ function ShopManagementContent({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
|
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">总订单</CardTitle>
|
<CardTitle className="text-sm font-medium">总订单</CardTitle>
|
||||||
<ListOrdered className="h-4 w-4 text-muted-foreground" />
|
<ListOrdered className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -74,7 +74,7 @@ function ShopManagementContent({
|
|||||||
<div className="text-2xl font-bold">{shop.totalOrders}</div>
|
<div className="text-2xl font-bold">{shop.totalOrders}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">评分</CardTitle>
|
<CardTitle className="text-sm font-medium">评分</CardTitle>
|
||||||
<Star className="h-4 w-4 text-muted-foreground" />
|
<Star className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -83,7 +83,7 @@ function ShopManagementContent({
|
|||||||
<div className="text-2xl font-bold">{shop.rating}</div>
|
<div className="text-2xl font-bold">{shop.rating}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">签约打手</CardTitle>
|
<CardTitle className="text-sm font-medium">签约打手</CardTitle>
|
||||||
<Users className="h-4 w-4 text-muted-foreground" />
|
<Users className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -92,7 +92,7 @@ function ShopManagementContent({
|
|||||||
<div className="text-2xl font-bold">{shop.playerCount}</div>
|
<div className="text-2xl font-bold">{shop.playerCount}</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||||
<CardTitle className="text-sm font-medium">抽成比例</CardTitle>
|
<CardTitle className="text-sm font-medium">抽成比例</CardTitle>
|
||||||
<DollarSign className="h-4 w-4 text-muted-foreground" />
|
<DollarSign className="h-4 w-4 text-muted-foreground" />
|
||||||
@@ -107,7 +107,7 @@ function ShopManagementContent({
|
|||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">基本信息</CardTitle>
|
<CardTitle className="text-base">基本信息</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
@@ -139,7 +139,7 @@ function ShopManagementContent({
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">公告管理</CardTitle>
|
<CardTitle className="text-base">公告管理</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
@@ -184,7 +184,7 @@ function ShopManagementContent({
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">运营设置</CardTitle>
|
<CardTitle className="text-base">运营设置</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ function ShopRulesForm({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid gap-6">
|
<div className="grid gap-6">
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">员工权限</CardTitle>
|
<CardTitle className="text-base">员工权限</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
@@ -100,7 +100,7 @@ function ShopRulesForm({
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">派单设置</CardTitle>
|
<CardTitle className="text-base">派单设置</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
@@ -126,7 +126,7 @@ function ShopRulesForm({
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">抽成设置</CardTitle>
|
<CardTitle className="text-base">抽成设置</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ function ShopTemplatesEditor({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">页面组件</CardTitle>
|
<CardTitle className="text-base">页面组件</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
@@ -184,7 +184,7 @@ function ShopTemplatesEditor({
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">提示</CardTitle>
|
<CardTitle className="text-base">提示</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function HelpPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-6">
|
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-6">
|
||||||
<h1 className="text-2xl font-bold tracking-tighter leading-tight">帮助中心</h1>
|
<h1 className="text-2xl font-bold tracking-tighter leading-tight">帮助中心</h1>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">常见流程</CardTitle>
|
<CardTitle className="text-base">常见流程</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ export default function HomePage() {
|
|||||||
type="text"
|
type="text"
|
||||||
name="q"
|
name="q"
|
||||||
placeholder="搜索陪玩、店铺、游戏..."
|
placeholder="搜索陪玩、店铺、游戏..."
|
||||||
className="w-full border-border bg-card shadow-[0_4px_16px_-2px_rgba(0,0,0,0.08),0_8px_24px_-4px_rgba(0,0,0,0.1)] transition-shadow focus:shadow-[0_8px_30px_-4px_rgba(0,0,0,0.12),0_12px_40px_-8px_rgba(0,0,0,0.14)]"
|
className="w-full border-border bg-card shadow-card transition-shadow focus:shadow-card-hover"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default async function PlayerDetailPage({ params }: { params: Promise<{ i
|
|||||||
<div className="container mx-auto py-8 px-4 max-w-5xl">
|
<div className="container mx-auto py-8 px-4 max-w-5xl">
|
||||||
<div className="flex flex-col md:flex-row gap-8 mb-8">
|
<div className="flex flex-col md:flex-row gap-8 mb-8">
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<Avatar className="w-32 h-32 border-4 border-background shadow-[var(--shadow-card)]">
|
<Avatar className="w-32 h-32 border-4 border-background shadow-card">
|
||||||
<AvatarImage src={player.user.avatar} alt={player.user.nickname} />
|
<AvatarImage src={player.user.avatar} alt={player.user.nickname} />
|
||||||
<AvatarFallback>{player.user.nickname[0]}</AvatarFallback>
|
<AvatarFallback>{player.user.nickname[0]}</AvatarFallback>
|
||||||
</Avatar>
|
</Avatar>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default async function PostDetailPage({ params }: { params: Promise<{ id:
|
|||||||
返回社区
|
返回社区
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader className="pb-3">
|
<CardHeader className="pb-3">
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<Avatar className="h-10 w-10">
|
<Avatar className="h-10 w-10">
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ export default function NewPostPage() {
|
|||||||
返回社区
|
返回社区
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="tracking-tighter leading-tight">发布帖子</CardTitle>
|
<CardTitle className="tracking-tighter leading-tight">发布帖子</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export default function PrivacyPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-6">
|
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-6">
|
||||||
<h1 className="text-2xl font-bold tracking-tighter leading-tight">隐私政策摘要</h1>
|
<h1 className="text-2xl font-bold tracking-tighter leading-tight">隐私政策摘要</h1>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">数据使用范围</CardTitle>
|
<CardTitle className="text-base">数据使用范围</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -567,7 +567,7 @@ function SearchPageContent() {
|
|||||||
icon={<Search />}
|
icon={<Search />}
|
||||||
type="search"
|
type="search"
|
||||||
placeholder="搜索陪玩、游戏、标签..."
|
placeholder="搜索陪玩、游戏、标签..."
|
||||||
className="border-border bg-card shadow-[var(--shadow-card)] transition-shadow focus:shadow-[var(--shadow-card-hover)]"
|
className="border-border bg-card shadow-card transition-shadow focus:shadow-card-hover"
|
||||||
value={searchQuery}
|
value={searchQuery}
|
||||||
onChange={(e) => setSearchQuery(e.target.value)}
|
onChange={(e) => setSearchQuery(e.target.value)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function TermsPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-6">
|
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-6">
|
||||||
<h1 className="text-2xl font-bold tracking-tighter leading-tight">用户协议摘要</h1>
|
<h1 className="text-2xl font-bold tracking-tighter leading-tight">用户协议摘要</h1>
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-base">平台规则</CardTitle>
|
<CardTitle className="text-base">平台规则</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default async function UserProfilePage({ params }: { params: Promise<{ id
|
|||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-4xl px-4 py-8 space-y-6">
|
<div className="container mx-auto max-w-4xl px-4 py-8 space-y-6">
|
||||||
<div className="flex items-center gap-6 mb-8">
|
<div className="flex items-center gap-6 mb-8">
|
||||||
<Avatar className="w-24 h-24 border-4 border-background shadow-[var(--shadow-card)]">
|
<Avatar className="w-24 h-24 border-4 border-background shadow-card">
|
||||||
<AvatarImage src={user.avatar} alt={user.nickname} />
|
<AvatarImage src={user.avatar} alt={user.nickname} />
|
||||||
<AvatarFallback>{user.nickname[0]}</AvatarFallback>
|
<AvatarFallback>{user.nickname[0]}</AvatarFallback>
|
||||||
</Avatar>
|
</Avatar>
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export default function ChatDetailPage({ params }: { params: Promise<{ id: strin
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-3xl px-4 py-8 h-[calc(100vh-3.5rem)] flex flex-col">
|
<div className="container mx-auto max-w-3xl px-4 py-8 h-[calc(100vh-3.5rem)] flex flex-col">
|
||||||
<Card className="flex-1 flex flex-col overflow-hidden hover:shadow-[var(--shadow-card)]">
|
<Card className="flex-1 flex flex-col overflow-hidden hover:shadow-card-hover">
|
||||||
<div className="border-b px-4 py-3 flex items-center gap-3 bg-muted/30">
|
<div className="border-b px-4 py-3 flex items-center gap-3 bg-muted/30">
|
||||||
<Link href="/chat" className="text-muted-foreground hover:text-foreground">
|
<Link href="/chat" className="text-muted-foreground hover:text-foreground">
|
||||||
<ArrowLeft className="h-5 w-5" />
|
<ArrowLeft className="h-5 w-5" />
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export default function ChatListPage() {
|
|||||||
})}
|
})}
|
||||||
|
|
||||||
{sessions.length === 0 && (
|
{sessions.length === 0 && (
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardContent className="py-8 text-center text-sm text-muted-foreground">
|
<CardContent className="py-8 text-center text-sm text-muted-foreground">
|
||||||
<MessageSquare className="h-12 w-12 mx-auto mb-2 opacity-50" />
|
<MessageSquare className="h-12 w-12 mx-auto mb-2 opacity-50" />
|
||||||
暂无消息
|
暂无消息
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ export default function DisputePage({ params }: { params: Promise<{ id: string }
|
|||||||
返回订单
|
返回订单
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<CardTitle>争议详情</CardTitle>
|
<CardTitle>争议详情</CardTitle>
|
||||||
@@ -393,7 +393,7 @@ export default function DisputePage({ params }: { params: Promise<{ id: string }
|
|||||||
返回订单
|
返回订单
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="flex items-center gap-2">
|
<CardTitle className="flex items-center gap-2">
|
||||||
<AlertTriangle className="h-5 w-5 text-yellow-500" />
|
<AlertTriangle className="h-5 w-5 text-yellow-500" />
|
||||||
|
|||||||
@@ -126,14 +126,14 @@ function OrderListContent({
|
|||||||
|
|
||||||
<TabsContent value={tab} className="mt-4 space-y-4">
|
<TabsContent value={tab} className="mt-4 space-y-4">
|
||||||
{filtered.length === 0 ? (
|
{filtered.length === 0 ? (
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardContent className="py-8 text-center text-sm text-muted-foreground">
|
<CardContent className="py-8 text-center text-sm text-muted-foreground">
|
||||||
暂无订单
|
暂无订单
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
) : (
|
) : (
|
||||||
filtered.map((order) => (
|
filtered.map((order) => (
|
||||||
<Card key={order.id} className="hover:shadow-[var(--shadow-card)]">
|
<Card key={order.id} className="hover:shadow-card-hover">
|
||||||
<CardHeader className="pb-3">
|
<CardHeader className="pb-3">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<CardTitle className="text-base">{order.service.title}</CardTitle>
|
<CardTitle className="text-base">{order.service.title}</CardTitle>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export default function ReviewPage({ params }: { params: Promise<{ id: string }>
|
|||||||
返回订单
|
返回订单
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Card className="hover:shadow-[var(--shadow-card)]">
|
<Card className="hover:shadow-card-hover">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>评价服务</CardTitle>
|
<CardTitle>评价服务</CardTitle>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
|
|||||||
+7
-4
@@ -46,6 +46,8 @@
|
|||||||
--radius-2xl: calc(var(--radius) + 8px);
|
--radius-2xl: calc(var(--radius) + 8px);
|
||||||
--radius-3xl: calc(var(--radius) + 12px);
|
--radius-3xl: calc(var(--radius) + 12px);
|
||||||
--radius-4xl: calc(var(--radius) + 16px);
|
--radius-4xl: calc(var(--radius) + 16px);
|
||||||
|
--shadow-card: var(--card-shadow);
|
||||||
|
--shadow-card-hover: var(--card-shadow-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@@ -82,8 +84,9 @@
|
|||||||
--sidebar-accent-foreground: oklch(0.36 0.1 46.65);
|
--sidebar-accent-foreground: oklch(0.36 0.1 46.65);
|
||||||
--sidebar-border: oklch(0.94 0 0);
|
--sidebar-border: oklch(0.94 0 0);
|
||||||
--sidebar-ring: oklch(0.701 0.189 46.65);
|
--sidebar-ring: oklch(0.701 0.189 46.65);
|
||||||
--shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
|
--card-shadow: 0 1px 3px 0 rgba(30, 40, 55, 0.04), 0 4px 12px -2px rgba(30, 40, 55, 0.06);
|
||||||
--shadow-card-hover: 0 2px 8px -2px rgba(0, 0, 0, 0.06), 0 6px 20px -4px rgba(0, 0, 0, 0.08);
|
--card-shadow-hover:
|
||||||
|
0 4px 16px -2px rgba(30, 40, 55, 0.07), 0 8px 24px -4px rgba(30, 40, 55, 0.09);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
@@ -119,8 +122,8 @@
|
|||||||
--sidebar-accent-foreground: oklch(0.98 0.01 46.65);
|
--sidebar-accent-foreground: oklch(0.98 0.01 46.65);
|
||||||
--sidebar-border: oklch(0.23 0 0);
|
--sidebar-border: oklch(0.23 0 0);
|
||||||
--sidebar-ring: oklch(0.701 0.189 46.65);
|
--sidebar-ring: oklch(0.701 0.189 46.65);
|
||||||
--shadow-card: 0 1px 2px 0 rgba(255, 255, 255, 0.02), 0 2px 8px -1px rgba(0, 0, 0, 0.15);
|
--card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.12);
|
||||||
--shadow-card-hover: 0 2px 8px -2px rgba(0, 0, 0, 0.12), 0 6px 20px -4px rgba(0, 0, 0, 0.18);
|
--card-shadow-hover: 0 4px 16px -2px rgba(0, 0, 0, 0.14), 0 8px 24px -4px rgba(0, 0, 0, 0.18);
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function Card({ className, ...props }: React.ComponentProps<"div">) {
|
|||||||
<div
|
<div
|
||||||
data-slot="card"
|
data-slot="card"
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-card transition-shadow",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
+9
-1
@@ -1,5 +1,13 @@
|
|||||||
import { type ClassValue, clsx } from "clsx"
|
import { type ClassValue, clsx } from "clsx"
|
||||||
import { twMerge } from "tailwind-merge"
|
import { extendTailwindMerge } from "tailwind-merge"
|
||||||
|
|
||||||
|
const twMerge = extendTailwindMerge({
|
||||||
|
extend: {
|
||||||
|
classGroups: {
|
||||||
|
shadow: [{ shadow: ["card", "card-hover"] }],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
export function cn(...inputs: ClassValue[]) {
|
export function cn(...inputs: ClassValue[]) {
|
||||||
return twMerge(clsx(inputs))
|
return twMerge(clsx(inputs))
|
||||||
|
|||||||
Reference in New Issue
Block a user