48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
"use client";
|
|
import React from "react";
|
|
import { YellowSection } from "../SignIn/YellowSection";
|
|
import { VerifyInput } from "./VerifyInput";
|
|
import { FaChevronLeft } from "react-icons/fa";
|
|
import { useRouter } from "next/navigation";
|
|
import { motion } from "framer-motion";
|
|
|
|
// import { Phone } from 'lucide-react';
|
|
// import useData from "@/store/useData";
|
|
|
|
const Verify = () => {
|
|
const router = useRouter();
|
|
|
|
// const data = useData((state) => state.data);
|
|
// console.log(data);
|
|
|
|
return (
|
|
<section className="bg-white md:bg-yellow flex flex-col-reverse md:flex-row h-screen w-full items-stretch justify-center overflow-y-hidden">
|
|
<FaChevronLeft
|
|
className="z-10 flex md:hidden absolute top-2 left-2 cursor-pointer"
|
|
onClick={() => router.back()}
|
|
/>
|
|
|
|
{/* Right Section */}
|
|
<div className="flex flex-1 items-center justify-start md:justify-center flex-col bg-white rounded-tl-[50px]">
|
|
<VerifyInput />
|
|
</div>
|
|
|
|
<div className="max-md:flex max-md:flex-col md:hidden">
|
|
<motion.div
|
|
initial={{ y: 100, visibility: "hidden", opacity: 0 }} // Initial position above the viewport
|
|
animate={{ y: 0, visibility: "visible", opacity: 1 }} // Animate to the default position
|
|
transition={{ type: "spring", damping: 10, stiffness: 100 }} // Define transition animation
|
|
>
|
|
<YellowSection />
|
|
</motion.div>
|
|
</div>
|
|
|
|
<div className="md:flex w-[30%] hidden">
|
|
<YellowSection />
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export default Verify;
|