feat: add privacy policy and terms of service pages with CMS content
This commit is contained in:
@@ -20,7 +20,8 @@ import type {
|
||||
HomePageContent,
|
||||
AboutPageContent,
|
||||
ServicesPageContent,
|
||||
ContactPageContent
|
||||
ContactPageContent,
|
||||
LegalPageContent
|
||||
} from './types'
|
||||
|
||||
// Import JSON files
|
||||
@@ -29,6 +30,8 @@ import homeJson from './pages/home.json'
|
||||
import aboutJson from './pages/about.json'
|
||||
import servicesJson from './pages/services.json'
|
||||
import contactJson from './pages/contact.json'
|
||||
import adatvedelemJson from './pages/adatvedelem.json'
|
||||
import hasznalatiFeltetelekJson from './pages/hasznalati-feltetelek.json'
|
||||
|
||||
// Type assertions for JSON imports
|
||||
const common: CommonContent = commonJson as CommonContent
|
||||
@@ -36,6 +39,8 @@ const home: HomePageContent = homeJson as HomePageContent
|
||||
const about: AboutPageContent = aboutJson as AboutPageContent
|
||||
const services: ServicesPageContent = servicesJson as ServicesPageContent
|
||||
const contact: ContactPageContent = contactJson as ContactPageContent
|
||||
const adatvedelem: LegalPageContent = adatvedelemJson as LegalPageContent
|
||||
const hasznalatiFeltetelek: LegalPageContent = hasznalatiFeltetelekJson as LegalPageContent
|
||||
|
||||
// Combined content object
|
||||
export const content: SiteContent = {
|
||||
@@ -44,7 +49,9 @@ export const content: SiteContent = {
|
||||
home,
|
||||
about,
|
||||
services,
|
||||
contact
|
||||
contact,
|
||||
adatvedelem,
|
||||
hasznalatiFeltetelek
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +63,7 @@ export function getPageContent<T extends keyof SiteContent['pages']>(
|
||||
}
|
||||
|
||||
// Export individual content for direct imports
|
||||
export { common, home, about, services, contact }
|
||||
export { common, home, about, services, contact, adatvedelem, hasznalatiFeltetelek }
|
||||
|
||||
// Re-export types
|
||||
export * from './types'
|
||||
|
||||
Reference in New Issue
Block a user