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
  377a589b_6db8_ec3b_bb92_3f3e0024f5ab["login-01.tsx"]
  ba3d44f3_7b34_f9cc_6283_44817785c0df["link"]
  377a589b_6db8_ec3b_bb92_3f3e0024f5ab --> ba3d44f3_7b34_f9cc_6283_44817785c0df
  d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"]
  377a589b_6db8_ec3b_bb92_3f3e0024f5ab --> d418ad18_b947_f4e5_6e4c_01100d7a63e4
  40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"]
  377a589b_6db8_ec3b_bb92_3f3e0024f5ab --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31
  163b5f6f_1cd3_6d8d_5305_80eec4895f60["input"]
  377a589b_6db8_ec3b_bb92_3f3e0024f5ab --> 163b5f6f_1cd3_6d8d_5305_80eec4895f60
  f826d306_7d63_5ba3_6a53_387904d37a9f["label"]
  377a589b_6db8_ec3b_bb92_3f3e0024f5ab --> f826d306_7d63_5ba3_6a53_387904d37a9f
  style 377a589b_6db8_ec3b_bb92_3f3e0024f5ab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Link from "next/link"

import { Button } from "@/registry/default/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/default/ui/card"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/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/default/internal/login-01.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/internal).

Analyze Your Own Codebase

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

Try Supermodel Free