-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add getting started resources to homepage, project pages, all p…
…rojects page and bridge page (#22) * feat: add gettingStartedResourcesCard and gettingStartedResourcesSection documents * feat: add projects and project pages * feat: add bridgePage * chore: update image fields * chore: use customImage
- Loading branch information
Showing
8 changed files
with
156 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default { | ||
name: 'bridgePage', | ||
type: 'document', | ||
title: 'Bridge Page', | ||
__experimental_actions: ['update', /*'create', 'delete', */ 'publish'], | ||
fields: [ | ||
{ | ||
name: 'gettingStartedResourcesCard', | ||
type: 'reference', | ||
to: [{ type: 'gettingStartedResourcesCard' }], | ||
title: 'Resources for Getting Started Card', | ||
description: 'This content will appear at the bottom of the Bridge page (on both /ecocredits/bridge and /ecocredits/accounts/{addr}/bridge)', | ||
validation: Rule => Rule.required(), | ||
}, | ||
], | ||
}; |
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,16 @@ | ||
export default { | ||
name: 'projectPage', | ||
type: 'document', | ||
title: 'Project Page', | ||
__experimental_actions: ['update', /*'create', 'delete', */ 'publish'], | ||
fields: [ | ||
{ | ||
name: 'gettingStartedResourcesSection', | ||
description: 'This content will appear on all project pages', | ||
type: 'reference', | ||
to: [{ type: 'gettingStartedResourcesSection' }], | ||
title: 'Resources for Getting Started Section', | ||
validation: Rule => Rule.required(), | ||
}, | ||
], | ||
}; |
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,15 @@ | ||
export default { | ||
name: 'projectsPage', | ||
type: 'document', | ||
title: 'Projects Page', | ||
__experimental_actions: ['update', /*'create', 'delete', */ 'publish'], | ||
fields: [ | ||
{ | ||
name: 'gettingStartedResourcesSection', | ||
type: 'reference', | ||
to: [{ type: 'gettingStartedResourcesSection' }], | ||
title: 'Resources for Getting Started Section', | ||
validation: Rule => Rule.required(), | ||
}, | ||
], | ||
}; |
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,43 @@ | ||
export default { | ||
title: 'Resources for Getting Started Card', | ||
name: 'gettingStartedResourcesCard', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
title: 'Header', | ||
name: 'header', | ||
type: 'string', | ||
validation: Rule => Rule.required(), | ||
}, | ||
{ | ||
title: 'Description', | ||
name: 'description', | ||
type: 'customPortableText', | ||
validation: Rule => Rule.required(), | ||
}, | ||
{ | ||
title: 'Image', | ||
name: 'image', | ||
type: 'customImage', | ||
validation: Rule => Rule.required(), | ||
}, | ||
{ | ||
title: 'Mobile Image', | ||
name: 'mobileImage', | ||
type: 'customImage', | ||
validation: Rule => Rule.required(), | ||
}, | ||
{ | ||
title: 'Links', | ||
name: 'links', | ||
type: 'array', | ||
description: 'Add a maximum of 3 links', | ||
of: [ | ||
{ | ||
type: 'button', | ||
}, | ||
], | ||
validation: Rule => Rule.required().max(3), | ||
}, | ||
], | ||
}; |
26 changes: 26 additions & 0 deletions
26
schemas/documents/shared/gettingStartedResourcesSection.js
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,26 @@ | ||
export default { | ||
title: 'Resources for Getting Started Section', | ||
name: 'gettingStartedResourcesSection', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
title: 'Header', | ||
name: 'header', | ||
type: 'string', | ||
validation: Rule => Rule.required(), | ||
}, | ||
{ | ||
title: 'Resources cards', | ||
name: 'resourcesCards', | ||
type: 'array', | ||
description: 'Select existing resources for getting started cards from "Shared" content, maximum 4', | ||
of: [ | ||
{ | ||
type: 'reference', | ||
to: [{ type: 'gettingStartedResourcesCard' }], | ||
}, | ||
], | ||
validation: Rule => Rule.required().max(4), | ||
}, | ||
], | ||
}; |
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