统一页面样式:节目画面页布局与 dark 模式、表单错误提示条

This commit is contained in:
2026-07-30 07:58:33 +08:00
parent 8914a2a609
commit 811d6d4dfd
5 changed files with 103 additions and 74 deletions
+12 -3
View File
@@ -1,5 +1,14 @@
@if($errors->any())
@foreach ($errors->all() as $error)
<div class="bg-red-600 text-white">错误:{{ $error }}</div>
@endforeach
<div class="rounded-lg bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-900/50 p-4 space-y-2">
@foreach ($errors->all() as $error)
<div class="flex">
<div class="flex-shrink-0">
<svg class="h-5 w-5 text-red-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd" />
</svg>
</div>
<p class="ml-3 text-sm text-red-700 dark:text-red-300">错误:{{ $error }}</p>
</div>
@endforeach
</div>
@endif
@@ -2,10 +2,22 @@
<head>
<meta charset="UTF-8">
<title>正在建设中</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="{{ mix('/css/app.css') }}" rel="stylesheet"/>
</head>
<body>
<body class="bg-gray-50 dark:bg-gray-900 min-h-screen flex flex-col text-gray-900 dark:text-gray-100">
@include("common.header")
<h1>正在建设中</h1>
<main class="flex-grow container mx-auto px-4 sm:px-6 lg:px-8 py-8 flex items-center justify-center">
<div class="text-center">
<svg class="mx-auto h-16 w-16 text-gray-400 dark:text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"></path>
</svg>
<h1 class="mt-4 text-2xl font-bold text-gray-900 dark:text-white">正在建设中</h1>
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">该功能尚未开放,敬请期待。</p>
</div>
</main>
@include("common.footer")
</body>
</html>