Home / File/ login-01.tsx — ui Source File

login-01.tsx — ui Source File

Architecture documentation for login-01.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 5 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b4568adb_4815_3b01_1579_6cdf90ff1efd["login-01.tsx"]
  ba3d44f3_7b34_f9cc_6283_44817785c0df["link"]
  b4568adb_4815_3b01_1579_6cdf90ff1efd --> ba3d44f3_7b34_f9cc_6283_44817785c0df
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  b4568adb_4815_3b01_1579_6cdf90ff1efd --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  b4568adb_4815_3b01_1579_6cdf90ff1efd --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  b4568adb_4815_3b01_1579_6cdf90ff1efd --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  b4568adb_4815_3b01_1579_6cdf90ff1efd --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  style b4568adb_4815_3b01_1579_6cdf90ff1efd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Link from "next/link"

import { Button } from "@/registry/new-york/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/new-york/ui/card"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"

export const description = "A simple login form."

export const containerClassName = "w-full h-full"

export default function Page() {
  return (
    <div className="flex h-screen w-full items-center justify-center px-4">
      <Card className="mx-auto max-w-sm">
        <CardHeader>
          <CardTitle className="text-2xl">Login</CardTitle>
          <CardDescription>
            Enter your email below to login to your account
          </CardDescription>
        </CardHeader>
        <CardContent>
          <div className="grid gap-4">
            <div className="grid gap-2">
              <Label htmlFor="email">Email</Label>
              <Input
                id="email"
                type="email"
                placeholder="m@example.com"
                required
              />
            </div>
            <div className="grid gap-2">
              <div className="flex items-center">
                <Label htmlFor="password">Password</Label>
                <Link
                  href="#"
                  className="ml-auto inline-block text-sm underline"
                >
                  Forgot your password?
                </Link>
              </div>
              <Input id="password" type="password" required />
            </div>
            <Button type="submit" className="w-full">
              Login
            </Button>
            <Button variant="outline" className="w-full">
              Login with Google
            </Button>
          </div>
          <div className="mt-4 text-center text-sm">
            Don&apos;t have an account?{" "}
            <Link href="#" className="underline">
              Sign up
            </Link>
          </div>
        </CardContent>
      </Card>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • button
  • card
  • input
  • label
  • link

Frequently Asked Questions

What does login-01.tsx do?
login-01.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in login-01.tsx?
login-01.tsx defines 1 function(s): Page.
What does login-01.tsx depend on?
login-01.tsx imports 5 module(s): button, card, input, label, link.
Where is login-01.tsx in the architecture?
login-01.tsx is located at deprecated/www/registry/new-york/internal/login-01.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/internal).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free