Skip to content

Commit 82a5f8e

Browse files
committed
updating
1 parent 89ea9fb commit 82a5f8e

File tree

2 files changed

+40
-13
lines changed

2 files changed

+40
-13
lines changed

src/components/Footer.jsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
import React from 'react';
2-
import { FaStar, FaCodeBranch } from 'react-icons/fa';
2+
import LinksComponent from './LinksComponent';
33

44
function Footer() {
5+
const solutions = [
6+
{ url: '#!', text: 'Explore projects' },
7+
{ url: '#!', text: 'Add Project' },
8+
{ url: '#!', text: 'Contribution' },
9+
]
10+
const support = [
11+
{ url: '#!', text: 'Report Bug' },
12+
{ url: '#!', text: 'Request Feature' },
13+
{ url: '#!', text: 'Documentation' },
14+
]
515
return (
6-
<footer className="bg-white text-gray-700 py-6">
16+
<footer className="bg-blue-800 text-white py-6">
717
<div className="container mx-auto flex flex-col justify-between items-center">
818
<div className="text-center mb-4">
919
<h2 className="text-3xl mb-3 font-bold">Projest</h2>
10-
<p className="text-sm px-2 md:px-0">A platform for showcasing and sharing projects. For any issues or feature requests, feel free to open an issue on our GitHub repository.</p>
11-
</div>
12-
<div className="flex items-center space-x-4">
13-
<a href="https://github.com/Frenziecodes/Projest" className="hover:text-yellow-700 flex items-center">
14-
<FaStar className="mr-1" />
15-
Star Project
16-
</a>
17-
<a href="https://github.com/Frenziecodes/Projest/fork" className="flex items-center hover:text-blue-700">
18-
<FaCodeBranch className="mr-1" />
19-
Fork Project
20-
</a>
20+
<p className="text-sm px-2 md:px-0">A platform for showcasing and sharing projects. If you find this platform helpful, we would appreciate it if you could <a href="https://github.com/Frenziecodes/Projest" target="_blank" rel="noopener noreferrer">star</a> the project on <a href="https://github.com/Frenziecodes/Projest" target="_blank" rel="noopener noreferrer">GitHub</a>.</p>
2121
</div>
2222
</div>
23+
<div className="grid md:grid-cols-2 lg:grid-cols-2 place-items-center my-2">
24+
<LinksComponent label="Solutions" links={solutions} />
25+
<LinksComponent label="Support" links={support} />
26+
</div>
2327
<div className="text-center mt-4">
2428
© {new Date().getFullYear()} All rights reserved.
2529
</div>

src/components/LinksComponent.jsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
3+
const LinksComponent = ({ label, links }) => {
4+
return (
5+
<div className="mb-6">
6+
<h5 className="mb-2.5 font-bold uppercase text-white">
7+
{label}
8+
</h5>
9+
10+
<ul className="mb-0 list-none">
11+
{links.map((link, index) => (
12+
<li key={index}>
13+
<a href={link.url} className="text-neutral-900 text-sm">
14+
{link.text}
15+
</a>
16+
</li>
17+
))}
18+
</ul>
19+
</div>
20+
);
21+
};
22+
23+
export default LinksComponent;

0 commit comments

Comments
 (0)