forked from theHandsomestNerd/mixed-feelings-by-t
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from theHandsomestNerd/bring-in-drinkery-compo…
…nents Added Drinkery sections
- Loading branch information
Showing
62 changed files
with
4,677 additions
and
319 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,54 @@ | ||
export default { | ||
name: 'HolidayHeadlineSection', | ||
title: "Holiday Headline Section", | ||
type: 'document', | ||
fields: [ | ||
{ | ||
name: 'name', | ||
title: 'Name', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'slug', | ||
title: 'Slug', | ||
type: 'slug', | ||
options: { | ||
source: 'name', | ||
maxLength: 96, | ||
}, | ||
}, | ||
{ | ||
name: 'contentText', | ||
title: 'Content Text', | ||
type: 'text', | ||
}, | ||
{ | ||
name: 'contentSubtext', | ||
title: 'Content Subtext', | ||
type: 'text', | ||
}, | ||
{ | ||
name: 'holidayDate', | ||
title: 'Holiday Date', | ||
type: 'date', | ||
}, | ||
{ | ||
name: 'holidayIconLeft', | ||
title: 'Holiday Icon Left', | ||
type: 'image', | ||
}, | ||
{ | ||
name: 'holidayIconRight', | ||
title: 'Holiday Icon Right', | ||
type: 'image', | ||
}, | ||
], | ||
preview: { | ||
select: { | ||
title: 'name', | ||
}, | ||
}, | ||
} | ||
|
||
|
||
|
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
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
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,46 @@ | ||
export default { | ||
name: 'DrinkeryAlbumItem', | ||
title: 'Drinkery Album Item', | ||
type: 'object', | ||
fields: [ | ||
{ | ||
name: 'name', | ||
title: 'Name', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'imageSrc', | ||
title: 'Src', | ||
type: 'image', | ||
}, | ||
{ | ||
name: 'cols', | ||
title: 'Columns', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'title', | ||
title: 'Title', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'subtitle', | ||
title: 'Subtitle', | ||
type: 'string', | ||
}, | ||
|
||
], | ||
preview: { | ||
select: { | ||
title: 'title', | ||
media: 'imageSrc', | ||
cols:'cols' | ||
}, | ||
prepare(selection) { | ||
const {cols} = selection | ||
return Object.assign({}, selection, { | ||
subtitle: cols, | ||
}) | ||
}, | ||
}, | ||
} |
42 changes: 42 additions & 0 deletions
42
sanityIo/schemas/sections/drinkery/DrinkeryAlbumSection.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,42 @@ | ||
export default { | ||
name: 'DrinkeryAlbumSection', | ||
title: 'Drinkery Album Section', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
name: 'name', | ||
title: 'Name', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'contentTitle', | ||
title: 'Title', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'contentText', | ||
title: 'Content', | ||
type: 'text', | ||
}, | ||
{ | ||
name: 'hashtags', | ||
title: 'Hashtags', | ||
type: 'array', | ||
of: [{type:"string" | ||
}] | ||
}, | ||
{ | ||
name: 'isLogo', | ||
title: 'Show Logo in this section', | ||
type: 'boolean', | ||
}, | ||
{ | ||
name: 'imageList', | ||
title: 'Image List', | ||
type: 'array', | ||
of: [{type:"DrinkeryAlbumItem" | ||
}] | ||
}, | ||
|
||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
sanityIo/schemas/sections/drinkery/DrinkeryOtherSideSection.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,45 @@ | ||
export default { | ||
name: 'DrinkeryOtherSideSection', | ||
title: 'Drinkery Other Side Section', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
name: 'name', | ||
title: 'Name', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'contentTitle', | ||
title: 'Title', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'description', | ||
title: 'Description', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'isLogo', | ||
title: 'Show Logo in this section', | ||
type: 'boolean', | ||
}, | ||
{ | ||
name: 'isShowMenu', | ||
title: 'Show Menu in this section', | ||
type: 'boolean', | ||
}, | ||
{ | ||
name: 'isLink', | ||
title: 'Show the Link', | ||
type: 'boolean', | ||
}, | ||
{ | ||
name: 'theLiquors', | ||
title: 'Liquor Menu', | ||
type: 'array', | ||
of: [{type:"string" | ||
}] | ||
}, | ||
|
||
] | ||
} |
66 changes: 66 additions & 0 deletions
66
sanityIo/schemas/sections/drinkery/DrinkerySpecialsSection.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,66 @@ | ||
|
||
export default { | ||
name: 'DrinkerySpecialsSection', | ||
title: "Drinkey - Specials Section", | ||
type: 'document', | ||
fields: [ | ||
{ | ||
name: 'name', | ||
title: 'Name', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'contentTitle', | ||
title: 'Large Title', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'imageSrc', | ||
title: 'Image', | ||
type: 'image', | ||
options: { | ||
hotspot: true, | ||
}, | ||
}, | ||
{ | ||
name: 'imageSrcAltText', | ||
title: 'Image Alt Text', | ||
type: 'string' | ||
}, | ||
{ | ||
name: 'contentText', | ||
title: 'Content Text', | ||
type: 'text', | ||
}, | ||
{ | ||
name: 'disclaimer', | ||
title: 'Disclaimer', | ||
type: 'text', | ||
}, | ||
{ | ||
name: 'subTitle', | ||
title: 'Small Title', | ||
type: 'string', | ||
}, | ||
{ | ||
name: 'theSpecials', | ||
title: 'specials', | ||
type: 'array', | ||
of: [{type:"drinkerySpecial" | ||
}] | ||
}, | ||
// { | ||
// name: 'ctaButtonText', | ||
// title: 'CTA Button Text', | ||
// type: 'string' | ||
// }, | ||
// { | ||
// name: 'ctaButtonLink', | ||
// title: 'CTA Button Link', | ||
// type: 'string' | ||
// } | ||
], | ||
} | ||
|
||
|
||
|
Oops, something went wrong.