diff --git a/lenskartapp/src/Components/Login.jsx/LoginComponent.jsx b/lenskartapp/src/Components/Login.jsx/LoginComponent.jsx index a960ba0..8dd09a8 100644 --- a/lenskartapp/src/Components/Login.jsx/LoginComponent.jsx +++ b/lenskartapp/src/Components/Login.jsx/LoginComponent.jsx @@ -14,17 +14,21 @@ import { useDisclosure, Image } from '@chakra-ui/react'; +import SignUpComponent from './SingnUpComponent'; -const LoginComponent = () => { +const LoginComponent = ({text, asALink}) => { const { isOpen, onOpen, onClose } = useDisclosure() const initialRef = React.useRef(null) const finalRef = React.useRef(null) + const styleObj = { + border:'none',background:'none', color: asALink ? 'blue' : null + }; return ( <> - Login + {text} {/* I'll receive focus on close */} @@ -54,11 +58,12 @@ const LoginComponent = () => { - + Save - Cancel + {/* Cancel */} + diff --git a/lenskartapp/src/Components/Login.jsx/SingnUpComponent.jsx b/lenskartapp/src/Components/Login.jsx/SingnUpComponent.jsx index 19965ad..67fe5d1 100644 --- a/lenskartapp/src/Components/Login.jsx/SingnUpComponent.jsx +++ b/lenskartapp/src/Components/Login.jsx/SingnUpComponent.jsx @@ -13,17 +13,22 @@ import { Input, useDisclosure } from '@chakra-ui/react'; +import LoginComponent from './LoginComponent'; + -const SignUpComponent = () => { +const SignUpComponent = ({text, asALink}) => { const { isOpen, onOpen, onClose } = useDisclosure() const initialRef = React.useRef(null) const finalRef = React.useRef(null) + const styleObj = { + border:'none',background:'none', marginLeft: '-45px', color: asALink ? 'blue' : null + }; return ( <> - Login + {text} {/* I'll receive focus on close */} @@ -36,7 +41,7 @@ const SignUpComponent = () => { > - Create your account + Create an account @@ -60,14 +65,20 @@ const SignUpComponent = () => { Password + + Got a Referral Code?( Optional ) + + Get Updates on Whatsapp + By creating this account, you agree to our Privacy Policy - + Create an Account - Cancel + {/* Cancel */} + > diff --git a/lenskartapp/src/Components/Navbar/Navbar.jsx b/lenskartapp/src/Components/Navbar/Navbar.jsx index a0d484e..672de31 100644 --- a/lenskartapp/src/Components/Navbar/Navbar.jsx +++ b/lenskartapp/src/Components/Navbar/Navbar.jsx @@ -1,6 +1,8 @@ import React from 'react' import { Link } from 'react-router-dom' import style from "../../Styles/Navbar.module.css" +import LoginComponent from '../Login.jsx/LoginComponent' +import SignUpComponent from '../Login.jsx/SingnUpComponent' const Navbar = () => { return ( @@ -18,8 +20,12 @@ const Navbar = () => { Track Order - Sign In & Sign Up + + + {/* Sign In + &Sign Up + */} Whislist
Got a Referral Code?( Optional )
By creating this account, you agree to our Privacy Policy