-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance ExternalLink component and update footer links; replace…
… anchor tags with ExternalLink for consistency
- Loading branch information
1 parent
1c35e1a
commit 0bd5cff
Showing
6 changed files
with
61 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faCode, faEnvelope, faFlag } from '@fortawesome/free-solid-svg-icons'; | ||
import { faGithub, faLinkedin } from '@fortawesome/free-brands-svg-icons'; | ||
import ExternalLink from './external-link'; | ||
|
||
const Footer: React.FC = () => { | ||
return ( | ||
|
@@ -25,35 +26,41 @@ const Footer: React.FC = () => { | |
<div className="col-span-1"> | ||
<h3 className="text-white font-medium mb-4">Quick Links</h3> | ||
<ul className="space-y-2"> | ||
<li><a href="https://playground.tcp1p.team/" className="text-gray-400 hover:text-red-400 text-sm">Playground</a></li> | ||
<li><a href="https://github.com/TCP1P/" className="text-gray-400 hover:text-red-400 text-sm">Resources</a></li> | ||
{/* <li><a href="https://dimasma0305.github.io/Cyber-Security-Learning-Resources/" className="text-gray-400 hover:text-red-400 text-sm">Blog</a></li> */} | ||
<li> | ||
<ExternalLink href='https://playground.tcp1p.team/'>Playground</ExternalLink> | ||
</li> | ||
<li> | ||
<ExternalLink href="https://github.com/TCP1P/">Resources</ExternalLink> | ||
</li> | ||
{/* <li><ExternalLink href="https://dimasma0305.github.io/Cyber-Security-Learning-Resources/">Blog</ExternalLink></li> */} | ||
</ul> | ||
</div> | ||
|
||
<div className="col-span-1"> | ||
<h3 className="text-white font-medium mb-4">Communnity</h3> | ||
<h3 className="text-white font-medium mb-4">Community</h3> | ||
<ul className="space-y-2"> | ||
<li><a href="https://discord.gg/Gj6h9TjN3D" className="text-gray-400 hover:text-red-400 text-sm">Discord</a></li> | ||
{/* <li><a href="https://www.facebook.com/groups/531741829733995/" className="text-gray-400 hover:text-red-400 text-sm">Facebook</a></li> */} | ||
<li> | ||
<ExternalLink href="https://discord.gg/Gj6h9TjN3D">Discord</ExternalLink> | ||
</li> | ||
{/* <li><ExternalLink href="https://www.facebook.com/groups/531741829733995/">Facebook</ExternalLink></li> */} | ||
</ul> | ||
</div> | ||
|
||
<div className="col-span-1"> | ||
<h3 className="text-white font-medium mb-4">Connect</h3> | ||
<div className="flex space-x-4"> | ||
<a href="https://github.com/TCP1P" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
<ExternalLink href="https://github.com/TCP1P" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
<FontAwesomeIcon icon={faGithub} className="text-red-400" /> | ||
</a> | ||
<a href="mailto:[email protected]" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
</ExternalLink> | ||
<ExternalLink href="mailto:[email protected]" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
<FontAwesomeIcon icon={faEnvelope} className="text-red-400" /> | ||
</a> | ||
<a href="https://ctftime.org/team/187248" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
</ExternalLink> | ||
<ExternalLink href="https://ctftime.org/team/187248" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
<FontAwesomeIcon icon={faFlag} className="text-red-400" /> | ||
</a> | ||
<a href="https://www.linkedin.com/company/tcp1p/" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
</ExternalLink> | ||
<ExternalLink href="https://www.linkedin.com/company/tcp1p/" className="w-8 h-8 bg-red-900/30 rounded-lg flex items-center justify-center hover:bg-red-900/50 transition-colors"> | ||
<FontAwesomeIcon icon={faLinkedin} className="text-red-400" /> | ||
</a> | ||
</ExternalLink> | ||
</div> | ||
</div> | ||
</div> | ||
|
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,21 +1,31 @@ | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { faGithub, faLinkedin } from "@fortawesome/free-brands-svg-icons"; | ||
import { faEnvelope} from "@fortawesome/free-solid-svg-icons"; | ||
import { faEnvelope } from "@fortawesome/free-solid-svg-icons"; | ||
import Image from "next/image"; | ||
|
||
import ctftimelogo from "../../../public/ctftime.png" | ||
import ctftimelogo from "../../../public/ctftime.png"; | ||
import ExternalLink from "../external-link"; | ||
|
||
export function TopFooter() { | ||
return <> | ||
<footer className="footer footer-center p-10 p-t text-base-content rounded"> | ||
return ( | ||
<footer className="footer footer-center p-10 text-base-content rounded"> | ||
<nav> | ||
<div className="grid grid-flow-col gap-4 p-4"> | ||
<a href="https://www.linkedin.com/company/tcp1p/" target="_blank"><FontAwesomeIcon icon={faLinkedin} className="text-3xl" /></a> | ||
<a href="https://github.com/TCP1P" target="_blank"><FontAwesomeIcon icon={faGithub} className="text-3xl" /></a> | ||
<a href="https://ctftime.org/team/187248" target="_blank"><Image src={ctftimelogo} width={28} height={28} alt={"CTFtime"}></Image></a> | ||
<a href="mailto:[email protected]" target="_blank"><FontAwesomeIcon icon={faEnvelope} className="text-3xl" /></a> | ||
<ExternalLink href="https://www.linkedin.com/company/tcp1p/" mode="red"> | ||
<FontAwesomeIcon icon={faLinkedin} className="text-3xl" /> | ||
</ExternalLink> | ||
<ExternalLink href="https://github.com/TCP1P" mode="red"> | ||
<FontAwesomeIcon icon={faGithub} className="text-3xl" /> | ||
</ExternalLink> | ||
<ExternalLink href="https://ctftime.org/team/187248" mode="red"> | ||
<Image src={ctftimelogo} width={28} height={28} alt={"CTFtime"} /> | ||
</ExternalLink> | ||
<ExternalLink href="mailto:[email protected]" mode="red"> | ||
<FontAwesomeIcon icon={faEnvelope} className="text-3xl" /> | ||
</ExternalLink> | ||
</div> | ||
<p>TCP1P • © 2024</p> | ||
</nav> | ||
</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