diff --git a/components/footer.js b/components/footer.js index 267212f..d1d7c7e 100644 --- a/components/footer.js +++ b/components/footer.js @@ -8,6 +8,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import '@fortawesome/fontawesome-svg-core/styles.css'; import css from '../styles/footer.module.scss'; +import { CURRENT_YEAR, YEAR_CREATED } from '../constants/date'; library.add(fab, faFacebookF, faTwitter); @@ -40,7 +41,10 @@ export function Footer({ children }) {
-

© Awe and Reverence 2020

+

+ © Awe and Reverence {YEAR_CREATED} + {YEAR_CREATED != CURRENT_YEAR ? ` - ${CURRENT_YEAR}` : ''} +

diff --git a/constants/date.js b/constants/date.js new file mode 100644 index 0000000..62a58c0 --- /dev/null +++ b/constants/date.js @@ -0,0 +1,3 @@ +export const CURRENT_YEAR = new Date().getFullYear(); + +export const YEAR_CREATED = "2023";