Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created footer #56

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 42 additions & 5 deletions web/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,47 @@
function Footer() {
const currentTime = new Date().getFullYear();
import { FaFacebook, FaInstagram } from "react-icons/fa";
import peacockLogo from "../assets/peacock-logo.png";
import whiteName from "../assets/auis_white.png";
import { FacebookLink, InstagramLink } from "../data/data";

const Footer = () => {
const currentYear = new Date().getFullYear();
return (
<footer>
<h1>Footer | {currentTime}</h1>
<footer className="w-full bg-[#034159] flex flex-col justify-between px-4 sm:px-6 md:px-8 fixed bottom-0">
<div className="flex justify-between items-center py-3">
<div className="text-xl text-white flex items-center">
<img
src={peacockLogo}
alt="logo"
width={40}
height={40}
className="mr-3"
/>
<span>© {currentYear}</span>
<img
src={whiteName}
alt="logo"
width={50}
height={50}
className="ml-3"
/>
</div>
<div className="flex space-x-4">
<a href={FacebookLink} rel="noreferrer" target="_blank">
<FaFacebook
className="hover:-translate-y-1 transition-transform cursor-pointer text-white"
size={40}
/>
</a>
<a href={InstagramLink} rel="noreferrer" target="_blank">
<FaInstagram
className="hover:-translate-y-1 transition-transform cursor-pointer text-white"
size={40}
/>
</a>
</div>
</div>
</footer>
);
}
};

export default Footer;
4 changes: 4 additions & 0 deletions web/src/data/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ export const execs: Exec[] = [
bio: "Consectetur adipiscing elit...",
},
];

export const FacebookLink = "https://www.facebook.com/auis.uoa/";
export const InstagramLink =
"https://www.instagram.com/au.indiansociety/?hl=en";
Loading