Skip to content

Commit

Permalink
feat: adding credit footer
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteLacroix committed Sep 22, 2024
1 parent d98298b commit 9649184
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {FormationComponent} from "./modules/FormationComponent.tsx";
import {PortfolioComponent} from "./modules/PortfolioComponent.tsx";
import SkillsSection from "./modules/SkillsSection.tsx";
import {useRef} from "react";
import CreditComponent from "./modules/CreditComponent.tsx";

export default function App() {
const homeRef = useRef<HTMLDivElement>(null);
Expand Down Expand Up @@ -51,6 +52,9 @@ export default function App() {
<div ref={skillsRef}>
<SkillsSection/>
</div>
<div>
<CreditComponent/>
</div>
</div>
</>
);
Expand Down
13 changes: 13 additions & 0 deletions src/modules/CreditComponent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';

const CreditComponent: React.FC = () => {
const currentYear = new Date().getFullYear();
return (
<footer className="container mx-auto max-w-7xl pb-12 px-12">
<div className="flex flex-col justify-center items-center gap-1"><p
className="text-sm text-default-400">© Copyright {currentYear} Baptiste Lacroix.</p></div>
</footer>
);
};

export default CreditComponent;

0 comments on commit 9649184

Please sign in to comment.