mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
blinky parrot
This commit is contained in:
1 parent
13da57a8d6
commit
5a20899808
1 file changed
+11
-3
@@ -9,6 +9,7 @@ export default function Login() {
|
|||||||
const [password, setPassword] = useState("");
|
const [password, setPassword] = useState("");
|
||||||
const [error, setError] = useState("");
|
const [error, setError] = useState("");
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
const [isPasswordHovered, setIsPasswordHovered] = useState(false); // Add state for hover
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { data: session, status } = useSession();
|
const { data: session, status } = useSession();
|
||||||
@@ -61,8 +62,10 @@ export default function Login() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="auth-page">
|
<div className="auth-page">
|
||||||
{/* Decorative square */}
|
{/* Decorative square with conditional background based on password hover */}
|
||||||
<div className="decorative-square"></div>
|
<div
|
||||||
|
className={`decorative-square ${isPasswordHovered ? "hovered" : ""}`}
|
||||||
|
></div>
|
||||||
|
|
||||||
<div className="auth-container">
|
<div className="auth-container">
|
||||||
<div className="auth-card">
|
<div className="auth-card">
|
||||||
@@ -84,6 +87,8 @@ export default function Login() {
|
|||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
value={password}
|
value={password}
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
|
onMouseEnter={() => setIsPasswordHovered(true)}
|
||||||
|
onMouseLeave={() => setIsPasswordHovered(false)}
|
||||||
required
|
required
|
||||||
className="auth-input"
|
className="auth-input"
|
||||||
/>
|
/>
|
||||||
@@ -103,7 +108,7 @@ export default function Login() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Update styles to reduce gap */}
|
{/* Update styles with hover effect */}
|
||||||
<style jsx>{`
|
<style jsx>{`
|
||||||
.auth-card {
|
.auth-card {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@@ -159,6 +164,9 @@ export default function Login() {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
.decorative-square.hovered {
|
||||||
|
background-image: url("/images/parrot-hover.svg");
|
||||||
|
}
|
||||||
.auth-page {
|
.auth-page {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in new issue
Block a user