aboutsummaryrefslogtreecommitdiffstats
path: root/sanity/schemas/hero.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sanity/schemas/hero.ts')
-rw-r--r--sanity/schemas/hero.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/sanity/schemas/hero.ts b/sanity/schemas/hero.ts
new file mode 100644
index 0000000..48e5c77
--- /dev/null
+++ b/sanity/schemas/hero.ts
@@ -0,0 +1,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"
+ }
+ ]
+} \ No newline at end of file