Skip to content

Commit

Permalink
Adding hover effect over the login now and register now texts (#359)
Browse files Browse the repository at this point in the history
* Adding hover effect over the login now and register now texts

* update function  LoginTextLink
  • Loading branch information
anuukriti authored May 19, 2024
1 parent 4b11640 commit ed7afb3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Components/shared/LoginTextLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import { Link } from "react-router-dom";
* @param {string} [props.bottomPosition] - The bottom CSS property for the text link.
* @returns {JSX.Element} A JSX element representing the LoginTextLink component.
*/
function LoginTextLink({ text, link, linkText, position, topPosition, bottomPosition ,leftPosition, rightPosition}) {
function LoginTextLink({text, link, linkText, position, topPosition, bottomPosition, leftPosition, rightPosition}) {
return (
<p className="text-gray-500 text-[16px] font-bold">

{text || "Already have an account?"}
<Link to={link || "/login"} className="text-sky-400 tracking-wider text-sm font-medium underline inline-block mx-1">
<Link
to={link || "/login"}
className="text-sky-400 cursor-pointer hover:text-[#312E81] hover:font-bold transition-all ease-in-out tracking-wider text-sm font-medium underline inline-block mx-1"
>
{linkText || "Login now!"}
</Link>
</p>
Expand Down

0 comments on commit ed7afb3

Please sign in to comment.