added social media links

This commit is contained in:
Salam-vsem
2025-05-14 00:00:34 +03:00
parent ceced79cf3
commit b5b1707e0d
7 changed files with 98 additions and 6 deletions

View File

@@ -55,6 +55,19 @@ export const reviewsSchema = (image: ImageFunction) =>
rating: z.number(),
})
export const footerSchema = z.object({
copyright: z.string().optional(),
socialMediaLinks: z
.array(
z.object({
icon: z.string(),
href: z.string(),
target: z.string().optional(),
})
)
.optional(),
})
const pages = defineCollection({
schema: ({ image }) =>
z.object({
@@ -71,6 +84,7 @@ const pages = defineCollection({
)
.optional(),
services: z.array(servicesSchema).optional(),
footer: footerSchema.optional(),
}),
})