Skip to content

Commit b218746

Browse files
feat: Add cursor pointer on hover on footer and scroll to top on click
1 parent 9880dc1 commit b218746

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/Footer/Footer.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ import Link from "next/link";
77
const Footer = () => {
88
const date = new Date();
99
const year = date.getFullYear();
10-
10+
const handleClick =()=>{
11+
window.scrollTo({top:0,behavior:'smooth'})
12+
}
1113
return (
1214
<footer>
1315
<Container>
1416
<Row>
1517
<Col lg="12">
1618
<div className={`${classes.footer__copyright}`}>
17-
<p>
19+
<p onClick={handleClick} className="cursor-pointer">
1820
&copy; Copyright {year} - Developed by Piyush Garg. All right
1921
reserved.
2022
</p>

0 commit comments

Comments
 (0)