前端极简黑白重设计,并纳入客户端注册、站点设置与后台相关改动

- storefront 全站改为极简黑白配色:直角、细线分隔、卡片 hover 浅底、深色模式(跟随系统+手动切换)
- 抽出 storefront/partials/card 复用卡片
- 一并提交此前暂存的客户端注册 API、站点设置、后台页面与测试

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
浪子
2026-09-22 08:35:49 +08:00
parent 62cffc6f5f
commit 04a2034975
41 changed files with 3447 additions and 658 deletions
+13 -10
View File
@@ -1,31 +1,34 @@
@extends('admin.layout', [
'title' => 'Tstore Admin · 后台登录',
'pageTitle' => '后台登录',
'pageSubtitle' => '使用后台账号密码登录,不再直接依赖 token。',
'pageSubtitle' => '使用管理员账号进入服务端控制台,继续维护扩展发布、分类和站点接入。',
'pageBadge' => 'Admin Login',
'layoutMode' => 'guest',
])
@section('content')
<div class="panel" style="max-width:620px">
<div class="login-sheet">
<form method="post" action="{{ route('webadmin.login.submit') }}" class="grid">
@csrf
<input type="hidden" name="redirect" value="{{ $redirect }}">
<div class="field">
<label>邮箱</label>
<input class="input" type="email" name="email" value="{{ old('email', 'admin@tstore.local') }}" placeholder="admin@tstore.local" required>
<input class="input" type="email" name="email" value="{{ old('email') }}" placeholder="输入管理员邮箱" required>
</div>
<div class="field">
<label>密码</label>
<input class="input" type="password" name="password" placeholder="输入后台密码" required>
</div>
<label><input type="checkbox" name="remember" value="1"> 记住登录状态</label>
<div class="checkbox-row">
<label><input type="checkbox" name="remember" value="1" @checked(old('remember'))> 保持登录状态</label>
</div>
<div class="form-actions">
<button class="btn" type="submit">进入后台</button>
</div>
<div class="mini-card">
<h3>默认管理员</h3>
<div class="muted">邮箱:admin@tstore.local</div>
<div class="muted">密码:Admin@123456</div>
<div class="muted">可以在 .env 中通过 ADMIN_EMAIL / ADMIN_PASSWORD 修改。</div>
<a class="btn ghost" href="{{ route('storefront.home') }}">返回前台</a>
</div>
</form>
</div>