Skip to content

Commit 1379c10

Browse files
committed
Footer copyright component
1 parent 540c47a commit 1379c10

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

src/components/shared/AppFooter.js

+2-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FiGithub, FiTwitter, FiInstagram, FiBook } from 'react-icons/fi';
2-
import { Link } from 'react-router-dom';
2+
import AppFooterCopyright from './AppFooterCopyright';
33

44
const socialLinks = [
55
{
@@ -48,29 +48,9 @@ const AppFooter = () => {
4848
))}
4949
</ul>
5050
</div>
51-
{/* Footer social links end */}
5251

5352
{/* Footer copyright start */}
54-
<div className="font-general-regular flex justify-center items-center text-center">
55-
<div className="text-lg text-ternary-dark dark:text-ternary-light">
56-
&copy; {new Date().getFullYear()}
57-
<Link
58-
to="https://github.com/realstoman/react-tailwindcss-portfolio"
59-
className="hover:underline ml-1"
60-
>
61-
React & TailwindCSS Portfolio
62-
</Link>
63-
.
64-
<Link
65-
to="https://stoman.me"
66-
target="__blank"
67-
className="text-secondary-dark dark:text-secondary-light uppercase hover:underline ml-1"
68-
>
69-
Stoman
70-
</Link>
71-
</div>
72-
</div>
73-
{/* Footer copyright end */}
53+
<AppFooterCopyright />
7454
</div>
7555
</div>
7656
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { Link } from 'react-router-dom';
2+
3+
function AppFooterCopyright() {
4+
return (
5+
<div className="font-general-regular flex justify-center items-center text-center">
6+
<div className="text-lg text-ternary-dark dark:text-ternary-light">
7+
&copy; {new Date().getFullYear()}
8+
<Link
9+
to="https://github.com/realstoman/react-tailwindcss-portfolio"
10+
className="hover:underline ml-1"
11+
>
12+
React & TailwindCSS Portfolio
13+
</Link>
14+
.
15+
<Link
16+
to="https://stoman.me"
17+
target="__blank"
18+
className="text-secondary-dark dark:text-secondary-light uppercase hover:underline ml-1"
19+
>
20+
Stoman
21+
</Link>
22+
</div>
23+
</div>
24+
);
25+
}
26+
27+
export default AppFooterCopyright;

0 commit comments

Comments
 (0)