-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.tsx
executable file
·47 lines (46 loc) · 2.02 KB
/
page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { UserAuthForm } from "@/components/user-auth-form"
import { ThemeToggle } from "@/components/theme-toggle"
import Link from "next/link"
export default function Home() {
return (
<div className="container relative flex h-screen flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0">
<div className="absolute right-4 top-4 md:right-8 md:top-8">
<ThemeToggle />
</div>
<div className="relative hidden h-full flex-col bg-muted p-10 text-white dark:border-r lg:flex">
<div className="absolute inset-0 bg-zinc-900 dark:bg-zinc-800" />
<div className="relative z-20 flex items-center text-lg font-medium">
Next.js Gitee OAuth 示例
</div>
<div className="relative z-20 mt-auto">
<blockquote className="space-y-2">
<p className="text-lg">
这是一个使用 Next.js 15 和 Gitee OAuth 构建的应用示例,展示了如何集成 Gitee 账号登录功能。
</p>
<footer className="text-sm">基于 shadcn/ui 构建</footer>
</blockquote>
</div>
</div>
<div className="lg:p-8">
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[450px]">
<div className="flex flex-col space-y-2 text-center">
<h1 className="text-2xl font-semibold tracking-tight">账号登录</h1>
<p className="text-sm text-muted-foreground">使用 Gitee 账号登录应用</p>
</div>
<UserAuthForm />
<p className="px-8 text-center text-sm text-muted-foreground">
点击登录,即表示您同意我们的{" "}
<Link href="/terms" className="underline underline-offset-4 hover:text-primary">
服务条款
</Link>{" "}
和{" "}
<Link href="/privacy" className="underline underline-offset-4 hover:text-primary">
隐私政策
</Link>
。
</p>
</div>
</div>
</div>
)
}