Skip to content

Commit 0161dec

Browse files
committed
Footer
1 parent 3afbe04 commit 0161dec

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

app/components/footer.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use client';
2+
3+
import useTranslate from '@/hooks/useTranslate';
4+
import { useMemo } from 'react';
5+
6+
const Footer = () => {
7+
const { translate } = useTranslate();
8+
const year = useMemo(() => new Date().getFullYear(), []);
9+
10+
return (
11+
<footer className="w-full py-4 border-t border-neutral-100 dark:border-neutral-800">
12+
<div className="text-neutral-700 dark:text-neutral-400 text-center">
13+
<div>
14+
{translate('created')} NextJs {translate('and')} ❤️
15+
</div>
16+
<div>
17+
© {year} Derian Pinto. {translate('copyright')}.
18+
</div>
19+
</div>
20+
</footer>
21+
);
22+
};
23+
24+
export default Footer;

app/page.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Sidebar from './components/sidebar';
55
import AboutMe from './components/about-me';
66
import Experiences from './components/experiences';
77
import Skills from './components/skills';
8+
import Footer from './components/footer';
89

910
export default function Home() {
1011
return (
@@ -18,7 +19,7 @@ export default function Home() {
1819
<Skills />
1920
</div>
2021
</main>
21-
<footer></footer>
22+
<Footer />
2223
</>
2324
);
2425
}

data/languages/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"If you're looking to take your projects to the next level and benefit from my experience and enthusiasm, I'm here to help."
1111
],
1212
"readmore": "Read more",
13+
"created": "Created with",
14+
"and": "and",
15+
"copyright": "All rights reserved",
1316
"experiences": [
1417
{
1518
"title": "Senior FullStack Developer",

data/languages/es.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"Si estás buscando elevar tus proyectos al siguiente nivel, de contribuir con mi experiencia y entusiasmo."
1111
],
1212
"readmore": "Ver más",
13+
"created": "Creado con",
14+
"and": "y",
15+
"copyright": "Todos los derechos reservados",
1316
"experiences": [
1417
{
1518
"title": "Desarrollador FullStack - Senior",

0 commit comments

Comments
 (0)