aboutsummaryrefslogtreecommitdiffstats
path: root/sanity
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
parent9b2c63d92ff77ebce0f90a7be05437504422bf45 (diff)
downloadauroraklinikken.no-c709aa638c7d3458dd73c3aabadb4924cb1cb80e.tar.xz
auroraklinikken.no-c709aa638c7d3458dd73c3aabadb4924cb1cb80e.zip
feat: Add more stuff
Diffstat (limited to 'sanity')
-rw-r--r--sanity/schemas/description.ts24
-rw-r--r--sanity/schemas/hero.ts29
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