This repository was archived by the owner on Dec 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodel.ts
More file actions
52 lines (49 loc) · 1.29 KB
/
model.ts
File metadata and controls
52 lines (49 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { z } from 'astro:content'
export const blogShema = z.object({
title: z.string(),
description: z.string(),
tags: z.array(z.string()),
heroPicture: z.string(),
heroPictureAlt: z.string(),
heroImages: z.array(z.string()),
heroImagesFormat: z.array(z.string()),
heroImagesAlt: z.array(z.string()),
heroDescription: z.string(),
publishDate: z.date(),
editDate: z.date(),
})
export type blogShema = z.infer<typeof blogShema>
export const stackShema = z.object({
title: z.string(),
description: z.string(),
icon: z.string(),
iconFormat: z.string(),
iconAlt: z.string(),
heroImage: z.string(),
heroFormat: z.string(),
heroImageAlt: z.string(),
ogImage: z.string(),
ogFormat: z.string(),
ogImageAlt: z.string(),
CTA: z.string(),
url: z.string(),
publishDate: z.date(),
editDate: z.date(),
})
export type stackShema = z.infer<typeof stackShema>
export const projectsShema = z.object({
title: z.string(),
description: z.string(),
tags: z.array(z.string()),
heroImage: z.string(),
heroFormat: z.string(),
heroImageAlt: z.string(),
ogImage: z.string(),
ogFormat: z.string(),
ogImageAlt: z.string(),
url: z.string(),
github: z.string(),
publishDate: z.date(),
editDate: z.date(),
})
export type projectsShema = z.infer<typeof projectsShema>