diff --git a/proto/src/components/Footer.test.tsx b/proto/src/components/Footer.test.tsx
index 706214f..dae4655 100755
--- a/proto/src/components/Footer.test.tsx
+++ b/proto/src/components/Footer.test.tsx
@@ -36,11 +36,11 @@ describe('Footer', () => {
expect(screen.getByText('Műszaki támogatás')).toBeInTheDocument()
})
- it('should render copyright notice with dynamic year', () => {
+ it('should render copyright notice from common.json with the current year', () => {
render()
const currentYear = new Date().getFullYear()
- expect(screen.getByText(`© ${currentYear} mozdIT Bt. Minden jog fenntartva.`)).toBeInTheDocument()
+ expect(screen.getByText(`© 2002–${currentYear} mozdIT Bt. Minden jog fenntartva.`)).toBeInTheDocument()
})
it('should render legal links', () => {
diff --git a/proto/src/components/Footer.tsx b/proto/src/components/Footer.tsx
index 104c5f5..2fa0567 100755
--- a/proto/src/components/Footer.tsx
+++ b/proto/src/components/Footer.tsx
@@ -131,11 +131,12 @@ export default function Footer() {
style={{ borderColor: 'var(--color-border)' }}
>
-
- {siteConfig.footer.copyright}
+ {/* Copyright text is CMS-editable (common.json); {year} resolves to the current year */}
+ {content.common.footer.copyright.replace('{year}', String(new Date().getFullYear()))}
{siteConfig.footer.links.map((link) => (
diff --git a/proto/src/config/site.ts b/proto/src/config/site.ts
index 6e79a23..91d03bc 100755
--- a/proto/src/config/site.ts
+++ b/proto/src/config/site.ts
@@ -32,7 +32,7 @@ export const siteConfig: SiteConfig = {
},
footer: {
- copyright: `© ${new Date().getFullYear()} mozdIT Bt. Minden jog fenntartva.`,
+ // Copyright text lives in content/common.json (CMS-editable) — only links remain here.
links: [
{ label: 'Adatvédelmi tájékoztató', href: '/adatvedelem' },
{ label: 'Használati feltételek', href: '/felhasznalasi-feltetelek' }
diff --git a/proto/src/content/common.json b/proto/src/content/common.json
index b5ec535..33cd336 100644
--- a/proto/src/content/common.json
+++ b/proto/src/content/common.json
@@ -16,5 +16,8 @@
},
"staging": {
"banner": "⚠ STAGING / TESZTKÖRNYEZET — A STAGING OLDALT LÁTOD"
+ },
+ "footer": {
+ "copyright": "© 2002–{year} mozdIT Bt. Minden jog fenntartva."
}
}
diff --git a/proto/src/content/schema.js b/proto/src/content/schema.js
index 4f19d36..31bdbba 100644
--- a/proto/src/content/schema.js
+++ b/proto/src/content/schema.js
@@ -15,6 +15,7 @@ const schemas = {
labels: object({ required: string, features: string }),
validation: object({ required: string, invalidEmail: string, minLength: string }),
staging: object({ banner: string }),
+ footer: object({ copyright: string }),
}),
home: object({
hero: object({ title: string, subtitle: string, description: string, trustBullets: array(string), cta: object({ primary: ctaLink, secondary: ctaLink }) }),
diff --git a/proto/src/content/types.ts b/proto/src/content/types.ts
index c369972..52ca993 100755
--- a/proto/src/content/types.ts
+++ b/proto/src/content/types.ts
@@ -193,6 +193,9 @@ export interface CommonContent {
staging: {
banner: string
}
+ footer: {
+ copyright: string
+ }
}
export interface LegalPageContent {