-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6092e14
commit 31dcd6d
Showing
14 changed files
with
436 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { defineField, defineType } from 'sanity' | ||
import { defineSlugForDocument } from '../../utils/define-slug-for-document' | ||
|
||
const name = 'About_Page' | ||
const title = 'About us' | ||
const slug = '/o-nas' | ||
const icon = () => '👨🌾' | ||
|
||
export default defineType({ | ||
name: name, | ||
type: 'document', | ||
title: title, | ||
icon: icon, | ||
options: { documentPreview: true }, | ||
fields: [ | ||
...defineSlugForDocument({ slug: slug }), | ||
defineField({ | ||
name: 'components', | ||
type: 'components', | ||
title: 'Page Components', | ||
}), | ||
defineField({ | ||
name: 'seo', | ||
type: 'seo', | ||
title: 'SEO', | ||
group: 'seo', | ||
}), | ||
], | ||
groups: [ | ||
{ | ||
name: 'seo', | ||
title: 'SEO', | ||
}, | ||
], | ||
preview: { | ||
prepare: () => ({ | ||
title, | ||
subtitle: slug, | ||
}), | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { defineField, defineType } from 'sanity' | ||
import { defineSlugForDocument } from '../../utils/define-slug-for-document' | ||
|
||
const name = 'ArchitectsZone_Page' | ||
const title = "Architect's Zone" | ||
const slug = '/architects-zone' | ||
const icon = () => '🏛️' | ||
|
||
export default defineType({ | ||
name: name, | ||
type: 'document', | ||
title: title, | ||
icon: icon, | ||
options: { documentPreview: true }, | ||
fields: [ | ||
...defineSlugForDocument({ slug: slug }), | ||
defineField({ | ||
name: 'components', | ||
type: 'components', | ||
title: 'Page Components', | ||
}), | ||
defineField({ | ||
name: 'seo', | ||
type: 'seo', | ||
title: 'SEO', | ||
group: 'seo', | ||
}), | ||
], | ||
groups: [ | ||
{ | ||
name: 'seo', | ||
title: 'SEO', | ||
}, | ||
], | ||
preview: { | ||
prepare: () => ({ | ||
title, | ||
subtitle: slug, | ||
}), | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { defineField, defineType } from 'sanity' | ||
import { defineSlugForDocument } from '../../utils/define-slug-for-document' | ||
|
||
const name = 'Blog_Page' | ||
const title = 'Blog' | ||
const slug = '/blog' | ||
const icon = () => '📰' | ||
|
||
export default defineType({ | ||
name: name, | ||
type: 'document', | ||
title: title, | ||
icon: icon, | ||
options: { documentPreview: true }, | ||
fields: [ | ||
...defineSlugForDocument({ slug: slug }), | ||
defineField({ | ||
name: 'components', | ||
type: 'components', | ||
title: 'Page Components', | ||
}), | ||
defineField({ | ||
name: 'seo', | ||
type: 'seo', | ||
title: 'SEO', | ||
group: 'seo', | ||
}), | ||
], | ||
groups: [ | ||
{ | ||
name: 'seo', | ||
title: 'SEO', | ||
}, | ||
], | ||
preview: { | ||
prepare: () => ({ | ||
title, | ||
subtitle: slug, | ||
}), | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { defineField, defineType } from 'sanity' | ||
import { defineSlugForDocument } from '../../utils/define-slug-for-document' | ||
|
||
const name = 'BusinessServices_Page' | ||
const title = 'Business Services' | ||
const slug = '/business-services' | ||
const icon = () => '💼' | ||
|
||
export default defineType({ | ||
name: name, | ||
type: 'document', | ||
title: title, | ||
icon: icon, | ||
options: { documentPreview: true }, | ||
fields: [ | ||
...defineSlugForDocument({ slug: slug }), | ||
defineField({ | ||
name: 'components', | ||
type: 'components', | ||
title: 'Page Components', | ||
}), | ||
defineField({ | ||
name: 'seo', | ||
type: 'seo', | ||
title: 'SEO', | ||
group: 'seo', | ||
}), | ||
], | ||
groups: [ | ||
{ | ||
name: 'seo', | ||
title: 'SEO', | ||
}, | ||
], | ||
preview: { | ||
prepare: () => ({ | ||
title, | ||
subtitle: slug, | ||
}), | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { defineField, defineType } from 'sanity' | ||
import { defineSlugForDocument } from '../../utils/define-slug-for-document' | ||
|
||
const name = 'Contact_Page' | ||
const title = 'Contact' | ||
const slug = '/contact' | ||
const icon = () => '📧' | ||
|
||
export default defineType({ | ||
name: name, | ||
type: 'document', | ||
title: title, | ||
icon: icon, | ||
options: { documentPreview: true }, | ||
fields: [ | ||
...defineSlugForDocument({ slug: slug }), | ||
defineField({ | ||
name: 'components', | ||
type: 'components', | ||
title: 'Page Components', | ||
}), | ||
defineField({ | ||
name: 'seo', | ||
type: 'seo', | ||
title: 'SEO', | ||
group: 'seo', | ||
}), | ||
], | ||
groups: [ | ||
{ | ||
name: 'seo', | ||
title: 'SEO', | ||
}, | ||
], | ||
preview: { | ||
prepare: () => ({ | ||
title, | ||
subtitle: slug, | ||
}), | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { defineField, defineType } from 'sanity' | ||
import { defineSlugForDocument } from '../../utils/define-slug-for-document' | ||
|
||
const name = 'InteriorDesign_Page' | ||
const title = 'Interior Design' | ||
const slug = '/interior-design' | ||
const icon = () => '🛋️' | ||
|
||
export default defineType({ | ||
name: name, | ||
type: 'document', | ||
title: title, | ||
icon: icon, | ||
options: { documentPreview: true }, | ||
fields: [ | ||
...defineSlugForDocument({ slug: slug }), | ||
defineField({ | ||
name: 'components', | ||
type: 'components', | ||
title: 'Page Components', | ||
}), | ||
defineField({ | ||
name: 'seo', | ||
type: 'seo', | ||
title: 'SEO', | ||
group: 'seo', | ||
}), | ||
], | ||
groups: [ | ||
{ | ||
name: 'seo', | ||
title: 'SEO', | ||
}, | ||
], | ||
preview: { | ||
prepare: () => ({ | ||
title, | ||
subtitle: slug, | ||
}), | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { defineField, defineType } from 'sanity' | ||
import { defineSlugForDocument } from '../../utils/define-slug-for-document' | ||
|
||
const name = 'NotFound_Page' | ||
const title = 'Not Found Page (404)' | ||
const slug = '/404' | ||
|
||
export default defineType({ | ||
name: name, | ||
type: 'document', | ||
title: title, | ||
icon: () => '🔍', | ||
options: { documentPreview: true }, | ||
fields: [ | ||
...defineSlugForDocument({ slug: slug }), | ||
defineField({ | ||
name: 'components', | ||
type: 'components', | ||
title: 'Page Components', | ||
}), | ||
defineField({ | ||
name: 'seo', | ||
type: 'seo', | ||
title: 'SEO', | ||
group: 'seo', | ||
}), | ||
], | ||
groups: [ | ||
{ | ||
name: 'seo', | ||
title: 'SEO', | ||
}, | ||
], | ||
preview: { | ||
prepare: () => ({ | ||
title: title, | ||
subtitle: slug, | ||
}), | ||
}, | ||
}) |
Oops, something went wrong.