-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staff otp page added and sigin page updated
- Loading branch information
Showing
18 changed files
with
171 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 3, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"printWidth": 80, | ||
"arrowParens": "avoid" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
import OtpVerificationModel from '@/components/OtpVerificationModel' | ||
|
||
const OptInterceptor = () => <OtpVerificationModel returnRoute='/staff/' /> | ||
|
||
|
||
export default OptInterceptor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
import React from 'react' | ||
import SignIn from './page' | ||
|
||
const DefaultSigninPage = () => { | ||
return ( | ||
<div> | ||
<SignIn /> | ||
</div> | ||
) | ||
} | ||
|
||
export default DefaultSigninPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
'use client' | ||
import OtpForm from "@/components/forms/OtpForms"; | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
import { FormEvent } from "react"; | ||
|
||
const OtpVerificationPage = () => { | ||
const handleVerify =(e:FormEvent)=>{ | ||
e.preventDefault(); | ||
console.log(''); | ||
|
||
} | ||
const handleResend = ()=>{ | ||
console.log(''); | ||
} | ||
return ( | ||
<div> | ||
<div className="flex h-screen max-h-screen"> | ||
<section className="remove-scrollbar container my-auto"> | ||
<div className="sub-container max-[496px]"> | ||
<Image | ||
src={"/assets/icons/logo-full.svg"} | ||
width={1000} | ||
height={1000} | ||
alt="patient" | ||
className="mb-12 h-10 w-fit" | ||
/> | ||
<OtpForm handleResend={handleResend} timer={30} handleVerify={handleVerify} /> | ||
<div className="text-14-regular py-12 flex justify-between"> | ||
<p className="justify-items-end text-dark-600 xl:text-left"> | ||
© 2024 AVM Ayurveda's | ||
</p> | ||
<Link href={"/staff"} className="text-green-500"> | ||
Go Back | ||
</Link> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<Image | ||
src="/assets/images/onboarding-img.png" | ||
height={1000} | ||
width={1000} | ||
alt="patient" | ||
className="side-img max-w-[50%]" | ||
/> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
|
||
export default OtpVerificationPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react' | ||
import Dashboard from './page' | ||
|
||
const DashboardDefaultPage = () => { | ||
return <Dashboard /> | ||
} | ||
|
||
export default DashboardDefaultPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
|
||
const ProductsPage = () => { | ||
return ( | ||
<div>ProductsPage</div> | ||
) | ||
} | ||
|
||
export default ProductsPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
"use client"; | ||
|
||
import { useState} from "react"; | ||
import { | ||
InputOTP, | ||
InputOTPGroup, | ||
InputOTPSlot, | ||
} from "@/components/ui/input-otp"; | ||
import { Button } from "@/components/ui/button"; | ||
import { Otptimer } from "otp-timer-ts"; | ||
import { OtpFromProps } from "@/types/fromTypes"; | ||
|
||
export default function OtpVerificationSection({handleVerify,handleResend,timer}:OtpFromProps) { | ||
const [otp, setOtp] = useState(""); | ||
|
||
return ( | ||
<form className="space-y-6 flex-1"> | ||
<section className="mb-12 space-y-4"> | ||
<h1 className="header">OTP Verification </h1> | ||
<p className="text-dark-700"> | ||
Please enter the OTP sent to your registered mobile number. | ||
</p> | ||
</section> | ||
<InputOTP | ||
maxLength={6} | ||
value={otp} | ||
onChange={value => setOtp(value)} | ||
className="mb-6" | ||
> | ||
<InputOTPGroup className="shad-otp"> | ||
<InputOTPSlot index={0} className="shad-otp-slot" /> | ||
<InputOTPSlot index={1} className="shad-otp-slot" /> | ||
<InputOTPSlot index={2} className="shad-otp-slot" /> | ||
<InputOTPSlot index={3} className="shad-otp-slot" /> | ||
<InputOTPSlot index={4} className="shad-otp-slot" /> | ||
<InputOTPSlot index={5} className="shad-otp-slot" /> | ||
</InputOTPGroup> | ||
</InputOTP> | ||
<div className="mt-4 mb-5 flex justify-between items-center"> | ||
<Otptimer seconds={timer} onResend={handleResend} /> | ||
</div> | ||
<Button | ||
onClick={e => handleVerify(e)} | ||
type="submit" | ||
className="w-full bg-green-500 hover:bg-green-600 text-white font-semibold py-3 px-4 rounded" | ||
disabled={otp.length !== 6} | ||
> | ||
Verify OTP | ||
</Button> | ||
</form> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117612c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
avm-care – ./
avm-care.vercel.app
avm-care-sinans-projects-8d312afe.vercel.app
avm-care-git-main-sinans-projects-8d312afe.vercel.app