From 6cb399e7267ae78e3e498bdbf5f51678ffb2cd45 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 21 Feb 2023 23:24:14 +0100 Subject: feat: Many things Configure sanity in same project as the app Implement type safe sanity schema Read localised documents Strip down design --- sanity/schemas/hero.ts | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 sanity/schemas/hero.ts (limited to 'sanity/schemas/hero.ts') diff --git a/sanity/schemas/hero.ts b/sanity/schemas/hero.ts deleted file mode 100644 index 30abd1c..0000000 --- a/sanity/schemas/hero.ts +++ /dev/null @@ -1,33 +0,0 @@ -import {defineType} from "sanity"; - -export default defineType({ - name: "hero", - type: "document", - title: "Hero section", - i18n: true, - fields: [ - { - title: "Title", - name: "title", - type: "string", - }, - { - title: "Content", - name: "content", - type: "array", - of: [{type: "block"}], - }, - { - title: "Image", - name: "image", - type: "image", - fields: [ - { - title: "Alternative text", - name: "alt", - type: "string", - }, - ], - }, - ], -}); -- cgit v1.3