generated from UoaWDCC/ssr-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from UoaWDCC/fix/footer
Created footer
- Loading branch information
Showing
2 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters