File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed
Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 1+ import { Tooltip , TooltipContent , TooltipTrigger } from "@/components/ui/tooltip" ;
2+
3+ export default function DiscordLink ( ) {
4+ return (
5+ < Tooltip >
6+ < TooltipTrigger >
7+ < a
8+ className = "flex items-center gap-2"
9+ href = "https://community.dbplay.app/discord"
10+ target = "_blank"
11+ >
12+ < svg xmlns = "http://www.w3.org/2000/svg" width = "16" height = "16" fill = "currentColor" viewBox = "0 0 16 16" >
13+ < path d = "M13.545 2.907a13.2 13.2 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.2 12.2 0 0 0-3.658 0 8 8 0 0 0-.412-.833.05.05 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.04.04 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032q.003.022.021.037a13.3 13.3 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019q.463-.63.818-1.329a.05.05 0 0 0-.01-.059l-.018-.011a9 9 0 0 1-1.248-.595.05.05 0 0 1-.02-.066l.015-.019q.127-.095.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.05.05 0 0 1 .053.007q.121.1.248.195a.05.05 0 0 1-.004.085 8 8 0 0 1-1.249.594.05.05 0 0 0-.03.03.05.05 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.2 13.2 0 0 0 4.001-2.02.05.05 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.03.03 0 0 0-.02-.019m-8.198 7.307c-.789 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612m5.316 0c-.788 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612" />
14+ </ svg >
15+ < span className = "text-sm" > Discord</ span >
16+ </ a >
17+ </ TooltipTrigger >
18+
19+ < TooltipContent >
20+ 加入 Discord 社群,與開發者和其他使用者直接交流!
21+ </ TooltipContent >
22+ </ Tooltip >
23+ ) ;
24+ }
Original file line number Diff line number Diff line change 1+ export default function Separator ( ) {
2+ return < div className = "h-6 w-px bg-stone-400" /> ;
3+ }
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ import { Logo } from "@/components/logo";
22import type { Metadata } from "next" ;
33import Link from "next/link" ;
44import { Suspense } from "react" ;
5+ import DiscordLink from "./_components/discord-link" ;
56import DoYouKnow from "./_components/do-you-know" ;
67import DoYouKnowSkeleton from "./_components/do-you-know/skeleton" ;
78import GithubLink from "./_components/github-link" ;
89import { LoginForm } from "./_components/login-form" ;
910import PostHogResetter from "./_components/posthog-resetter" ;
11+ import Separator from "./_components/separator" ;
1012import { UpstreamStatus , UpstreamStatusPlaceholder } from "./_components/status" ;
1113
1214export const metadata : Metadata = {
@@ -50,16 +52,20 @@ export default async function LoginPage() {
5052 < div
5153 className = { `
5254 flex flex-wrap items-center gap-4
53- lg:gap-8
55+ lg:gap-6
5456 ` }
5557 >
5658 < Suspense fallback = { < UpstreamStatusPlaceholder /> } >
5759 < UpstreamStatus />
5860 </ Suspense >
5961
60- < div className = "h-6 w-px bg-stone-400" />
62+ < Separator />
6163
6264 < GithubLink />
65+
66+ < Separator />
67+
68+ < DiscordLink />
6369 </ div >
6470 </ div >
6571 </ div >
You can’t perform that action at this time.
0 commit comments