Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit ab456d2

Browse files
feat: Create a fully responsive footer with copyright symbol and app version (#82)
* Create a footer * feat(footer): Create a fully responsive footer with copyright symbol and dynamic app version from package.json
1 parent 042759d commit ab456d2

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import Navbar from "@/components/Nav";
22
import Hero from "@/components/Hero";
33
import Repos from "@/components/Repos";
4+
import Footer from "@/components/Footer";
45

56
export default function Home() {
67
return (
78
<main>
89
<Navbar />
910
<Hero />
1011
<Repos />
12+
<Footer />
1113
</main>
1214
);
1315
}

src/components/Footer.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from "react";
2+
import packageJson from "../../package.json"; // Adjust the path as per your folder structure
3+
4+
const Footer = () => {
5+
return (
6+
<div>
7+
<footer className="footer footer-center bg-base-300 text-base-content p-10">
8+
<aside>
9+
<p>
10+
Copyright © {new Date().getFullYear()} - All rights reserved by
11+
TrendTrack - v{packageJson.version}
12+
</p>
13+
</aside>
14+
</footer>
15+
</div>
16+
);
17+
};
18+
19+
export default Footer;

0 commit comments

Comments
 (0)