-
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.
- Loading branch information
1 parent
22ea597
commit 7acc8ae
Showing
12 changed files
with
107 additions
and
92 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
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,53 +1,60 @@ | ||
'use client'; | ||
|
||
import Link from 'next/link'; | ||
import { usePathname } from 'next/navigation'; | ||
|
||
import NavbarButton from '@/components/navbarButton'; | ||
import { EnvelopeIcon, GitHubIcon, LinkedInIcon } from '@/components/icons'; | ||
|
||
const Footer = ({ navbarButtons }) => ( | ||
<footer className="flex flex-col space-y-5"> | ||
<div className="flex flex-row justify-center md:justify-end space-x-4"> | ||
{navbarButtons.map((navButton) => ( | ||
<NavbarButton | ||
title={navButton.title} | ||
route={navButton.route} | ||
key={navButton.route} | ||
/> | ||
))} | ||
</div> | ||
<div className="w-full flex flex-row justify-center md:justify-end items-center"> | ||
<div className="flex flex-row space-x-5 items-center"> | ||
<Link | ||
href="https://github.com/samuel-ping" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<button className="flex items-center"> | ||
<GitHubIcon className="h-10 w-10 text-black hover:text-green-500 transition-colors" /> | ||
</button> | ||
</Link> | ||
<Link | ||
href="https://linkedin.com/in/samuelping" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<button className="flex items-center"> | ||
<LinkedInIcon className="h-10 w-10 text-black hover:text-green-500 transition-colors" /> | ||
</button> | ||
</Link> | ||
<Link | ||
href="mailto:samuel.y.ping@gmail.com" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<button className="flex items-center"> | ||
<EnvelopeIcon className="h-10 w-10 text-black hover:text-green-500 transition-colors" /> | ||
</button> | ||
</Link> | ||
const Footer = ({ navbarButtons }) => { | ||
const pathname = usePathname(); | ||
|
||
return ( | ||
<footer className="flex flex-col space-y-5"> | ||
<div className="flex flex-row justify-center md:justify-end space-x-4"> | ||
{navbarButtons.map((button) => ( | ||
<NavbarButton | ||
active={`/${pathname.split('/')[1]}` === button.route} | ||
title={button.title} | ||
route={button.route} | ||
key={button.route} | ||
/> | ||
))} | ||
</div> | ||
|
||
<div className="w-full flex flex-row justify-center md:justify-end items-center"> | ||
<div className="flex flex-row space-x-5 items-center"> | ||
<Link | ||
href="https://github.com/samuel-ping" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<button className="flex items-center"> | ||
<GitHubIcon className="h-10 w-10 text-black hover:text-primary transition-colors" /> | ||
</button> | ||
</Link> | ||
<Link | ||
href="https://linkedin.com/in/samuelping" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<button className="flex items-center"> | ||
<LinkedInIcon className="h-10 w-10 text-black hover:text-primary transition-colors" /> | ||
</button> | ||
</Link> | ||
<Link | ||
href="mailto:samuel.y.ping@gmail.com" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<button className="flex items-center"> | ||
<EnvelopeIcon className="h-10 w-10 text-black hover:text-primary transition-colors" /> | ||
</button> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
</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
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