-
-
- 62 896-1059-5452
-
-
-
-
bookmywedding@gwkbali.com
+
+
+
Connect With Us to Get Extraordinary Offer
+
+
+
+
+ 62 896-1059-5452
+
+
+
+ bookmywedding@gwkbali.com
+
-
*/}
+
@@ -199,7 +234,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
title: dt.title,
subTitle: dt.subtitle,
imageUrl: dt.coverImageUrl,
- hideButton:true
+ hideButton: true
};
return {
diff --git a/schemas/wedding/wedding.ts b/schemas/wedding/wedding.ts
index e17bcdc..f7178df 100644
--- a/schemas/wedding/wedding.ts
+++ b/schemas/wedding/wedding.ts
@@ -4,6 +4,7 @@ import { defineField, defineType } from 'sanity'
import weddingpost from './weddingpost'
import weddingPackage from './weddingPackage'
+import gallery from 'schemas/gallery'
export default {
name: 'WeddingSection',
@@ -50,16 +51,22 @@ export default {
}),
{
name: 'Wedding',
- title: 'Wedding Posts',
- description: 'Pilih content untuk halaman',
+ title: 'Wedding Gallery',
+ description: 'Tambahkan gallery wedding',
type: 'array',
of: [
{
type: 'reference',
- to: { type: weddingpost.name },
+ to: { type: gallery.name },
},
],
},
+ defineField({
+ title: 'Pixieset URL',
+ name: 'pixiesetURL',
+ type: 'url',
+ description: 'Alamat album di Pixieset',
+ }),
{
name: 'Weddingpackage',
title: 'Wedding Package',
diff --git a/schemas/wedding/weddingpost.ts b/schemas/wedding/weddingpost.ts
index 0ec1e40..2d109fb 100644
--- a/schemas/wedding/weddingpost.ts
+++ b/schemas/wedding/weddingpost.ts
@@ -30,16 +30,12 @@ export default defineType({
}),
defineField({
name: 'coverImage',
- title: 'Thumbnail',
- type: 'reference',
- to: [{ type: 'gallery' }],
- fields: [
- {
- type: 'string',
- title: 'Alternative text',
- name: 'alt',
- },
- ],
+ title: 'Image',
+ description: 'Image untuk cover',
+ type: 'image',
+ options: {
+ hotspot: true,
+ },
}),
defineField({
name: 'posterImage',