aboutsummaryrefslogtreecommitdiffstats
path: root/sanity/schemas/hero.ts
blob: 48e5c77de7694ad1b8cb1afc7876a94ff570f6b1 (plain) (blame)
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
import { baseLanguage } from "./_locales";

export default {
    name: 'hero',
    type: 'document',
    title: 'Hero section',
    preview: {
        select: {
            title: `title.${baseLanguage.id}`
        }
    },
    fields: [
        {
            title: "Title",
            name: 'title',
            type: 'string',
        },
        {
            title: "Subtitle",
            name: "subtitle",
            type: "string",
        },
        {
            title: "Image",
            name: "image",
            type: "image"
        }
    ]
}