Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Drinkery sections #20

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions functions/src/groqQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ const HOMEPAGE = `_type,
title,
isUnderConstruction,
releaseDate,
backgroundImageSrc{
asset->{
_id,
url,
altText
}
},
slug,
description,
businessCardImageSrc,
Expand Down Expand Up @@ -127,6 +134,7 @@ const HOMEPAGE = `_type,
"servicesList": servicesList[]->{
${SERVICE}
},
"teamList": teamList[]->,
"serviceAmenities": serviceAmenities[]->,
"prosList": prosList[]->,
"skillsets": skillsets[]->{
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&family=Prompt:wght@700&family=Inter:wght@400;500;700&family=Orbitron:wght@400;500&family=Oswald:wght@400;500&family=Raleway:wght@400;500&display=swap"
<link href="https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&family=Open+Sans&family=Bitter&family=Prompt:wght@700&family=Inter:wght@400;500;700&family=Orbitron:wght@400;500&family=Oswald:wght@400;500&family=Raleway:wght@400;500&display=swap"
rel="stylesheet">
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins">-->
<!-- <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,500;0,600;0,700;0,800;0,900;1,100;1,200&display=swap" rel="stylesheet">-->
Expand Down
54 changes: 54 additions & 0 deletions sanityIo/schemas/HolidayHeadlineSection.js
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',
},
},
}



5 changes: 5 additions & 0 deletions sanityIo/schemas/contentContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ export default {
type: 'reference',
to: [{type: 'cryptoInYourPocketSection'}]
},
{name: 'drinkerySpecialsSection', title: 'Drinkery Specials Section', type: 'reference', to: [{type: 'DrinkerySpecialsSection'}]},
{name: 'drinkeryTeamSection', title: 'Drinkery Staff Section', type: 'reference', to: [{type: 'DrinkeryTeamSection'}]},
{name: 'drinkeryOtherSideSection', title: 'Drinkery Other Side Section', type: 'reference', to: [{type: 'DrinkeryOtherSideSection'}]},
{name: 'drinkeryAlbumSection', title: 'Drinkery Album Section', type: 'reference', to: [{type: 'DrinkeryAlbumSection'}]},
{name: 'HolidayHeadlineSection', title: 'Holiday Headline Section', type: 'reference', to: [{type: 'HolidayHeadlineSection'}]}
]
}
]
Expand Down
8 changes: 8 additions & 0 deletions sanityIo/schemas/homePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ export default {
hotspot: true,
},
},
{
name: 'backgroundImageSrc',
title: 'Entire Page Background Image',
type: 'image',
options: {
hotspot: true,
},
},
{
name: 'title',
title: 'Title(Title in Browser Tab)',
Expand Down
10 changes: 10 additions & 0 deletions sanityIo/schemas/menuContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ export default {
title: 'Logo Accent Text',
type: 'string',
},
{
name: 'isShowSocialMedia',
title: 'Show Social Media?',
type: 'boolean',
},
{
name: 'isHideOverlay',
title: 'Lighten the background',
type: 'boolean',
},
{
name: 'subMenus',
title: 'Sub Menu',
Expand Down
2 changes: 2 additions & 0 deletions sanityIo/schemas/mui/MuiTypography.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ export default {
type: "string", options: {
list: [
{value: "Oswald", title: "Oswald"},
{value: "Bitter", title: "Bitter"},
{value: "Inter", title: "Inter"},
{value: "Prompt", title: "Prompt"},
{value: "Raleway", title: "Raleway"},
{value: "Poppins", title: "Poppins"},
{value: "Monteserrat", title: "Monteserrat"},
{value: "Elaine Sans", title: "Elaine Sans"},
{value: "Open Sans", title: "Open Sans"},
{value: "Covered By Your Grace", title: "Covered By Your Grace"},
]
}
Expand Down
17 changes: 17 additions & 0 deletions sanityIo/schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ import Instruction from "./cocktail-flash-cards/Instruction";
import MixingGlass from "./cocktail-flash-cards/MixingGlass";
import FlashCardSection from "./cocktail-flash-cards/FlashCardSection";
import LiquorType from "./cocktail-flash-cards/LiquorType";
import DrinkerySpecialsSection from "./sections/drinkery/DrinkerySpecialsSection";
import DrinkeryOtherSideSection from "./sections/drinkery/DrinkeryOtherSideSection";
import DrinkeryAlbumSection from "./sections/drinkery/DrinkeryAlbumSection";
import DrinkeryAlbumItem from "./sections/drinkery/DrinkeryAlbumItem";
import drinkeryTeamMember from "./team/DrinkeryTeamMember";
import drinkeryTeamPage from "./team/DrinkeryTeamPage";
import drinkerySpecial from "./sections/drinkery/drinkerySpecial";
import HolidayHeadlineSection from "./HolidayHeadlineSection";

// Then we give our schema to the builder and provide the result to Sanity
export default [
Expand Down Expand Up @@ -210,4 +218,13 @@ export default [
MixingGlass,
FlashCardSection,
LiquorType,

DrinkerySpecialsSection,
drinkeryTeamMember,
drinkeryTeamPage,
drinkerySpecial,
DrinkeryOtherSideSection,
DrinkeryAlbumSection,
DrinkeryAlbumItem,
HolidayHeadlineSection,
]
5 changes: 5 additions & 0 deletions sanityIo/schemas/sections/HeaderSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export default {
title: 'Is This Header Enhanced?',
type: 'boolean',
},
{
name: 'isShowSocialMedia',
title: 'Show Social media buttons?',
type: 'boolean',
},
{
name: 'ctaButtonText',
title: 'CTA Button Text',
Expand Down
46 changes: 46 additions & 0 deletions sanityIo/schemas/sections/drinkery/DrinkeryAlbumItem.js
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 sanityIo/schemas/sections/drinkery/DrinkeryAlbumSection.js
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 sanityIo/schemas/sections/drinkery/DrinkeryOtherSideSection.js
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 sanityIo/schemas/sections/drinkery/DrinkerySpecialsSection.js
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'
// }
],
}



Loading
Loading