24 lines
825 B
TypeScript
24 lines
825 B
TypeScript
import Link from 'next/link';
|
||
|
||
export default function Home() {
|
||
return (
|
||
<main className="flex min-h-screen flex-col items-center justify-center gap-6 p-8">
|
||
<h1 className="text-2xl font-semibold text-neutral-800">Smart Go · Web</h1>
|
||
<p className="max-w-md text-center text-neutral-600">
|
||
对接 Go `NEXT_PUBLIC_API_ORIGIN`,支持账号密码 + PKCE 换 token,或浏览器 OAuth 授权码流程。
|
||
</p>
|
||
<div className="flex flex-wrap justify-center gap-3">
|
||
<Link href="/login" className="rounded-lg bg-neutral-900 px-5 py-2 text-white">
|
||
登录
|
||
</Link>
|
||
<Link
|
||
href="/dashboard"
|
||
className="rounded-lg border border-neutral-300 px-5 py-2 text-neutral-800"
|
||
>
|
||
工作台
|
||
</Link>
|
||
</div>
|
||
</main>
|
||
);
|
||
}
|