aboutsummaryrefslogtreecommitdiffstats
path: root/sanity/schemas/hero.ts
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2023-02-12 00:00:17 +0100
committerivarlovlie <git@ivarlovlie.no>2023-02-12 00:00:17 +0100
commitc709aa638c7d3458dd73c3aabadb4924cb1cb80e (patch)
treea8f42915c626b901532d7029f1caf88a1bdc866c /sanity/schemas/hero.ts
parent9b2c63d92ff77ebce0f90a7be05437504422bf45 (diff)
downloadauroraklinikken.no-c709aa638c7d3458dd73c3aabadb4924cb1cb80e.tar.xz
auroraklinikken.no-c709aa638c7d3458dd73c3aabadb4924cb1cb80e.zip
feat: Add more stuff
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