Skip to content

Commit

Permalink
Merge pull request #15 from regen-network/david/856-rnct-graphic
Browse files Browse the repository at this point in the history
Modify registry homepage
  • Loading branch information
haveanicedavid authored Apr 13, 2022
2 parents 232200d + 0f8a831 commit 9a7640f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion schemas/documents/registry/homePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
fields: [
{
name: 'heroSection',
type: 'heroSection',
type: 'homePageTopSection',
title: 'Hero Section',
validation: Rule => Rule.required(),
},
Expand Down
35 changes: 35 additions & 0 deletions schemas/objects/sections/homePage/homePageTopSection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export default {
type: 'object',
name: 'homePageTopSection',
title: 'Top Banner Section',
fields: [
{
title: 'Title',
name: 'title',
type: 'string',
validation: Rule => Rule.required(),
},
{
title: 'Body',
name: 'body',
type: 'customPortableText',
validation: Rule => Rule.required(),
},
{
title: 'Button',
name: 'button',
type: 'button',
validation: Rule => Rule.required(),
},
{
title: 'Background Image',
name: 'background',
type: 'customImage',
},
{
title: 'Icon',
name: 'icon',
type: 'customImage',
},
],
};
2 changes: 2 additions & 0 deletions schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ import nctOverviewSection from './objects/sections/nctPage/nctOverviewSection';
import labeledTextLinkable from './objects/templates/labeledTextLinkable';
import nctTokenSection from './objects/sections/nctPage/nctTokenSection';
import nctLedgerSection from './objects/sections/nctPage/nctLedgerSection';
import homePageTopSection from './objects/sections/homePage/homePageTopSection';

// Then we give our schema to the builder and provide the result to Sanity
export default createSchema({
Expand Down Expand Up @@ -229,6 +230,7 @@ export default createSchema({
heroSection,
homeFoldSection,
homePage,
homePageTopSection,
homePageWeb,
homeValuesSection,
imageBoldTextLabel,
Expand Down

0 comments on commit 9a7640f

Please sign in to comment.