@@ -21,6 +21,7 @@ import React from 'react';
2121import { Link } from 'react-router-dom' ;
2222import { Trans , useTranslation } from 'react-i18next' ;
2323
24+ import Row from 'react-bootstrap/Row' ;
2425import dayjs from 'dayjs' ;
2526
2627import { siteInfoStore } from '@/stores' ;
@@ -29,34 +30,37 @@ const Index = () => {
2930 const { t } = useTranslation ( 'translation' , { keyPrefix : 'footer' } ) ; // Scoped translations for footer
3031 const fullYear = dayjs ( ) . format ( 'YYYY' ) ;
3132 const siteName = siteInfoStore ( ( state ) => state . siteInfo . name ) ;
32- const cc = `${ fullYear } ${ siteName } ` ;
33+ const cc = `${ siteName } © ${ fullYear } ` ;
3334
3435 return (
35- < footer className = "py-3 w-100" >
36- < p className = "text-center mb-0 small" >
37- { /* Link to Terms of Service with right margin */ }
38- < Link to = "/tos" className = "me-3" >
39- { t ( 'label' , { keyPrefix : 'admin.legal.terms_of_service' } ) }
40- </ Link >
41-
42- { /* Link to Privacy Policy with right margin for spacing */ }
43- < Link to = "/privacy" >
44- { t ( 'label' , { keyPrefix : 'admin.legal.privacy_policy' } ) }
45- </ Link >
46- </ p >
47- < p className = "text-center mb-0 small" >
48- < Trans i18nKey = "footer.build_on" values = { { cc } } >
49- Powered by
50- { /* eslint-disable-next-line react/jsx-no-target-blank */ }
51- < a href = "https://answer.apache.org" target = "_blank" >
52- Apache Answer
53- </ a >
54- - the open-source software that powers Q& A communities .
55- < br />
56- Made with love. © 2022 Answer.
57- </ Trans >
58- </ p >
59- </ footer >
36+ < Row >
37+ < footer className = "py-3 d-flex flex-wrap align-items-center justify-content-between text-secondary small" >
38+ < div className = "d-flex align-items-center" >
39+ < div className = "me-3" > { cc } </ div >
40+
41+ < Link to = "/tos" className = "me-3 link-secondary" >
42+ { t ( 'terms' , { keyPrefix : 'nav_menus' } ) }
43+ </ Link >
44+
45+ { /* Link to Privacy Policy with right margin for spacing */ }
46+ < Link to = "/privacy" className = "link-secondary" >
47+ { t ( 'privacy' , { keyPrefix : 'nav_menus' } ) }
48+ </ Link >
49+ </ div >
50+ < div >
51+ < Trans i18nKey = "footer.build_on" values = { { cc } } >
52+ Powered by
53+ < a
54+ href = "https://answer.apache.org"
55+ target = "_blank"
56+ className = "link-secondary"
57+ rel = "noreferrer" >
58+ Apache Answer
59+ </ a >
60+ </ Trans >
61+ </ div >
62+ </ footer >
63+ </ Row >
6064 ) ;
6165} ;
6266
0 commit comments