diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2023-02-12 00:00:17 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2023-02-12 00:00:17 +0100 |
| commit | c709aa638c7d3458dd73c3aabadb4924cb1cb80e (patch) | |
| tree | a8f42915c626b901532d7029f1caf88a1bdc866c /sanity/schemas | |
| parent | 9b2c63d92ff77ebce0f90a7be05437504422bf45 (diff) | |
| download | auroraklinikken.no-c709aa638c7d3458dd73c3aabadb4924cb1cb80e.tar.xz auroraklinikken.no-c709aa638c7d3458dd73c3aabadb4924cb1cb80e.zip | |
feat: Add more stuff
Diffstat (limited to 'sanity/schemas')
| -rw-r--r-- | sanity/schemas/description.ts | 24 | ||||
| -rw-r--r-- | sanity/schemas/hero.ts | 29 |
2 files changed, 53 insertions, 0 deletions
diff --git a/sanity/schemas/description.ts b/sanity/schemas/description.ts new file mode 100644 index 0000000..211aac3 --- /dev/null +++ b/sanity/schemas/description.ts @@ -0,0 +1,24 @@ +import { baseLanguage } from "./_locales"; + +export default { + name: 'description', + type: 'document', + title: 'Description section', + preview: { + select: { + title: `title.${baseLanguage.id}` + } + }, + fields: [ + { + title: "Title", + name: 'title', + type: 'string', + }, + { + title: "Text", + name: "text", + type: "string", + } + ] +}
\ No newline at end of file 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 |
