Skip to content

Commit cc7853a

Browse files
Merge pull request #13 from EdTract/12-issue-in-the-footer
Enhance Footer Links and Styling for Better User Interaction
2 parents 7b10d17 + 741b081 commit cc7853a

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

src/components/Footer.jsx

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
FaInstagram,
88
FaLinkedinIn,
99
} from "react-icons/fa";
10+
import { Link } from "react-router-dom";
1011

1112
export default function Footer() {
1213
return (
@@ -16,17 +17,31 @@ export default function Footer() {
1617
<Col md={4}>
1718
<h5>Company</h5>
1819
<ul className="list-unstyled">
19-
<li>About Us</li>
20-
<li>Careers</li>
21-
<li>Contact Us</li>
20+
<li>
21+
<Link to="/about" className="footer-link">
22+
About Us
23+
</Link>
24+
</li>
25+
<li>
26+
<Link to="/contact" className="footer-link">
27+
Contact Us
28+
</Link>
29+
</li>
2230
</ul>
2331
</Col>
2432
<Col md={4}>
2533
<h5>Quick Links</h5>
2634
<ul className="list-unstyled">
27-
<li>Home</li>
28-
<li>Services</li>
29-
<li>Blog</li>
35+
<li>
36+
<Link to="/" className="footer-link">
37+
Home
38+
</Link>
39+
</li>
40+
<li>
41+
<Link to="/signup" className="footer-link">
42+
Sign Up
43+
</Link>
44+
</li>
3045
</ul>
3146
</Col>
3247
<Col md={4}>

src/styles/components/Footer.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
.footer h5 {
88
color: #f8f9fa;
99
margin-bottom: 20px;
10+
font-weight: bold;
11+
text-transform: uppercase;
12+
letter-spacing: 1px;
1013
}
1114

1215
.footer ul {
@@ -18,6 +21,17 @@
1821
margin-bottom: 10px;
1922
}
2023

24+
.footer .footer-link {
25+
color: #f8f9fa;
26+
text-decoration: none;
27+
transition: color 0.3s ease, transform 0.3s ease;
28+
}
29+
30+
.footer .footer-link:hover {
31+
color: #007bff;
32+
transform: translateX(5px);
33+
}
34+
2135
.footer .social-icons {
2236
display: flex;
2337
justify-content: space-around;
@@ -27,11 +41,12 @@
2741
.footer .social-icon {
2842
color: #f8f9fa;
2943
font-size: 20px;
30-
transition: color 0.3s ease;
44+
transition: color 0.3s ease, transform 0.3s ease;
3145
}
3246

3347
.footer .social-icon:hover {
3448
color: #007bff;
49+
transform: scale(1.2);
3550
}
3651

3752
.footer p {

0 commit comments

Comments
 (0)