MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / LoginPage

Function LoginPage

apps/cloud/src/web/pages/login.tsx:6–38  ·  view source on GitHub ↗
({ returnTo }: { returnTo?: string | undefined })

Source from the content-addressed store, hash-verified

4import { safeReturnTo } from "../../auth/return-to";
5
6export const LoginPage = ({ returnTo }: { returnTo?: string | undefined }) => {
7 const destination = safeReturnTo(returnTo);
8 const loginHref = destination
9 ? `${AUTH_PATHS.login}?returnTo=${encodeURIComponent(destination)}`
10 : AUTH_PATHS.login;
11 return (
12 <div className="flex min-h-screen items-center justify-center bg-background">
13 <div className="mx-auto flex w-full max-w-sm flex-col items-center gap-6">
14 <div className="flex flex-col items-center gap-2">
15 <h1 className="font-mono text-4xl">Executor</h1>
16 <p className="text-sm text-muted-foreground">
17 Sign in to manage your tools and integrations
18 </p>
19 </div>
20 <a
21 href={loginHref}
22 onClick={() => trackEvent("login_cta_clicked")}
23 className="inline-flex h-10 w-full items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground shadow hover:bg-primary/90 transition-colors"
24 >
25 Sign in
26 </a>
27 <div className="flex items-center gap-4 text-xs text-muted-foreground">
28 <a href="/privacy" className="transition-colors hover:text-foreground">
29 Privacy
30 </a>
31 <a href="/terms" className="transition-colors hover:text-foreground">
32 Terms
33 </a>
34 </div>
35 </div>
36 </div>
37 );
38};

Callers

nothing calls this directly

Calls 2

safeReturnToFunction · 0.90
trackEventFunction · 0.90

Tested by

no test coverage detected