Skip to content

Refactor footer icons: Added tooltips, updated social icon colors, and improved UX #1063

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
73 changes: 59 additions & 14 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '@fortawesome/fontawesome-free/css/all.min.css';

export const Footer = () => {
return (
<footer className="w-full bg-gray-800 py-8 text-white">
Expand Down Expand Up @@ -33,54 +35,97 @@ export const Footer = () => {
</div>

{/* Column 3 */}
<style>
{`
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
}

.tooltip .tooltip-text {
visibility: hidden;
max-width: 140px;
background-color: black;
color: white;
text-align: center;
padding: 3px 6px;
font-size: 0.75rem;
border-radius: 4px;
position: absolute;
z-index: 10;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
white-space: nowrap;
}

.tooltip .tooltip-text::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 4px;
border-style: solid;
border-color: black transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
`}
</style>

<div className="flex items-center justify-center space-x-6 md:justify-end">
<a
href="https://github.com/devdisplay"
target="_blank"
rel="noopener noreferrer"
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#6B7280]" // GitHub gray
>
<i className="fab fa-github"></i>
<span className="tooltip-text">GitHub</span>
</a>
<a
href="https://discord.com/invite/chyt2UgTv5"
target="_blank"
rel="noopener noreferrer"
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#5865F2]" // Discord blue
>
<i className="fab fa-discord"></i>
<span className="tooltip-text">Discord</span>
</a>
{/* <a
href="https://chat.whatsapp.com/Dcl21sgGDIpHURESSuH0p4"
target="_blank"
rel="noopener noreferrer"
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
>
<i className="fab fa-whatsapp"></i>
</a> */}
<a
href="https://www.linkedin.com/company/devdisplay/"
target="_blank"
rel="noopener noreferrer"
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#0A66C2]" // LinkedIn blue
>
<i className="fab fa-linkedin-in"></i>
<span className="tooltip-text">LinkedIn</span>
</a>
<a
href="https://x.com/devdisplay_"
target="_blank"
rel="noopener noreferrer"
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#000000]" // X black
>
<i className="fab fa-twitter"></i>
<i className="fab fa-x-twitter"></i>
<span className="tooltip-text">X (formerly Twitter)</span>
</a>
<a
href="https://www.instagram.com/devdisplay/"
target="_blank"
rel="noopener noreferrer"
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#E1306C]" // Instagram pink
>
<i className="fab fa-instagram"></i>
<span className="tooltip-text">Instagram</span>
</a>
</div>
</div>
Expand Down