Skip to content

Commit

Permalink
Merge pull request #303 from tarushi29/footer
Browse files Browse the repository at this point in the history
Fixed code to enhance dynamic feature code for year issue #291
  • Loading branch information
PranavBarthwal authored May 31, 2024
2 parents 5036b5c + bb709c1 commit 11d8eba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import img from '../../assets/logo_white.png';


function Footer() {
const currentYear = new Date().getFullYear();
return (
<div className="container">
<footer className="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<a href="/" className="col-md-4 d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none">
<img src={img} width="150" alt="Logo" />
</a>
<p className="col-md-4 mb-0 text-light">© 2024 CosmoXplore India, Inc. All Rights Reserved</p>
<p className="col-md-4 mb-0 text-light">©{currentYear} CosmoXplore India, Inc. All Rights Reserved</p>
</footer>
</div>
);
Expand Down

0 comments on commit 11d8eba

Please sign in to comment.