From d846fc524d3d14e815e390503aa80a1301c31d44 Mon Sep 17 00:00:00 2001 From: "Mr. Singleton" Date: Sun, 3 Dec 2023 07:51:34 -0500 Subject: [PATCH] clean up Fix spacing in animated about us section header height is pulled from theme footer spacing fixes social media block parameters for color logo no wrap when text logo --- sanityIo/schemas/mui/ColorListing.js | 23 +++++++ sanityIo/schemas/mui/MuiColorPalatte.js | 62 ++++++++++--------- .../schemas/sections/web-dev/FooterSection.js | 16 +++++ src/components/BlockContentTypes.ts | 2 + .../FooterBlockContentLayoutContainer.tsx | 2 + .../animated/AnimatedAboutUsSection.tsx | 2 +- .../animated/AnimatedPortfolioSection.tsx | 2 +- .../animated/HeroAnimatedContentSection.tsx | 8 ++- src/components/animated/MapSection.tsx | 3 +- .../CustomizedThemeProvider.tsx | 5 +- src/components/logo/AlternatingText.tsx | 3 +- src/components/logo/Logo.tsx | 3 +- .../mackenzies-mind/footer/Footer.tsx | 34 ++++++++-- .../footer/FooterMenuContainer.tsx | 60 +++++++++++------- .../footer/FooterMenuGroup.tsx | 5 +- .../mackenzies-mind/header/EnhancedHeader.tsx | 2 +- .../mackenzies-mind/header/Header.tsx | 6 +- .../social-media-block/SocialMediaBlock.tsx | 30 +++++---- src/theme/common/ColorPalette.ts | 1 + 19 files changed, 182 insertions(+), 87 deletions(-) create mode 100644 sanityIo/schemas/mui/ColorListing.js diff --git a/sanityIo/schemas/mui/ColorListing.js b/sanityIo/schemas/mui/ColorListing.js new file mode 100644 index 00000000..8ecd980c --- /dev/null +++ b/sanityIo/schemas/mui/ColorListing.js @@ -0,0 +1,23 @@ +export const ColorListing = [ + {value: "WHITESMOKE", title: "Whitesmoke"}, + {value: "DARKBLUE", title: "Dark Blue"}, + {value: "TRANSPARENT_DARKBLUE", title: "Transparent Dark Blue"}, + {value: "BLUE", title: "Blue"}, + {value: "GRAY", title: "Gray"}, + {value: "LIGHT_GRAY", title: "Light Gray"}, + {value: "TRANSPARENTWHITE", title: "Transparent White"}, + {value: "TRANSPARENTERWHITE", title: "Transparenter White"}, + {value: "LIGHTBLUE", title: "Light Blue"}, + {value: "ALMOST PURPLE", title: "Almost Purple"}, + {value: "LIGHTGRAY", title: "Light Gray"}, + {value: "TRANSPARENTLIGHTGRAY", title: "Transparent Light Gray"}, + {value: "MEDIUMGRAY", title: "Medium Gray"}, + {value: "DARKGRAY", title: "DarkGray"}, + {value: "TRANSPARENTDARKGRAY", title: "Transparent Dark Gray"}, + {value: "AQUA", title: "Aqua"}, + {value: "RED", title: "Red"}, + {value: "ALMOSTWHITE", title: "Almost White"}, + {value: "DARKERGRAY", title: "Darker Gray"}, + {value: "DARK_GRAY", title: "Dark Gray"}, + {value: "LIGHTER_GRAY", title: "Lighter Gray"}, +] \ No newline at end of file diff --git a/sanityIo/schemas/mui/MuiColorPalatte.js b/sanityIo/schemas/mui/MuiColorPalatte.js index 869e1a9d..38bbdc82 100644 --- a/sanityIo/schemas/mui/MuiColorPalatte.js +++ b/sanityIo/schemas/mui/MuiColorPalatte.js @@ -1,25 +1,27 @@ -const listing = [ - {value: "WHITESMOKE", title: "Whitesmoke"}, - {value: "DARKBLUE", title: "Dark Blue"}, - {value: "TRANSPARENT_DARKBLUE", title: "Transparent Dark Blue"}, - {value: "BLUE", title: "Blue"}, - {value: "GRAY", title: "Gray"}, - {value: "LIGHT_GRAY", title: "Light Gray"}, - {value: "TRANSPARENTWHITE", title: "Transparent White"}, - {value: "LIGHTBLUE", title: "Light Blue"}, - {value: "ALMOST PURPLE", title: "Almost Purple"}, - {value: "LIGHTGRAY", title: "Light Gray"}, - {value: "TRANSPARENTLIGHTGRAY", title: "Transparent Light Gray"}, - {value: "MEDIUMGRAY", title: "Medium Gray"}, - {value: "DARKGRAY", title: "DarkGray"}, - {value: "TRANSPARENTDARKGRAY", title: "Transparent Dark Gray"}, - {value: "AQUA", title: "Aqua"}, - {value: "RED", title: "Red"}, - {value: "ALMOSTWHITE", title: "Almost White"}, - {value: "DARKERGRAY", title: "Darker Gray"}, - {value: "DARK_GRAY", title: "Dark Gray"}, - {value: "LIGHTER_GRAY", title: "Lighter Gray"}, -] +// const listing = [ +// {value: "WHITESMOKE", title: "Whitesmoke"}, +// {value: "DARKBLUE", title: "Dark Blue"}, +// {value: "TRANSPARENT_DARKBLUE", title: "Transparent Dark Blue"}, +// {value: "BLUE", title: "Blue"}, +// {value: "GRAY", title: "Gray"}, +// {value: "LIGHT_GRAY", title: "Light Gray"}, +// {value: "TRANSPARENTWHITE", title: "Transparent White"}, +// {value: "LIGHTBLUE", title: "Light Blue"}, +// {value: "ALMOST PURPLE", title: "Almost Purple"}, +// {value: "LIGHTGRAY", title: "Light Gray"}, +// {value: "TRANSPARENTLIGHTGRAY", title: "Transparent Light Gray"}, +// {value: "MEDIUMGRAY", title: "Medium Gray"}, +// {value: "DARKGRAY", title: "DarkGray"}, +// {value: "TRANSPARENTDARKGRAY", title: "Transparent Dark Gray"}, +// {value: "AQUA", title: "Aqua"}, +// {value: "RED", title: "Red"}, +// {value: "ALMOSTWHITE", title: "Almost White"}, +// {value: "DARKERGRAY", title: "Darker Gray"}, +// {value: "DARK_GRAY", title: "Dark Gray"}, +// {value: "LIGHTER_GRAY", title: "Lighter Gray"}, +// ] +import {ColorListing} from "./ColorListing"; + export default { name: 'MuiColorPalette', title: 'MUI Color Palette', @@ -29,49 +31,49 @@ export default { name: 'defaultBackground', title: 'Default Background Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'defaultPaperBackgroundColor', title: 'Default Paper Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'primaryColor', title: 'Primary Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'secondaryColor', title: 'Secondary Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'primaryTextColor', title: 'Primary Text Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'buttonOutlineColor', title: 'Button Outline Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'secondaryTextColor', title: 'Secondary Text Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, { name: 'disabledTextColor', title: 'Disabled Text Color', type: 'string', - options: {list: listing} + options: {list: ColorListing} }, ] diff --git a/sanityIo/schemas/sections/web-dev/FooterSection.js b/sanityIo/schemas/sections/web-dev/FooterSection.js index e67ab604..b515c20a 100644 --- a/sanityIo/schemas/sections/web-dev/FooterSection.js +++ b/sanityIo/schemas/sections/web-dev/FooterSection.js @@ -1,3 +1,5 @@ +import {ColorListing} from "../../mui/ColorListing"; + export default { name: 'FooterSection', title: 'Footer Section', @@ -8,6 +10,20 @@ export default { title: 'Name', type: 'string', }, + { + name: 'backgroundImgSrc', + title: 'Background Image', + type: 'image', + options: { + hotspot: true, + }, + }, + { + name: 'backgroundColor', + title: 'Background Color', + type: 'string', + options: {list: ColorListing} + }, { name: 'isSocialMediaBlock', title: 'Show Social Media Block', diff --git a/src/components/BlockContentTypes.ts b/src/components/BlockContentTypes.ts index 06772a55..36a622d9 100644 --- a/src/components/BlockContentTypes.ts +++ b/src/components/BlockContentTypes.ts @@ -615,6 +615,8 @@ export type DevelopmentFooterSectionType = { } export type FooterSectionType = { name: string + backgroundImgSrc?: SanityImageAsset + backgroundColor?: string isSocialMediaBlock: boolean footerMenuRef: SanityMenuContainer } diff --git a/src/components/FooterBlockContentLayoutContainer.tsx b/src/components/FooterBlockContentLayoutContainer.tsx index 7a494e8c..2c636815 100644 --- a/src/components/FooterBlockContentLayoutContainer.tsx +++ b/src/components/FooterBlockContentLayoutContainer.tsx @@ -86,6 +86,8 @@ const FooterBlockContentLayoutContainer: FunctionComponent<>