diff --git a/src/pages/index.astro b/src/pages/index.astro index e2ebdf1..18f6095 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -91,6 +91,26 @@ const content: any = await fetchWithCache(theaterHomepageQuery) ?? {}; })} )} + + {content.team?.committee?.members?.length > 0 && ( +
+

+ {content.team.committee.title || 'Organisationskomitee'} +

+

+ {content.team.committee.intro || + 'Hinter dem Freilichttheater Ziefen 2028 steht ein Organisationskomitee aus Ziefen und Umgebung, das das Projekt mit viel Herzblut plant, koordiniert und auf die Bühne bringt.'} +

+ +
+ )} diff --git a/src/sanity/schemas/theaterHomepage.ts b/src/sanity/schemas/theaterHomepage.ts index 8ac23a5..3d07998 100644 --- a/src/sanity/schemas/theaterHomepage.ts +++ b/src/sanity/schemas/theaterHomepage.ts @@ -58,6 +58,30 @@ export const theaterHomepageSchema = defineType({ }), ], }), + defineField({ + name: 'committee', + title: 'Organisationskomitee / Organising Committee', + type: 'object', + fields: [ + defineField({ name: 'title', title: 'Title', type: 'string', initialValue: 'Organisationskomitee' }), + defineField({ name: 'intro', title: 'Intro Text', type: 'text', rows: 3 }), + defineField({ + name: 'members', + title: 'Members', + type: 'array', + of: [ + defineArrayMember({ + type: 'object', + fields: [ + defineField({ name: 'name', title: 'Name', type: 'string', validation: (r) => r.required() }), + defineField({ name: 'role', title: 'Role (optional)', type: 'string' }), + ], + preview: { select: { title: 'name', subtitle: 'role' } }, + }), + ], + }), + ], + }), ], }),