Skip to content

Commit af8aed4

Browse files
authored
Merge pull request #522 from ixartz/footer
chore: update footer text to include link to the official website
2 parents c5f90ef + 641dcfd commit af8aed4

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

src/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"BaseTemplate": {
1111
"description": "Starter code for your Nextjs Boilerplate with Tailwind CSS",
12-
"copyright": "Copyright © {year} {name}."
12+
"footer_text": "© {year} {name}. Made with <author></author>."
1313
},
1414
"Index": {
1515
"meta_title": "Next.js Boilerplate Presentation",

src/locales/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"BaseTemplate": {
1111
"description": "Code de démarrage pour Next.js avec Tailwind CSS",
12-
"copyright": "Droits d'auteur © {year} {name}."
12+
"footer_text": "© {year} {name}. Fait avec <author></author>."
1313
},
1414
"Index": {
1515
"meta_title": "Présentation de Next.js Boilerplate",

src/templates/BaseTemplate.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Base template', () => {
3636
</NextIntlClientProvider>,
3737
);
3838

39-
const copyrightSection = page.getByText(/© Copyright/);
39+
const copyrightSection = page.getByText(/© /);
4040
const copyrightLink = copyrightSection.getByRole('link');
4141

4242
/*

src/templates/BaseTemplate.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,18 @@ export const BaseTemplate = (props: {
3737
<main>{props.children}</main>
3838

3939
<footer className="border-t border-gray-300 py-8 text-center text-sm">
40-
{t('copyright', {
40+
{t.rich('footer_text', {
4141
year: new Date().getFullYear(),
4242
name: AppConfig.name,
43+
author: () => (
44+
<a
45+
href="https://nextjs-boilerplate.com"
46+
className="text-blue-700 hover:border-b-2 hover:border-blue-700"
47+
>
48+
Next.js Boilerplate
49+
</a>
50+
),
4351
})}
44-
{' '}
4552

4653
{/*
4754
* PLEASE READ THIS SECTION

0 commit comments

Comments
 (0)