Project structure changes ad new files added in dashboard folders

This commit is contained in:
2026-07-23 18:32:07 +05:30
parent 1993d91319
commit 5a2ae769d8
63 changed files with 1550 additions and 190 deletions

View File

@@ -4,7 +4,7 @@ import { useState } from "react";
import LoginForm from "./loginForm";
import VerifyCode from "./verifyCode";
import ForgotPassword from "./forgetPassword";
import {Step} from "@/constants/types"
import {Step} from "@/types/types"

View File

@@ -1,4 +1,4 @@
import { AuthLayoutProps } from "@/constants/types";
import { AuthLayoutProps } from "@/types/types";
import LeftPanel from "./leftpanel";

14
components/auth/badge.tsx Normal file
View File

@@ -0,0 +1,14 @@
export default function Badge({
children,
icon,
}: {
children: React.ReactNode;
icon: React.ReactNode;
}) {
return (
<div className="inline-flex w-fit items-center gap-2 rounded-full border border-slate-700 bg-[#0d1b2d] px-4 py-2 text-sm text-slate-300">
<span className="text-teal-400">{icon}</span>
{children}
</div>
);
}

View File

@@ -1,8 +1,8 @@
import FormInput from "@/utils/formInput";
import Button from "@/utils/button";
import FormInput from "@/components/common/formInput";
import Button from "@/components/common/button";
import {Props} from "@/constants/types"
import {Props} from "@/types/types"
export default function ForgotPassword({ onBack }: Props) {

View File

@@ -1,6 +1,6 @@
"use client";
import Badge from "@/utils/badge";
import Stat from "@/utils/statCard";
import Badge from "@/components/auth/badge";
import Stat from "@/components/auth/statCard";
import { ShieldCheck, KeyRound, FileText } from "lucide-react";

View File

@@ -1,9 +1,9 @@
import { Eye,EyeOff } from "lucide-react";
import FormInput from "@/utils/formInput";
import Button from "@/utils/button";
import FormInput from "@/components/common/formInput";
import Button from "@/components/common/button";
import { useState } from "react";
import {Props} from "@/constants/types"
import {Props} from "@/types/types"
import { signIn } from "next-auth/react";

View File

@@ -0,0 +1,16 @@
export default function Stat({
number,
label,
}: {
number: string;
label: string;
}) {
return (
<div>
<h2 className="text-3xl font-bold">{number}</h2>
<p className="mt-2 text-xs tracking-[3px] text-slate-400">
{label}
</p>
</div>
);
}

View File

@@ -1,8 +1,8 @@
import Button from "@/utils/button";
import Button from "@/components/common/button";
import OTPInput from "./otpInput";
import { useEffect, useState, } from "react";
import {Props} from "@/constants/types"
import {Props} from "@/types/types"
export default function VerifyCode({ onBack }: Props) {