feat(footer): CMS-editable company address (common.json footer.address)
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
'Budapest, Magyarország' lived hardcoded in site.ts. It now lives in common.json (footer.address), editable via the Közös szövegek tab, and both consumers (Footer, Kapcsolat page) read it from there — single source. Schema and types extended; site.ts keeps only the email. Closes MITHOME-73
This commit is contained in:
@@ -274,7 +274,7 @@ export default function ContactPage() {
|
|||||||
<div>
|
<div>
|
||||||
<h3 className="font-semibold text-gray-900 mb-1">{pageContent.info.company.title}</h3>
|
<h3 className="font-semibold text-gray-900 mb-1">{pageContent.info.company.title}</h3>
|
||||||
<p className="text-gray-700">{siteConfig.general.name}</p>
|
<p className="text-gray-700">{siteConfig.general.name}</p>
|
||||||
<p className="text-sm text-gray-600">{siteConfig.contact.address}</p>
|
<p className="text-sm text-gray-600">{content.common.footer.address}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export default function Footer() {
|
|||||||
>
|
>
|
||||||
🏢
|
🏢
|
||||||
</span>
|
</span>
|
||||||
<span>{siteConfig.contact.address}</span>
|
<span>{content.common.footer.address}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export const siteConfig: SiteConfig = {
|
|||||||
|
|
||||||
contact: {
|
contact: {
|
||||||
email: process.env.NEXT_PUBLIC_CONTACT_EMAIL || 'info@mozdit.hu',
|
email: process.env.NEXT_PUBLIC_CONTACT_EMAIL || 'info@mozdit.hu',
|
||||||
address: 'Budapest, Magyarország',
|
// address lives in content/common.json (footer.address) — CMS-editable
|
||||||
form: {
|
form: {
|
||||||
title: 'Kapcsolatfelvétel',
|
title: 'Kapcsolatfelvétel',
|
||||||
description: 'Legyen szíves érdeklődését vagy problémáját részletesen megfogalmazni.',
|
description: 'Legyen szíves érdeklődését vagy problémáját részletesen megfogalmazni.',
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
"banner": "⚠ STAGING / TESZTKÖRNYEZET — A STAGING OLDALT LÁTOD"
|
"banner": "⚠ STAGING / TESZTKÖRNYEZET — A STAGING OLDALT LÁTOD"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"copyright": "© 2002–{year} mozdIT Bt. Minden jog fenntartva."
|
"copyright": "© 2002–{year} mozdIT Bt. Minden jog fenntartva.",
|
||||||
|
"address": "Budapest, Magyarország"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const schemas = {
|
|||||||
labels: object({ required: string, features: string }),
|
labels: object({ required: string, features: string }),
|
||||||
validation: object({ required: string, invalidEmail: string, minLength: string }),
|
validation: object({ required: string, invalidEmail: string, minLength: string }),
|
||||||
staging: object({ banner: string }),
|
staging: object({ banner: string }),
|
||||||
footer: object({ copyright: string }),
|
footer: object({ copyright: string, address: string }),
|
||||||
}),
|
}),
|
||||||
home: object({
|
home: object({
|
||||||
hero: object({ title: string, subtitle: string, description: string, trustBullets: array(string), cta: object({ primary: ctaLink, secondary: ctaLink }) }),
|
hero: object({ title: string, subtitle: string, description: string, trustBullets: array(string), cta: object({ primary: ctaLink, secondary: ctaLink }) }),
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ export interface CommonContent {
|
|||||||
}
|
}
|
||||||
footer: {
|
footer: {
|
||||||
copyright: string
|
copyright: string
|
||||||
|
address: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user