Skip to content

Commit e4f8a47

Browse files
committed
Enhance footer icons with original brand colors and tooltips
1 parent 974971f commit e4f8a47

File tree

1 file changed

+59
-14
lines changed

1 file changed

+59
-14
lines changed

src/components/Footer/Footer.jsx

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import '@fortawesome/fontawesome-free/css/all.min.css';
2+
13
export const Footer = () => {
24
return (
35
<footer className="w-full bg-gray-800 py-8 text-white">
@@ -33,54 +35,97 @@ export const Footer = () => {
3335
</div>
3436

3537
{/* Column 3 */}
38+
<style>
39+
{`
40+
.tooltip {
41+
position: relative;
42+
display: inline-block;
43+
cursor: pointer;
44+
}
45+
46+
.tooltip .tooltip-text {
47+
visibility: hidden;
48+
max-width: 140px;
49+
background-color: black;
50+
color: white;
51+
text-align: center;
52+
padding: 3px 6px;
53+
font-size: 0.75rem;
54+
border-radius: 4px;
55+
position: absolute;
56+
z-index: 10;
57+
bottom: 125%;
58+
left: 50%;
59+
transform: translateX(-50%);
60+
opacity: 0;
61+
transition: opacity 0.3s ease;
62+
pointer-events: none;
63+
white-space: nowrap;
64+
}
65+
66+
.tooltip .tooltip-text::after {
67+
content: '';
68+
position: absolute;
69+
top: 100%;
70+
left: 50%;
71+
transform: translateX(-50%);
72+
border-width: 4px;
73+
border-style: solid;
74+
border-color: black transparent transparent transparent;
75+
}
76+
77+
.tooltip:hover .tooltip-text {
78+
visibility: visible;
79+
opacity: 1;
80+
}
81+
`}
82+
</style>
83+
3684
<div className="flex items-center justify-center space-x-6 md:justify-end">
3785
<a
3886
href="https://github.com/devdisplay"
3987
target="_blank"
4088
rel="noopener noreferrer"
41-
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
89+
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#6B7280]" // GitHub gray
4290
>
4391
<i className="fab fa-github"></i>
92+
<span className="tooltip-text">GitHub</span>
4493
</a>
4594
<a
4695
href="https://discord.com/invite/chyt2UgTv5"
4796
target="_blank"
4897
rel="noopener noreferrer"
49-
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
98+
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#5865F2]" // Discord blue
5099
>
51100
<i className="fab fa-discord"></i>
101+
<span className="tooltip-text">Discord</span>
52102
</a>
53-
{/* <a
54-
href="https://chat.whatsapp.com/Dcl21sgGDIpHURESSuH0p4"
55-
target="_blank"
56-
rel="noopener noreferrer"
57-
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
58-
>
59-
<i className="fab fa-whatsapp"></i>
60-
</a> */}
61103
<a
62104
href="https://www.linkedin.com/company/devdisplay/"
63105
target="_blank"
64106
rel="noopener noreferrer"
65-
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
107+
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#0A66C2]" // LinkedIn blue
66108
>
67109
<i className="fab fa-linkedin-in"></i>
110+
<span className="tooltip-text">LinkedIn</span>
68111
</a>
69112
<a
70113
href="https://x.com/devdisplay_"
71114
target="_blank"
72115
rel="noopener noreferrer"
73-
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
116+
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#000000]" // X black
74117
>
75-
<i className="fab fa-twitter"></i>
118+
<i className="fab fa-x-twitter"></i>
119+
<span className="tooltip-text">X (formerly Twitter)</span>
76120
</a>
77121
<a
78122
href="https://www.instagram.com/devdisplay/"
79123
target="_blank"
80124
rel="noopener noreferrer"
81-
className="transform text-3xl transition-transform hover:scale-110 hover:text-[#00a6fb]"
125+
className="tooltip transform text-3xl transition-transform hover:scale-110 hover:text-[#E1306C]" // Instagram pink
82126
>
83127
<i className="fab fa-instagram"></i>
128+
<span className="tooltip-text">Instagram</span>
84129
</a>
85130
</div>
86131
</div>

0 commit comments

Comments
 (0)