format code
This commit is contained in:
parent
f7fdc5d7bc
commit
04db803f34
3 changed files with 15 additions and 21 deletions
|
|
@ -1,12 +1,15 @@
|
||||||
import * as Form from "@radix-ui/react-form";
|
import * as Form from "@radix-ui/react-form";
|
||||||
import { FormEvent, useState } from "react";
|
import { FormEvent, useState } from "react";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
import IconComponent from "../../components/genericIconComponent";
|
||||||
import InputComponent from "../../components/inputComponent";
|
import InputComponent from "../../components/inputComponent";
|
||||||
import { Button } from "../../components/ui/button";
|
import { Button } from "../../components/ui/button";
|
||||||
import { Input } from "../../components/ui/input";
|
import { Input } from "../../components/ui/input";
|
||||||
import { CONTROL_INPUT_STATE } from "../../constants/constants";
|
import { CONTROL_INPUT_STATE } from "../../constants/constants";
|
||||||
import { inputHandlerEventType, signUpInputStateType } from "../../types/components";
|
import {
|
||||||
import { Link } from "react-router-dom";
|
inputHandlerEventType,
|
||||||
import IconComponent from "../../components/genericIconComponent";
|
signUpInputStateType,
|
||||||
|
} from "../../types/components";
|
||||||
|
|
||||||
export default function SignUp(): JSX.Element {
|
export default function SignUp(): JSX.Element {
|
||||||
const [inputState, setInputState] =
|
const [inputState, setInputState] =
|
||||||
|
|
@ -30,7 +33,7 @@ export default function SignUp(): JSX.Element {
|
||||||
const data = Object.fromEntries(new FormData(event.currentTarget));
|
const data = Object.fromEntries(new FormData(event.currentTarget));
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}}
|
}}
|
||||||
className="w-full h-full"
|
className="h-full w-full"
|
||||||
>
|
>
|
||||||
<div className="flex h-full w-full flex-col items-center justify-center bg-muted">
|
<div className="flex h-full w-full flex-col items-center justify-center bg-muted">
|
||||||
<div className="flex w-72 flex-col items-center justify-center gap-2">
|
<div className="flex w-72 flex-col items-center justify-center gap-2">
|
||||||
|
|
@ -40,26 +43,17 @@ export default function SignUp(): JSX.Element {
|
||||||
</span>
|
</span>
|
||||||
<div className="flex w-full items-center justify-center gap-2">
|
<div className="flex w-full items-center justify-center gap-2">
|
||||||
<Button variant="primary" className="w-full py-6">
|
<Button variant="primary" className="w-full py-6">
|
||||||
<IconComponent
|
<IconComponent name="FaApple" className="h-6 w-6" />
|
||||||
name="FaApple"
|
|
||||||
className="h-6 w-6"
|
|
||||||
/>
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="primary" className="w-full py-6">
|
<Button variant="primary" className="w-full py-6">
|
||||||
<IconComponent
|
<IconComponent name="FaGithub" className="h-6 w-6" />
|
||||||
name="FaGithub"
|
|
||||||
className="h-6 w-6"
|
|
||||||
/>
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="primary" className="w-full py-6">
|
<Button variant="primary" className="w-full py-6">
|
||||||
<IconComponent
|
<IconComponent name="GoogleSearchRun" className="h-6 w-6" />
|
||||||
name="GoogleSearchRun"
|
|
||||||
className="h-6 w-6"
|
|
||||||
/>
|
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<span className="text-sm text-muted-foreground">or</span>
|
<span className="text-sm text-muted-foreground">or</span>
|
||||||
<div className="w-full mb-3">
|
<div className="mb-3 w-full">
|
||||||
<Form.Field name="username">
|
<Form.Field name="username">
|
||||||
<Form.Label className="data-[invalid]:label-invalid">
|
<Form.Label className="data-[invalid]:label-invalid">
|
||||||
Username <span className="font-medium text-destructive">*</span>
|
Username <span className="font-medium text-destructive">*</span>
|
||||||
|
|
@ -82,7 +76,7 @@ export default function SignUp(): JSX.Element {
|
||||||
</Form.Message>
|
</Form.Message>
|
||||||
</Form.Field>
|
</Form.Field>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full mb-3">
|
<div className="mb-3 w-full">
|
||||||
<Form.Field name="password" serverInvalid={password != cnfPassword}>
|
<Form.Field name="password" serverInvalid={password != cnfPassword}>
|
||||||
<Form.Label className="data-[invalid]:label-invalid">
|
<Form.Label className="data-[invalid]:label-invalid">
|
||||||
Password <span className="font-medium text-destructive">*</span>
|
Password <span className="font-medium text-destructive">*</span>
|
||||||
|
|
|
||||||
|
|
@ -223,4 +223,4 @@ export type UserManagementType = {
|
||||||
export type loginInputStateType = {
|
export type loginInputStateType = {
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
}
|
};
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ import {
|
||||||
XCircle,
|
XCircle,
|
||||||
Zap,
|
Zap,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
|
import { FaApple, FaGithub } from "react-icons/fa";
|
||||||
import { AirbyteIcon } from "../icons/Airbyte";
|
import { AirbyteIcon } from "../icons/Airbyte";
|
||||||
import { AnthropicIcon } from "../icons/Anthropic";
|
import { AnthropicIcon } from "../icons/Anthropic";
|
||||||
import { BingIcon } from "../icons/Bing";
|
import { BingIcon } from "../icons/Bing";
|
||||||
|
|
@ -96,7 +97,6 @@ import SvgWikipedia from "../icons/Wikipedia/Wikipedia";
|
||||||
import SvgWolfram from "../icons/Wolfram/Wolfram";
|
import SvgWolfram from "../icons/Wolfram/Wolfram";
|
||||||
import { HackerNewsIcon } from "../icons/hackerNews";
|
import { HackerNewsIcon } from "../icons/hackerNews";
|
||||||
import { SupabaseIcon } from "../icons/supabase";
|
import { SupabaseIcon } from "../icons/supabase";
|
||||||
import { FaApple, FaGithub } from "react-icons/fa";
|
|
||||||
|
|
||||||
export const gradients = [
|
export const gradients = [
|
||||||
"bg-gradient-to-br from-gray-800 via-rose-700 to-violet-900",
|
"bg-gradient-to-br from-gray-800 via-rose-700 to-violet-900",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue