Skip to content

Commit 2954d70

Browse files
committed
Fix Images and Footer.
1 parent 1814256 commit 2954d70

36 files changed

+1052
-102
lines changed

src/Route/Router.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from "react";
22
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
33
import Home from "../pages/Home.jsx";
44
import NotFound from "../pages/NotFound.jsx";
5+
import Privacy from "../pages/Privacy.jsx";
6+
import Terms from "../pages/Terms.jsx";
57
import MainLayout from "../layouts/MainLayout.jsx";
68

79
function AppRouter() {
@@ -12,6 +14,8 @@ function AppRouter() {
1214
<Routes>
1315
<Route path="/" element={<MainLayout />}>
1416
<Route index element={<Home />} />
17+
<Route path="privacy" element={<Privacy />} />
18+
<Route path="terms" element={<Terms />} />
1519
{/* Add more routes here if needed */}
1620
<Route path="*" element={<NotFound />} />
1721
</Route>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/Footer.jsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ import { useNavigate, useLocation } from "react-router-dom";
55
import personalInfo from "../data/personal-info.json";
66
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
77
import { useScrollTo } from "../hooks/useScrollTo";
8+
import { usePageNavigation } from "../hooks/usePageNavigation";
9+
import Logo from "./Logo";
810

911
function Footer() {
1012
const { t } = useTranslation();
1113
const navigate = useNavigate();
1214
const location = useLocation();
1315
const scrollToSection = useScrollTo();
16+
const navigateToPage = usePageNavigation();
1417

1518
const handleSectionClick = (href) => {
1619
if (location.pathname !== "/") {
@@ -31,18 +34,19 @@ function Footer() {
3134
}
3235
};
3336

34-
const handlePageNavigation = (path) => {
35-
navigate(path);
36-
};
37-
3837
return (
3938
<footer className={styles.footer}>
4039
<div className={styles.footerContainer}>
4140
{/* Main Footer Content */}
4241
<div className={styles.footerContent}>
43-
{/* About Section */}
42+
{/* Brand Section */}
4443
<div className={styles.footerSection}>
45-
<h3 className={styles.sectionTitle}>{personalInfo.name} {personalInfo.lastName}</h3>
44+
<div className={styles.brandSection}>
45+
<Logo size="large" className={styles.footerLogo} />
46+
<div className={styles.brandText}>
47+
<p className={styles.brandTagline}>{t("footer.tagline")}</p>
48+
</div>
49+
</div>
4650
<p className={styles.sectionDescription}>
4751
{t("footer.description")}
4852
</p>
@@ -107,23 +111,23 @@ function Footer() {
107111
<ul className={styles.linksList}>
108112
<li>
109113
<button
110-
onClick={() => handlePageNavigation("/skills")}
114+
onClick={() => navigateToPage("/skills")}
111115
className={styles.footerLink}
112116
>
113117
{t("nav.skills")}
114118
</button>
115119
</li>
116120
<li>
117121
<button
118-
onClick={() => handlePageNavigation("/tips")}
122+
onClick={() => navigateToPage("/tips")}
119123
className={styles.footerLink}
120124
>
121125
{t("nav.tips")}
122126
</button>
123127
</li>
124128
<li>
125129
<button
126-
onClick={() => handlePageNavigation("/contact")}
130+
onClick={() => navigateToPage("/contact")}
127131
className={styles.footerLink}
128132
>
129133
{t("nav.contact")}
@@ -185,13 +189,13 @@ function Footer() {
185189
</span>
186190
<div className={styles.footerBottomLinks}>
187191
<button
188-
onClick={() => handlePageNavigation("/privacy")}
192+
onClick={() => navigateToPage("/privacy")}
189193
className={styles.footerBottomLink}
190194
>
191195
{t("footer.privacy")}
192196
</button>
193197
<button
194-
onClick={() => handlePageNavigation("/terms")}
198+
onClick={() => navigateToPage("/terms")}
195199
className={styles.footerBottomLink}
196200
>
197201
{t("footer.terms")}

0 commit comments

Comments
 (0)