Files
role-user/src/app/(auth)/login/page.tsx
T
湛兮 4132b80ee0 feat(navigation): 为数字人前台拆分独立页面路由
- 新增对话列表、聊天、角色详情、书架详情及个人资料独立路由
- 导航使用真实链接,补齐历史返回、登录深链与会话草稿恢复
- 搜索筛选由 URL 驱动,修复浏览器返回时丢失筛选的问题
- 补齐路由校验回归、页面加载与异常入口,并同步 README
2026-10-28 17:07:34 +08:00

50 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 星港登录页,使用独立用户账号,无公开注册。 */
import Link from "next/link";
import { safeDigitalReturnTo } from "@/lib/digital-routes";
import { LoginForm } from "@/components/login-form";
import "@/components/digital-login.css";
/** 登录前展示独立品牌与简洁表单。 */
export default async function LoginPage({
searchParams,
}: {
searchParams: Promise<{ next?: string | string[] }>;
}) {
const { next } = await searchParams;
const returnTo = safeDigitalReturnTo(
typeof next === "string" ? next : undefined,
);
return (
<main className="stellar-login">
<section className="stellar-login-story">
<Link href="/" className="stellar-login-brand">
✦{" "}
<span>
星港 <small>STELLAR</small>
</span>
</Link>
<div>
<p>YOUR PRIVATE UNIVERSE</p>
<h1>
每一段相遇,
<br />
都有下一章。
</h1>
<span>
与你心动的角色对话,
<br />
在世界的另一端,写下属于你的故事。
</span>
</div>
<small>虚构相遇,真实灵感。</small>
</section>
<section className="stellar-login-panel">
<span className="stellar-login-star">✧</span>
<h2>欢迎回到星港</h2>
<p>使用你的星港账号,继续未完的故事。</p>
<LoginForm returnTo={returnTo} />
<small>账号由管理员开通 · 与后台账号独立</small>
</section>
</main>
);
}