-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from leslieyip02/add-footer
KAN-4 Add footer
- Loading branch information
Showing
10 changed files
with
134 additions
and
15 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
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.footer-banner { | ||
@apply | ||
sticky | ||
flex | ||
flex-col | ||
w-full | ||
px-8 | ||
md:px-20 | ||
pt-8 | ||
md:pt-10 | ||
pb-16 | ||
md:pb-20 | ||
gap-y-1 | ||
bg-primary | ||
text-white | ||
; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { | ||
FaFacebookF, | ||
FaInstagram, | ||
FaTelegramPlane, | ||
FaYoutube, | ||
FaLinkedinIn, | ||
} from 'react-icons/fa'; | ||
import { IoMdMail } from 'react-icons/io'; | ||
import './Footer.css'; | ||
|
||
function Footer() { | ||
const socialMediaLinks = [ | ||
{ | ||
platform: 'Facebook', | ||
url: 'https://www.facebook.com/nuscomputing', | ||
icon: FaFacebookF, | ||
}, | ||
{ | ||
platform: 'Instagram', | ||
url: 'https://www.instagram.com/NUSComputingClub/', | ||
icon: FaInstagram, | ||
}, | ||
{ | ||
platform: 'Telegram', | ||
url: 'https://t.me/nuscomputingclub', | ||
icon: FaTelegramPlane, | ||
}, | ||
{ | ||
platform: 'YouTube', | ||
url: 'https://www.youtube.com/channel/UCIXFOIE140R6x0z05hgim0Q', | ||
icon: FaYoutube, | ||
}, | ||
{ | ||
platform: 'LinkedIn', | ||
url: 'https://www.linkedin.com/company/nus-students-computing-club/', | ||
icon: FaLinkedinIn, | ||
}, | ||
{ | ||
platform: 'Email', | ||
url: '[email protected]', | ||
icon: IoMdMail, | ||
}, | ||
]; | ||
|
||
return ( | ||
<footer className='w-full'> | ||
<div className='footer-banner'> | ||
<h4 className='font-heading font-bold text-xl'> | ||
NUS Students' Computing Club | ||
</h4> | ||
<p className='font-subheading text-sm'> | ||
A constituent club of the NUS Students' Union | ||
</p> | ||
|
||
<div className='flex flex-row flex-wrap'> | ||
{ | ||
socialMediaLinks.map((data, key) => { | ||
return ( | ||
<Link | ||
to={data.url} | ||
aria-label={data.platform} | ||
key={key} | ||
className='mr-4 my-1 text-xl' | ||
> | ||
<data.icon /> | ||
</Link> | ||
); | ||
}) | ||
} | ||
</div> | ||
|
||
<p className='font-subheading text-sm'> | ||
Copyright © NUS Students' Computing Club • | ||
<span className='inline-block underline'> | ||
<Link to='/privacy'>Privacy Policy</Link> | ||
</span> | ||
</p> | ||
</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
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
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
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
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