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

Storybook pull request #15

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b299f1b
Merge pull request #4 from chowworks/master
tmanundercover Nov 21, 2023
f6c0bd8
back to handsomestnerd project settings from pull requests
tmanundercover Nov 25, 2023
c9c8840
fix some eslint errors
tmanundercover Nov 26, 2023
32dff73
more react warning cleanup
tmanundercover Nov 26, 2023
90602d6
pulling the font faces through Sanity Theme object
tmanundercover Nov 27, 2023
88546bc
removed some project specific values in favor of environment variables
tmanundercover Nov 27, 2023
d61048e
minor updates
tmanundercover Nov 27, 2023
6f29020
package update
tmanundercover Nov 27, 2023
f4530f9
config reset to master branch
tmanundercover Dec 3, 2023
adb48fc
not sure
tmanundercover Dec 3, 2023
a0f664e
Merge branch 'pull-request-to-tman' of https://github.com/chowworks/c…
tmanundercover Dec 4, 2023
678014b
updates for master
tmanundercover Dec 4, 2023
0940f40
Merge pull request #8 from theHandsomestNerd/chowworks-pull-request-t…
tmanundercover Dec 4, 2023
b16e31d
fixed sanity config
tmanundercover Dec 5, 2023
be96cb2
componentization and full search expansion for resume items
tmanundercover Dec 5, 2023
f7ce737
fix some alignment issues
tmanundercover Dec 5, 2023
438d79c
responsive padding on resume sections
tmanundercover Dec 6, 2023
aee3041
fix some overlapping text in experience section
tmanundercover Dec 6, 2023
6f147b6
fix styling parameters in social media block component
tmanundercover Dec 6, 2023
0d7a725
only avatar for fab
tmanundercover Dec 6, 2023
b116d80
remove physical address from resume bio and style portfolio entries
tmanundercover Dec 6, 2023
e869c11
version bump
tmanundercover Dec 6, 2023
0bf241e
added some colors and elaine sans
tmanundercover Dec 7, 2023
7d3f236
Merge pull request #9 from theHandsomestNerd/cleanup-branch
tmanundercover Dec 7, 2023
a2d1d03
storybook stories for web consulting template
tmanundercover Dec 10, 2023
699d9e7
Merge pull request #10 from theHandsomestNerd/update-storybook-compon…
tmanundercover Dec 10, 2023
78115b4
version bump
tmanundercover Dec 12, 2023
ee67e21
choworks config fixes
tmanundercover Dec 12, 2023
bf113ee
Merge branch 'storybook-pull-request' into storybook-pull-request
tmanundercover Dec 12, 2023
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
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projects": {
"chowworks-website": "chowworks-website"
"the-handsomest-nerd-internal": "the-handsomest-nerd-internal"
},
"targets": {},
"etags": {}
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link href="https://fonts.googleapis.com/css2?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"/>
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "functions",
"version": "0.5.0",
"version": "0.6.0",
"scripts": {
"lint": "eslint --ext .js,.ts .",
"build": "tsc",
Expand Down
1 change: 1 addition & 0 deletions functions/src/groqQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const HOMEPAGE = `_type,
}
},
headerContent {
...,
"content": content[]->{
...,
headerMenuRef->{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chowworks-website",
"version": "0.5.0",
"version": "0.6.0",
"license": "GPL-3.0-or-later",
"private": true,
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions sanityIo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chow-works-sanity",
"name": "the-handsomest-nerd-sanity",
"private": true,
"version": "0.5.0",
"version": "0.6.0",
"description": "Sanity CMS for React Website Builder",
"main": "package.json",
"author": "theHandsomestNerd <hello@thehandsomestnerd.com>",
Expand Down
5 changes: 4 additions & 1 deletion sanityIo/schemas/mui/ColorListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ export const ColorListing = [
{value: "ALMOSTWHITE", title: "Almost White"},
{value: "DARKERGRAY", title: "Darker Gray"},
{value: "DARK_GRAY", title: "Dark Gray"},
{value: "LIGHTER_GRAY", title: "Lighter Gray"},
{value: "ALMOST_BLACK", title: "Almost Black"},
{value: "PURPLE", title: "Purple"},
{value: "LIGHT_WHITE", title: "Light White"},
{value: "DISABLED_GRAY", title: "Disabled Gray"},
]
3 changes: 2 additions & 1 deletion sanityIo/schemas/mui/MuiTypography.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default {
{value: "Prompt", title: "Prompt"},
{value: "Raleway", title: "Raleway"},
{value: "Poppins", title: "Poppins"},
{value: "Monteserrat", title: "Monteserrat"}
{value: "Monteserrat", title: "Monteserrat"},
{value: "Elaine Sans", title: "Elaine Sans"}
]
}}],

Expand Down
2 changes: 1 addition & 1 deletion sanityIo/schemas/portfolio/PortfolioSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
of: [
{type: "reference",
to:
[{type: "portfolioItem"}],
[{type: "PortfolioItem"}],
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion sanityIo/schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ import AnimatedPortfolioItem from "./sections/animated/AnimatedPortfolioItem";
import AnimatedPortfolioSection from "./sections/animated/AnimatedPortfolioSection";
import HeadlineCTASection from "./HeadlineCTASection";
import MapSection from "./sections/MapSection";
import PortfolioItem from "./portfolio/PortfolioItem";

// Then we give our schema to the builder and provide the result to Sanity
export default [
Expand Down Expand Up @@ -165,7 +166,7 @@ export default [
TestimonialsSection,
Testimonials,
PortfolioSection,
portfolioItem,
PortfolioItem,
headerContentContainer,
footerContentContainer,
HeaderSection,
Expand Down
13 changes: 13 additions & 0 deletions sanityIo/schemas/sections/HeaderSection.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {ColorListing} from "../mui/ColorListing";

export default {
name: 'HeaderSection',
title: 'Header Section',
Expand All @@ -18,6 +20,17 @@ export default {
title: 'CTA Button Text',
type: 'string'
},
{
name: 'logoImgSrc',
title: 'Logo Image',
type: 'image'
},
{
name: 'backgroundColor',
title: 'Background Color',
type: 'string',
options: {list: ColorListing}
},
{
name: 'isSearch',
title: 'Is Search included in header',
Expand Down
28 changes: 17 additions & 11 deletions src/common/sanityIo/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export type SanityGroupSchedule = {
}

export type SanityBusinessContact = {
"_type"?: "BusinessContact"
title?:string
email?: string
address?: string
phone?: string
Expand Down Expand Up @@ -91,6 +93,7 @@ export type SanityUnderConstructionPageType = {
}

export type SanityMuiTheme = {
_type?: "MuiTheme"
title?: string
slug?: SanitySlug
appBarHeight?: number
Expand All @@ -109,27 +112,30 @@ export type SanityMuiBreakpoints = {


export type SanityMuiFontFace = {
name: string
fontSize: string
fontStyle: string
fontWeight: string
lineHeight: string
letterSpacing: string
name?: string
fontSize?: string
fontStyle?: string
fontWeight?: string
lineHeight?: string
letterSpacing?: string
textTransform?: any
[key:string]: any
mediaQueries: SanityMuiMediaQuery[]
mediaQueries?: SanityMuiMediaQuery[]
}

export type SanityMuiMediaQuery = {
breakpoint: string
"_type"?: "MuiMediaQuery"
breakpoint: string[]
typography: SanityMuiFontFace
}
export type SanityMuiTypography = {
"_type"?: "MuiTypography",
fontFamily: string[]
fontFaces?: SanityMuiFontFace[]
}

export type SanityMuiColorPalette = {
"_type"?: "MuiColorPalette",
defaultBackground: string
defaultPaperBackgroundColor: string
primaryColor: string
Expand Down Expand Up @@ -211,7 +217,7 @@ export type SanityModalType = {
}

export type SanityMenuItem = {
_type: string
_type:string,
title?: string,
displayText?: string,
url?: string,
Expand All @@ -222,7 +228,7 @@ export type SanityMenuItem = {
}

export type SanityMenuGroup = {
_type: string
_type?:string,
title?: string,
slug?: SanitySlug,
menuGroupTitle?: string,
Expand All @@ -235,7 +241,7 @@ export type SanityMenuContainer = {
title?: string,
slug?: SanitySlug,
displayText?: string,
subMenus?: SanityMenuGroup & SanityMenuItem[]
subMenus?: (SanityMenuGroup & SanityMenuItem)[]
logoImageAltText?: string
logoText?: string
logoAccentText?: string
Expand Down
1 change: 1 addition & 0 deletions src/common/sanityIo/groqQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const HOMEPAGE = `_type,
metaImage,
theme->,
headerContent {
...,
"content": content[]->{
...,
headerMenuRef->{
Expand Down
81 changes: 42 additions & 39 deletions src/components/BlockContentTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@ export type HeroContentSectionType = {
export type HeroAnimatedContentSectionType = {
name: string
title: string
theme: SanityMuiTheme
contentSlides: SanityHeroContentSlide[]
}

export type SanityHeroContentSlide = {
heroImage: SanityImageAsset
heroBullet: SanityImageAsset
heroImageAltText: string
heroImageBackground: SanityImageAsset
contentTitle: string
contentWelcomeMessage: string
contentText: string
ctaButtonTitle: string
ctaButtonLink: string
heroImage?: SanityImageAsset
heroBullet?: SanityImageAsset
heroImageAltText?: string
heroImageBackground?: SanityImageAsset
contentTitle?: string
contentWelcomeMessage?: string
contentText?: string
ctaButtonTitle?: string
ctaButtonLink?: string
}


Expand Down Expand Up @@ -192,25 +191,25 @@ export type ThwServiceItemNoRefType = {
} & SanityDocumentFields

export type AnimatedServiceItemNoRefType = {
name: string
name?: string
imageSrc?: SanityImageAsset
iconImageSrc?: SanityImageAsset
backgroundImageSrc?: SanityImageAsset
imageSrcAltText: string
contentTitle: string
contentText: string
ctaButtonText: string
ctaButtonLink: string
learnMoreLink: string
learnMoreText: string
educationPageTitle: string
educationPageSlimHeroImage: SanityImageAsset
extendedDescriptions: string[]
benefitsOfServiceTitle: string
benefitsOfServiceContents: string[]
benefitsOfServiceBullets: string[]
serviceAmenities: ServiceAmenityType[]
slug: SanitySlug
imageSrcAltText?: string
contentTitle?: string
contentText?: string
ctaButtonText?: string
ctaButtonLink?: string
learnMoreLink?: string
learnMoreText?: string
educationPageTitle?: string
educationPageSlimHeroImage?: SanityImageAsset
extendedDescriptions?: string[]
benefitsOfServiceTitle?: string
benefitsOfServiceContents?: string[]
benefitsOfServiceBullets?: string[]
serviceAmenities?: ServiceAmenityType[] | undefined
slug?: SanitySlug
} & SanityDocumentFields

export type AnimatedAboutUsSectionType = {
Expand All @@ -221,13 +220,13 @@ export type AnimatedAboutUsSectionType = {
contentPreTitle: string
contentText: string
contentTexts: string[]
servicesList: AnimatedServiceItemNoRefType[]
servicesList: AnimatedServiceItemNoRefType[] | undefined
highlightedAmenities?: ServiceAmenityType[]
highlightedAmenitiesTitle?: string
highlightedAmenitiesTexts?: string[]
highlightedAmenitiesBullets?: string[]
servicesImageSrcArr: SanityImageAsset[]
servicesMasonryAccentImageSrc: SanityImageAsset
servicesImageSrcArr: (SanityImageAsset| undefined)[]
servicesMasonryAccentImageSrc?: SanityImageAsset
}

export type AnimatedServicesSectionType = {
Expand All @@ -241,9 +240,9 @@ export type AnimatedServicesSectionType = {
contentSummaryTexts: string[]
ctaButtonText: string
ctaButtonLink: string
videoPreviewImageSrc:SanityImageAsset
videoPreviewSectionBackgroundImageSrc: SanityImageAsset
videoUrl:string
videoPreviewImageSrc?:SanityImageAsset
videoPreviewSectionBackgroundImageSrc?: SanityImageAsset
videoUrl?:string
videoPreviewText:string
}

Expand Down Expand Up @@ -601,19 +600,23 @@ export type DevelopmentHeaderSectionType = {
headerMenuRef: SanityMenuContainer
}
export type HeaderSectionType = {
name: string
isSearch: boolean
isEnhanced: boolean
ctaButtonText: string
ctaButtonLink: string
highlightedDetails: ServiceAmenityType[]
headerMenuRef: SanityMenuContainer
title?: string
name?: string
isSearch?: boolean
isEnhanced?: boolean
backgroundColor?: string
ctaButtonText?: string
ctaButtonLink?: string
logoImgSrc?: SanityImageAsset
highlightedDetails?: ServiceAmenityType[]
headerMenuRef?: SanityMenuContainer
}
export type DevelopmentFooterSectionType = {
name: string
footerMenuRef: SanityMenuContainer
}
export type FooterSectionType = {
_type:string
name: string
backgroundImgSrc?: SanityImageAsset
backgroundColor?: string
Expand Down
14 changes: 0 additions & 14 deletions src/components/FooterBlockContentLayoutContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,6 @@ const FooterBlockContentLayoutContainer: FunctionComponent<FooterBlockContentLay
</Grid>
</Card></Grid>
</Grid>
case 'DevelopmentFooterSection':
const developmentFooter: DevelopmentFooterSectionType = columnLayoutContainer

return (
<ThemeProvider key={'BOTTOM_OF_PAGE_DEV'} theme={WebDevSiteTheme}><Grid container item
xs={12}
>
<Link id={"BOTTOM_OF_PAGE"} underline="hover"><></>
</Link>
<WebDevFooter
pageFooter={developmentFooter.footerMenuRef}
/>
</Grid></ThemeProvider>
);
case 'FooterSection':
const footer: FooterSectionType = columnLayoutContainer

Expand Down
Loading