Skip to content

Commit

Permalink
Add Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
SamHillierDev committed Jul 28, 2024
1 parent 719a33b commit 948d894
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useState } from "react";
import { useState } from "react";
import Header from "./components/Header";
import Records from "./components/Records";
import AddLifter from "./components/AddLifter";
import Footer from "./components/Footer";

interface Lifter {
name: string;
Expand All @@ -21,14 +22,15 @@ const App: React.FC = () => {
return (
<>
<Header showAddLifter={showAddLifter} toggleAddLifter={toggleAddLifter} />
<Records lifters={lifters} />
{showAddLifter && (
<AddLifter
setLifters={setLifters}
lifters={lifters}
toggleAddLifter={toggleAddLifter}
/>
)}
<Records lifters={lifters} />
<Footer />
</>
);
};
Expand Down
40 changes: 40 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
interface FooterProps {}

const Footer: React.FC<FooterProps> = () => (
<footer>
<section>
<a
href="https://github.com/Zyphaex"
target="_blank"
rel="noopener noreferrer"
>
GitHub
</a>
<a
href="https://linkedin.com/in/samhillier"
target="_blank"
rel="noopener noreferrer"
>
LinkedIn
</a>
<a href="https://x.com/Zyphaex" target="_blank" rel="noopener noreferrer">
X
</a>
<a
href="https://instagram.com/Zyphaex"
target="_blank"
rel="noopener noreferrer"
>
Instagram
</a>
</section>
<section>
<p>
&copy; {new Date().getFullYear()} SBDREC. All Rights Reserved.
<br />
</p>
</section>
</footer>
);

export default Footer;
2 changes: 0 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

interface HeaderProps {
showAddLifter: boolean;
toggleAddLifter: () => void;
Expand Down
2 changes: 0 additions & 2 deletions src/components/Records.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

interface Lifter {
name: string;
squat: number;
Expand Down

0 comments on commit 948d894

Please sign in to comment.