@@ -5,12 +5,15 @@ import { useNavigate, useLocation } from "react-router-dom";
55import  personalInfo  from  "../data/personal-info.json" ; 
66import  {  FontAwesomeIcon  }  from  "@fortawesome/react-fontawesome" ; 
77import  {  useScrollTo  }  from  "../hooks/useScrollTo" ; 
8+ import  {  usePageNavigation  }  from  "../hooks/usePageNavigation" ; 
9+ import  Logo  from  "./Logo" ; 
810
911function  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